> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Tom Brown > Sent: Tuesday, February 21, 2006 10:14 AM > To: [email protected] > Subject: [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.000000 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.
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. -- Marc ------------------------------------------------------- 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=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Nagios-users mailing list [email protected] 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
