using web content to determine the nagios status
Robert Hulme
hulme at ebi.ac.uk
Mon Oct 8 13:09:43 CEST 2007
Jaime Ventura wrote:
> I tried check_http -H webserver -u /status.htm -s "STATUS OK", but
> this way I can only get a status ok or error on nagios status.
> Is there any other way to do it, besides developing a specific plug-in?
Yes you could do:
check_http -s "STATUS FOR foo IS OK" -H www.mydomain.com -u /status.php
check_http -s "STATUS FOR bar IS OK" -H www.mydomain.com -u /status.php
etc
Using regular expressions might be slightly better. Having the page
return a data structure (YAML / JSON / etc) that a plugin parses would
be a bit better. Using Nagios / NPRE to solve the whole thing is
probably better still.
-Rob
--
I'm as poor as a church mouse, that's just had an enormous tax bill on
the very day his wife ran off with another mouse, taking all the cheese.
-- Edmund Blackadder
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list