On Mon, 9 Jul 2007, Rogelio Bastardo wrote: > On 7/9/07, Patrick Morris <[EMAIL PROTECTED]> wrote: >> >> Sure. See the "negate" plugin. > > > Thanks! > > For whatever reason, I'm not getting what I'm expecting. > > Oddly, I get the same OK result, regardless of whether or not I use the > negate command. > > e.g. > > [EMAIL PROTECTED] plugins]# ./check_http -H www.google.com > HTTP OK HTTP/1.0 200 OK - 6045 bytes in 0.101 seconds > |time=0.101285s;;;0.000000 > size=6045B;;;0 > [EMAIL PROTECTED] plugins]# > > and > > [EMAIL PROTECTED] plugins]# ./negate "/usr/lib/nagios/plugins/check_http -H > www.google.com" > HTTP OK HTTP/1.0 200 OK - 6043 bytes in 0.616 seconds > |time=0.615904s;;;0.000000 > size=6043B;;;0 > > > Not sure what exactly I'm doing wrong.... >
Look at the return code. # echo $? -D ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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