Thanks for your reply Gerhard, yes I meant that check_logfiles. You see I have an application running on a linux server and I want to search the logs for a specific error message but I only want it to raise an alarm (status change to critical) if in a single check it finds more than five of that type of error in that execution of the plugin. Your plugin is pretty good so if you modify it let me know to try it out.
Thanks a lot! Jorge Quoting Gerhard Lausser <[EMAIL PROTECTED]>: > Hi Jorge, > > do you mean _this_ check_logfiles? > http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1%5Bp_view%5D=5 > 38 > > > to do is that when the pattern repeats itself 5 times (for > > example) then give an alert not just with one time, I can't > > figure out how to do this with nagios plugins. Has anyone > > done anything like this before with those plugins or should I > > write my own plugin? > you can define an action for the pattern which updates a counter and stores > it in a temporary file. unfortunately the script also must do the alarming > with send_nsca. > I am the author of the above plugin. In the moment i'm a bit busy, but if > you can wait some days, i will try to add such functionality. > > Greetings from munich, > Gerhard > > -- ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. 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