[Nagiosplug-help] Question about check_http

Thomas Guyot-Sionnest dermoth at aei.ca
Sat Jan 24 07:59:39 CET 2009


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

On 23/01/09 08:07 AM, Eikelenboom, Hans wrote:
>  
> Hello,
>  
> I have a webpage where a publish a license count.
> Example
>  
> Total Usages: 7
>  
> Is it possible to check this license with check_http.
> I want to get a warning if the license has reached the limit.
> Let's say
> If the total Usages above 22 then i want to get a warning / critical

I'd try with regular expressions, i.e. match all OK strings.

Something like:

>    ^Total Usages: (0|1|2|3|4|5|6|7|8|9#10|11|12|13|14|15|16|17|18|19|20|21|22)$

If you may have garbage at the end, but should match an optional
non-number (I also removed the start of line if you have garbage on the
front):

>    Total Usages: (0|1|2|3|4|5|6|7|8|9#10|11|12|13|14|15|16|17|18|19|20|21|22)[^0-9]?

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

iD8DBQFJerxb6dZ+Kt5BchYRAvoYAJ9fbGVFVRlfIJWKPEMOE0z/7pZpuACfSd3X
YWuDr6W8ujRK8lj1BDalTkY=
=selM
-----END PGP SIGNATURE-----




More information about the Help mailing list