Nagios: check_http from CLI works, but...
when Nagios calls it, not so much.
My command from the command line is as follows:
./check_http -H <website> -S -t 15 -w 5 -c 10 -f follow
Result: HTTP OK HTTP/1.1 200 OK - 5124 bytes in 0.690 seconds |time=0.689690s;5.000000;10.000000;0.000000 size=5124B;;;0
When Nagios calls it, it results in a Warning state:
Result: HTTP WARNING: HTTP/1.1 403 Forbidden
Anybody have any ideas?
Is it possible that you are using different values for <website>?
If you have virtual hosts set up, you might get different results
depending on the hostname that you use.
I did get it worked out. This was working fine in my v2.11 environment with the commands that I had. Basically I put all my arguments in the commands def, rather than in my service def...except -H <website>. Same command though. Thanks for your reply carltm.
|All times are GMT -5. The time now is 05:30 PM.|