Guy Waugh wrote: > Hi all, > > 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. > > Thanks, > Guy. Hi
There are several that do what you need. check_log , is one of them and you can fiind many others here . http://www.monitoringexchange.org/search?query=check_log Have fun. Assaf -- Never,Ever Cut A Deal With a Dragon ------------------------------------------------------------------------------ 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
