On Thu, 27 Aug 2009, Masoud Tabrizi wrote: > I am running the command as you suggested but it seems like there is > something missing; what am I doing wrong? > > All commans are run from /usr/lib/nagios/plugins directory; > > > > /usr/lib/nagios/plugins/check_http -H xxxxx -u /sample/test.html -p 80 ???a > user:password -s TAPE > > Response: > > HTTP OK HTTP/1.1 200 OK - 0.018 second response time > |time=0.018116s;;;0.000000 size=3648B;;;0 > > > > Now I run it with negate as you suggested: > > ./negate /usr/lib/nagios/plugins/check_http -H xxxxx -u /sample/test.html -p > 80 ???a user:password -s TAPE > > HTTP OK HTTP/1.1 200 OK - 0.006 second response time > |time=0.006001s;;;0.000000 size=3648B;;;0 > > > > Now I change the string to something which doesn???t exist: > > /usr/lib/nagios/plugins/check_http -H xxxxx -u /sample/test.html -p 80 ???a > user:password ???s Testing > > HTTP CRITICAL - string not found|time=0.012479s;;;0.000000 size=3648B;;;0 > > > > ./negate /usr/lib/nagios/plugins/check_http -H xxxxx -u /sample/test.html -p > 80 ???a user:password -s Testing > > HTTP CRITICAL - string not found|time=0.005779s;;;0.000000 size=3648B;;;0
That all looks pretty normal. Negate doesn't change the plugin output; it only flips the result code. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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