[Nagiosplug-help] check_http

Andy Shellam andy-lists at networkmail.eu
Tue Oct 21 20:07:09 CEST 2008

Hi Kaushal,

Without having delved too much into check_http, my immediate response 
would be use a command-line very similar to what you've got but with the 
word "Disconnected" - this will return an OK state to Nagios when the 
webpage you're checking returns the string Disconnected.

You could then use the negate plugin to reverse that OK to a CRITICAL.  
If the string is NOT present in the webpage, check_http will return 
CRITICAL which negate will turn into an OK for Nagios.

There may be something already in check_http that does this however, so 
I'd advise you to have a look in-case.


Kaushal Shriyan wrote:
> Hi
> I have a query regarding check_http for the content in an html page. 
> There are quite a number of string by the name "Connected" in the HTML 
> Page.
> I have a requirement when there is a single instance of the string 
> "Disconnected" in an Web Page, Nagios should send an Problem Alert for 
> the string "Disconnected"
> I have this command sudo -u nagios /usr/nagios/libexec/check_http -H 
> <> -p 8080 -u 
> -s Connected
> But not sure how to proceed.
> Any ideas
> Thanks and Regards
> Kaushal
> ------------------------------------------------------------------------
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

More information about the Help mailing list