[Nagiosplug-devel] Check_http and web-based checks

Thomas Guyot-Sionnest Thomas at zango.com
Thu Mar 8 18:27:21 CET 2007


Hi list,

I just found out it could make my life much simpler if I could use web
applications to do checks for me. I can with check_http (-s, -R), but I'd
also like the ability to print what the script returned.

I'd like to add two switches, -z (--print) -Z (--print-all). The former
would replace check_http's result with the body of the page preserving
check_http's performance data, while the latter would only print the page
body. Used together with -s, -r or -R you can effectively write web plugins
and use check_http to run them and gather the results.

Additionally, if check_http already has code for handling this I could make
a symlink (i.e. check_web) that would induce the -Z behavior, set -s to 'OK'
and disable warn/crit thresholds (i.e. make them == to timeout).

I could also add a warning switch (-W --warn-string ?) for warning, so that
web-based checks would have full functionality.

What do you think? Any objection? Comments? Better suggestions for switch
names? Arguably this could be granted a new check plugin, but I'd like to
use all check_http's features like SSL, authentication, regexps.

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3076 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20070308/b2b264c1/attachment.bin>


More information about the Devel mailing list