on my configured checks I get this as a response
COMMAND: /usr/local/nagios/libexec/check_http -H http://www.whro.org -4
OUTPUT: HTTP OK - HTTP/1.1 301 Moved Permanently - 0.003 second response time |time=0.003290s;;;0.000000 size=541B;;;0
But when I run the command via CLI on the nagios server I get this:
[ronb@nagios libexec]$ ./check_http -H whro.org -4
HTTP OK HTTP/1.1 200 OK - 19897 bytes in 0.208 seconds |time=0.207661s;;;0.000000 size=19897B;;;0
[ronb@nagios libexec]$
Why the disparady, the like is up and running fine, i would think the 200 ok would be the proper response.
Thank you for any and all help.
Not sure if I have a problem or not!!
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Not sure if I have a problem or not!!
I know why now, we were redirecting www and so I changed the check to look for whro.org only and all is well.