Plugin to check file for string?

C. Bensend benny at bennyvision.com
Tue Apr 6 16:23:33 CEST 2010


> Does anyone know of a nagios plugin that will grep a file for a string?
>
> I have a cronjob that logs output to a file and I basically want to grep
> for
> 'cronjob successful' in this file, alerting Critical if the string isn't
> found and OK if it is.

http://labs.consol.de/lang/en/nagios/check_logfiles/

The ConSol Labs guys are awesome, very responsive, and their
check_logfile plugin is very powerful.

Benny


-- 
Me:  'How big a monster can you take out with one of those? Would
      you win a fight with Godzilla?'
Jim: 'You could disassemble Godzilla at a range of seven miles.'
                           -- Blog entry about the 76mm Melera, a
                              gun on a US Navy Perry-class frigate
                              that Somali pirates tried to seize



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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