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 [email protected] 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
