When going through the necessary steps in the configuration wizard, I've tried both Web Page Content, and Web Page Regular Expression Match - both of which are always reporting as OK. I've changed the string to something not found on the page such as "asdf" or "wtf" and it still passes the check.
I've also ran the check command via the command line, and it's also passing. What am I missing here? The below commands were taken from Service Management in the Nagios Core Config Manager.
See below and attached screen shot.
Code: Select all
[root@localhost libexec]# ./check_http -s "wtf" -f -I 66.XX.XX.XX -u "http://www1.ourdomain.com" -p 80
HTTP OK - HTTP/1.1 302 Found - 0.010 second response time |time=0.009645s;;;0.000000 size=574B;;;0Code: Select all
[root@localhost libexec]# ./check_http -r "this-should-fail" -f -I 66.XX.XX.XX -u "http://www1.ourdomain.com" -p 80
HTTP OK - HTTP/1.1 302 Found - 0.012 second response time |time=0.011685s;;;0.000000 size=574B;;;0