[Nagiosplug-help] Help with negate and check_http

Tong Young Tong at ingenio.com
Tue May 9 14:33:32 CEST 2006


 Nevermind.  I updated to the latest plugins and everything works now.

-----Original Message-----
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of Tong
Young
Sent: Monday, May 08, 2006 5:18 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] Help with negate and check_http

I am trying to use the negate command with check_http.  I want to search
a whitelist webpage for my website and if anyone puts me up for spamming
I want to know.  So if someone has me on their spam list it will display
a red column next to their name which negate should send back to me as a
critical error.

Here is my config:


# Check spam
define service{
        use                             internet-service-spam
        host_name                       xxxx
        service_description             Spam 1
        check_command
check_negate!www.dnsstuff.com!/tools/ip4r.ch?ip=xxx.xxx.xxx.xxx!\'red\'
        }


Miscommands.cfg
# ' check_negate ' command definition
define command{
        command_name    check_negate
        command_line    $USER1$/check_negate -t 60 "$USER1$/check_http
-H $ARG1$ -u $ARG2$ -s $ARG3$ -t 70 -L"
        }

I am getting error "return code of 127 is out of bounds..."

I have tried at the command line 

negate "check_http -H www.dnsstuff.com" 

and I get a timeout.  I have tried against a local webserver on my lan
and I also get timeouts.  

I have tried raising the timeouts to 60 seconds but the same error
occurs.

The check_http command runs fine as long as I don't use the "negate"
command in front.  So I'm wondering what I am doing wrong.  Thanks!


-------------------------------------------------------
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=k&kid0709&bid&3057&dat1642
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list