[Nagiosplug-help] help with check_http + string check

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Nov 26 02:59:03 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/11/09 07:34 PM, Eric wrote:
> # 'check_http' command definition
> define command{
>         command_name    check_http
>         command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
>         }
> 
> Do I need to add "$ARG2$" ?

No. $ARG2$ and so on are defined only if you have more "!" in the
check_command definition.

The only thing I notice here is that if uranus do not resolve to
$HOSTADDRESS$ (the "address" defined on the host which has this service)
then you're not checking the same host.

Other than than, a trick could be to add "echo" begore the command line:

command_line    echo $USER1$/check_http -I $HOSTADDRESS$ $ARG1$

Then instead of getting the real result you will get the exact command
(don't forget to re-add any single/double quote though) so you can try
and see what's wrong.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLDeDn6dZ+Kt5BchYRAopwAJ99C4yMX1Q74u+65MgDLbTbGHSCMwCgqkhw
Yph0iKQBrMQZuqSNVamVBX4=
=hwfF
-----END PGP SIGNATURE-----




More information about the Help mailing list