[Nagiosplug-help] check_http help

Robert Hebditch hebditch at Princeton.EDU
Wed Oct 31 21:56:40 CET 2007


Mark:

This is happening because check_http won't follow redirection unless you 
tell it.  You need to use 

-f, --onredirect=<ok|warning|critical|follow>

handle it whatever way you want, but I use -f follow.

Regards



Mark Thomas wrote:
> Hi,
>
> I am trying to configure the plugin above to check a website 
> for a certain string.
>
> The website requires basic authentication but I dont seem to be able to get 
> this to work.
>
> The command(s) I have tried using are:-
>
> check_http -H 172.16.2.6 --authorization=nagios:nagios -s "System is 
> running"
>
> This gives an OK but if i change the string to something that isnt there, it
> still gives an OK(!)
>
> check_http -H 172.16.2.6 --url=/ --authorization=nagios:nagios -r "System 
> is running" --invert-regex
>
> again, returns an OK even if I change the string. Im missing something.
>
> anyone help with this please? I want to use the check_http command
> to monitor the website 172.16.2.6 with the credentials above, 
> L ooking for the string above but am failing :(
>
> Help anyone?
>
> Mark
>
>
> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> 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