Re: [Nagios-users] check_http - user+password - string required
The URL you're checking is returning a 302 REDIRECT. There is no HTML to look at. You'll probably want to add '--onredirect=follow' and either a -s, -R or -e string check based on your needs. ah ha! thanks - it was the --onredirect=follow that i was missing --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@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
[Nagios-users] check_http - user+password - string required
Hi Trying to get check_http to check a site that requires authorization and also the check needs to expect a certain string back in the response. So far i have ./check_http -H www.foo.net -u /some/where/ -a user:pass OK - HTTP/1.1 302 Found - 0.087 second response time |time=0.086617s;;;0.00 size=491B;;;0 but what can i add to this to make it so that a string i expect is checked. I hae tried all sensible options i can tell from the help. thanks --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_http - user+password - string required
On 2/21/06, Tom Brown [EMAIL PROTECTED] wrote: Hi Trying to get check_http to check a site that requires authorization and also the check needs to expect a certain string back in the response. So far i have ./check_http -H www.foo.net -u /some/where/ -a user:pass OK - HTTP/1.1 302 Found - 0.087 second response time |time=0.086617s;;;0.00 size=491B;;;0 but what can i add to this to make it so that a string i expect is checked. I hae tried all sensible options i can tell from the help. Look at check_website or webinject on nagiosexchange. Both plugins let you get much more in-depth as far as website checks. For example, we do an indepth (check_website) check once an hour, and more frequent checks of is the website responding(check_http). -- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642 ___ Nagios-users mailing list Nagios-users@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