Solved

LogSurfer error reading config file

Posted on 2004-03-25
9
267 Views
Last Modified: 2013-12-26
I'm getting the following error when starting logsurfer:
error in match_not_regex of rule: ________________________
config error arround line 13: ________________________

The dumpfile output is:

**** dumpfile of logsurfer from Thu Mar 25 13:37:58 2004

*******************************************************
* RULES
*
*     match_regex match_not_regex
*           stop_regex stop_not_regex timeout [continue]
*           action
*******************************************************

-----
Please Wait. Shutting Down Controller -
        - - 0 CONTINUE
        EXEC "rtaler_mailx.sh   'Please Wait. Shutting Down Controller' 'Please Wait. Shutting Down Controller' $0"

*******************************************************
* CONTEXT Information
*
*     match_regex match_not_regex
*           max_lines timeout_abs timeout_rel action
*           contents
*******************************************************

**** dumpfile end


I created a similar configuration file, and it works fine.  

configuration file is:
# FileName: rtaler_{ENTITY}.cfg
#
# Description: This file is ready by rtaler.sh and contains rules for the logsurfer program
#
# Syntax:
#   <match_regex> <not_match_regex> <stop_regex> <timeout> [continue] <action>
#   For more information, perform search on web for logsurfer man page.
#
#
'Please Wait. Shutting Down Controller' - - - 0
        exec "rtaler_mailx.sh   'Please Wait. Shutting Down Controller'
                'Please Wait. Shutting Down Controller' $0"
0
Comment
Question by:RudePuppyDog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 9

Expert Comment

by:Alf666
ID: 10682440
I don't know this software, but don't you have one too many dashes ?

match_regex is 'Please Wait. Shutting Down Controller'
not_match_regex is '-'
stop_regex is '-'

timeout is '-' ?? Should be 0.
Then, action would be 'exec ...etc'.
0
 

Author Comment

by:RudePuppyDog
ID: 10682671
I thought so too, but  It wont work without the extra "-".  Actually, the dump file
has
   match_regex match_not_regex stop_regex stop_not_regex timeout

so match_regex is 'Please Wait. Shutting Down Controller'
and then 3 "-", then 0 for the timeout.

Anyways, I figured out the problem.  Problem is that the config file was saved with null characters & logsurfer didnt like that.  So I remove the null characters with
tr -d '\0' <config.old > config.new

Thanx
-Rudy
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10683495
What's the actual contents of the configuration file that's causing the problem?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:RudePuppyDog
ID: 10683520
Here is the contents

# FileName: rtaler_{ENTITY}.cfg
#
# Description: This file is ready by rtaler.sh and contains rules for the logsurfer program
#
# Syntax:
#   <match_regex> <not_match_regex> <stop_regex> <timeout> [continue] <action>
#   For more information, perform search on web for logsurfer man page.
#
#
'Please Wait. Shutting Down Controller' - - - 0
        exec "rtaler_mailx.sh   'Please Wait. Shutting Down Controller'
                'Please Wait. Shutting Down Controller' $0"


Looks normal, but when you open the file in vi, it says it has null characters.  I should point out that the file is created on VMS & nfs mounted on Solaris.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10683556
That'll explain it.
0
 

Author Comment

by:RudePuppyDog
ID: 12086430
Answered own question in comment dated 03/25/2004 03:05PM PST

"...Anyways, I figured out the problem.  Problem is that the config file was saved with null characters & logsurfer didnt like that.  So I remove the null characters with
tr -d '\0' <config.old > config.new"
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14394927
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 66
Looking for a specific application/software 2 119
wordcount challenge 11 147
Problem to Office 1 45
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question