[Nagiosplug-help] nagios http string

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Jan 8 12:55:36 CET 2008


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

On 07/01/08 04:57 PM, a a wrote:
> Hello!
> 
> I have some Nagios issue.
> 
> So I'am checking some web site if there is "state=0".
> If I put this:
> https://86.116.97.247/sys/varaccess?lon.LekRC.Subsystem_1.LC0800.[1].nvoSwitch_1%23state&UID=root,PW=root
> <https://86.116.97.247/sys/varaccess?lon.LekRC.Subsystem_1.LC0800.[1].nvoSwitch_1%23state&UID=root,PW=root>
> 
>  in IE get
> 
> lon.LekRC.Subsystem_1.LC0800.[1].nvoSwitch_1#state=0
> 
> as response and there you see my state=0.
> 
> Problem is because if I look for "correct string " I get error that
> string NOT found. But if I put "" (empty) for string I get OK status
> from Nagios.

An empty string there will match anything. You must have something that
always match to use -s.

If you only want to check if data is returned, you can use "-m 1" to
make sure there's at least one byte in the body.

You can also do regexp match with -r and -R. see --help output for more
details.

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

iD8DBQFHg2S46dZ+Kt5BchYRAhltAKCUY1S7AhxheZBdAK16deAtiz4AbwCdFECR
U7fv3LuMogvmUqpMB4LwaS0=
=qcRP
-----END PGP SIGNATURE-----




More information about the Help mailing list