Page 1 of 1

Website Monitoring

Posted: Wed Feb 13, 2019 9:20 am
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

Re: Website Monitoring

Posted: Wed Feb 13, 2019 11:13 am
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?

Re: Website Monitoring

Posted: Fri Feb 15, 2019 5:56 am
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.

Re: Website Monitoring

Posted: Fri Feb 15, 2019 7:54 am
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

Re: Website Monitoring

Posted: Thu Mar 07, 2019 6:18 am
by hoegh
Thanks Team.
Website monitoring added successfully. Please close this thread.

Re: Website Monitoring

Posted: Thu Mar 07, 2019 8:29 am
by scottwilkerson
hoegh wrote:Thanks Team.
Website monitoring added successfully. Please close this thread.
Great!

Locking thread