Hey John :) Nice work, but you may want to call it "check_log4", since I've already written check_log2 and checklog3.
v2 = with state retention (kind of like yours, but it resets upon any new entry) v3 = with state retention and the ability to look for two strings. one WARN and one CRIT. Cheers! Thomas On 14 Aug, 2006, at 5:56, John Daily wrote: > I've extended the original check_log script to return an error code > until it sees a specific "fixed" message in the log. I wouldn't be > surprised if my code is buggy or misses some corner cases, but you're > welcome to give it a shot. > > It shares some of the limitations of the original check_log; for > example, if the log file rotates after an error appears but before the > script runs, the plugin won't catch it. > > I've tried to allow for a mixture of "broken" and "fixed" messages > between invocations. Whichever comes last, wins. > > > Anyway, consider yourself warned that it might not suit your needs. > Also, I just noticed that there's no license on the script, so > technically I'm probably violating Ethan's copyright by redistributing > a hacked copy, but I'll assume that there's a license on the plugins > in general that I'm not aware of. Even the "LEGAL" document with my > plugin RPM does not specify any license, just a warranty disclaimer. > > check_log2 (very original name, eh?) is attached. > > -John > <check_log2>----------------------------------------------------------- > -------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________ > ________________ > Nagios-users mailing list > Nagios-users@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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users@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