Cannot find page title as Web URL content check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Cannot find page title as Web URL content check

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Cannot find page title as Web URL content check

Post by rkennedy »

Can you post your check_command for us to look at?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Cannot find page title as Web URL content check

Post 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)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cannot find page title as Web URL content check

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Cannot find page title as Web URL content check

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cannot find page title as Web URL content check

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Cannot find page title as Web URL content check

Post 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)?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cannot find page title as Web URL content check

Post 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. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Cannot find page title as Web URL content check

Post 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)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Cannot find page title as Web URL content check

Post 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
Former Nagios Employee
Locked