Reverse checks possible?
Demetri Mouratis
dmourati at cm.math.uiuc.edu
Tue Jul 10 04:19:08 CEST 2007
On Mon, 9 Jul 2007, Rogelio Bastardo wrote:
> On 7/9/07, Patrick Morris <patrick.morris at hp.com> 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.
>
> [root at term-server 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
> [root at term-server plugins]#
>
> and
>
> [root at term-server 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 at 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
More information about the Users
mailing list