Plugin to check file for string?

Max Hetrick maxhetrick at verizon.net
Tue Apr 6 17:57:07 CEST 2010


Guy Waugh wrote:

> 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.

The check_file plugin that is part of OpenFusion's plugin pack can check 
a file for a regular expression. I've used it for this purpose.

http://www.openfusion.com.au/labs/nagios/

Regards,
Max

------------------------------------------------------------------------------
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