Page 1 of 2
Cannot find page title as Web URL content check
Posted: Fri Apr 22, 2016 3:46 pm
by dlukinski
Cannot find page title as Web URL content check
Should we be looking for content before or after login? (in this case same one word that cannot be found)
HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string 'Siebel' not found on '
http://siebel.mydomain.com:80/service_eadsi' - 422 bytes in 0.007 second response time
Re: Cannot find page title as Web URL content check
Posted: Sat Apr 23, 2016 6:47 pm
by rkennedy
Can you post your check_command for us to look at?
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 7:58 am
by dlukinski
rkennedy wrote:Can you post your check_command for us to look at?
$USER1$/check_http -H $HOSTADDRESS$ $ARG1$ (check_xi_service_http)
- -s "Welcome back" -f ok -I 10.x.x.120 -u '/service_eadsi' -p 80 -a 'nagximon:mypassword'
This is NTLM authentication (I think)
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 8:04 am
by eloyd
Change "-f ok" to "-f follow" as the option you are using treats a 301/302 return code as a 200 return code.
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 8:52 am
by dlukinski
eloyd wrote:Change "-f ok" to "-f follow" as the option you are using treats a 301/302 return code as a 200 return code.
Have changed to "HTTP CRITICAL: HTTP/1.1 200 OK - string 'Welcome back' not found on '
http://siebel.konecranes.com:80/service_eadsi/' - 1545 bytes in 0.022 second response time"
- must be because it cannot login via NTLM
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 8:56 am
by eloyd
So this is related to all of your other tickets then, and you need the ability to get past your authentication before Nagios can confirm functionality.
May I ask what you're trying to monitor exactly? If it's web server availability, then you are confirming that with a functional log in page.
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 9:03 am
by dlukinski
eloyd wrote:So this is related to all of your other tickets then, and you need the ability to get past your authentication before Nagios can confirm functionality.
May I ask what you're trying to monitor exactly? If it's web server availability, then you are confirming that with a functional log in page.
Should I open the ticket via email to ask all the questions and concentrate on specific portal case (out of dozens we have to deal with)?
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 9:09 am
by eloyd
Nagios support just started 8 minutes ago (they are in Central Time) so I would give them some time to catch up with your tickets.

Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 9:11 am
by dlukinski
eloyd wrote:Nagios support just started 8 minutes ago (they are in Central Time) so I would give them some time to catch up with your tickets.

I opened one trying to get questions answered. (would close most of these once done)
Re: Cannot find page title as Web URL content check
Posted: Mon Apr 25, 2016 10:58 am
by rkennedy
If you want to monitor the title of a web page, then you're going to use
-r for Regex.
-s will only work for content.
-r, --regex, --ereg=STRING
Search page for regex STRING
As for NTLM, this isn't going to work with check_http. It is basic auth only. If you still have questions, please post the full output of
curl http://siebel.konecranes.com:80/service_eadsi/ -v