Problem with check_log

Phil Costelloe philc at foundation-it.com
Wed Nov 19 16:43:40 CET 2003


> From: James M. Albright [mailto:jalbr at groupwise.umn.edu] 
> 
> I have to be doing something wrong.  It seems I can see the 
> log with nagios but am unable to alert on my situation. here 
> is what I have wrote to the log file.
> 
> Nov 19 08:11:04 zumbro.oit.umn.edu JMA: [ID 702911 
> local7.info] Hello World
> 
> and here is what my command looks like in nrpe.cfg 
> 
> command[check_local7]=/usr/local/nagios/libexec/check_log -F 
> /var/local_logs/candle/oracle -q "*/[ID 702911 local7.info/] 
> Hello World"

The * is at best redundant and the slashes are the wrong way round for
escaping. Try 

command[check_local7]=/usr/local/nagios/libexec/check_log -F
/var/local_logs/candle/oracle -q '\[ID 702911 local7.info\] Hello World'
 
> when ever I run this command from nagios I get "Log check ok 
> - 0 pattern matches found" 

That's what it will say whenever a new match hasn't been found.

Phil


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list