Website Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Website Monitoring

Post by hoegh »

Hi team,

Configured Website monitorign as suggeted in below post.
https://support.nagios.com/forum/viewto ... 16&t=52314


Now the problem is, I'm getting Nagios Status Information as HTTP 200 OK, but Nagios is not generating Critical alerts even the site is not accessible.

Nagios configuration :

Code: Select all

check_http -H docmap.hoegh.com -u '/docmap/page/doc/dmDocIndex.html' -S --sni
Please explain the working of check_http or suggest any other plugin which can detect website down state as well.

Thanks & regards
Hoegh
Thanks
Höegh
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Website Monitoring

Post by scottwilkerson »

hoegh wrote:Now the problem is, I'm getting Nagios Status Information as HTTP 200 OK, but Nagios is not generating Critical alerts even the site is not accessible.
What is nagios returning when site is not accessible?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Website Monitoring

Post by hoegh »

scottwilkerson wrote:What is nagios returning when site is not accessible?
HTTP OK: HTTP/1.1 302 Moved Temporarily - 674 bytes in 0.032 second response time.

Above status information is same for all the time irrespective of website's actual status.
Thanks
Höegh
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Website Monitoring

Post by scottwilkerson »

hoegh wrote: HTTP OK: HTTP/1.1 302 Moved Temporarily - 674 bytes in 0.032 second response time.

Above status information is same for all the time irrespective of website's actual status.
Ok this is a resirection. Add the following to the command to follow the redirection:

Code: Select all

-f follow
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Website Monitoring

Post by hoegh »

Thanks Team.
Website monitoring added successfully. Please close this thread.
Thanks
Höegh
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Website Monitoring

Post by scottwilkerson »

hoegh wrote:Thanks Team.
Website monitoring added successfully. Please close this thread.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked