Solved

LogSurfer error reading config file

Posted on 2004-03-25
9
269 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
Technology Partners: 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

624 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