check_log

Ken A ka at pacific.net
Tue Jun 6 19:29:55 CEST 2006


in check_log, find lines:

if [ "$count" = "0" ]; then # no matches, exit with no error
     $ECHO "Log check ok - 0 pattern matches found\n"
     exitstatus=$STATE_OK

change "$count" = "0" to "$count" = "5".
change "Log check ok - 5 pattern matches found\n"

Ken A
Pacific.Net


Julie S. Lin wrote:
> Hi
> 
> i am trying set up montoring, i'd like check_log to looks for 5 instances of
> a string to be successful (i.e for an oracle backup, each table space 
> must be
> backed up successfully)  is there an easy way to do this?  I'd greatly 
> appreciate any
> advice or documention that could help.
> 
> --julie
> 
> 
> _______________________________________________
> 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
> 


_______________________________________________
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