Page 1 of 1

How to monitor URL availability in nagios

Posted: Wed Apr 26, 2017 9:57 am
by sgoffar
Hi Team,

Can you please help on to monitor the below url in Nagios:

[root@dalpXXXX libexec]# ./check_http -H www.google.com
HTTP OK: HTTP/1.1 200 OK - 12369 bytes in 0.360 second response time |time=0.359727s;;;0.000000 size=12369B;;;0

[root@dalpXXXX libexec]# ./check_http -H http://172.26.8.54/monitoring/keepalive.asp
Name or service not known
HTTP CRITICAL - Unable to open TCP socket

Re: How to monitor URL availability in nagios

Posted: Wed Apr 26, 2017 10:17 am
by dwhitfield
From Nagios, what's the output of

Code: Select all

traceroute 172.26.8.54
nmap 172.26.8.43 -p 80
nmap 172.26.8.43 -p 443

Re: How to monitor URL availability in nagios

Posted: Wed Apr 26, 2017 4:31 pm
by tacolover101
what happens if you run it without the http://?

Code: Select all

./check_http -H 172.26.8.54/monitoring/keepalive.asp
to me, the error message indicates an error on parsing or resolving.

Re: How to monitor URL availability in nagios

Posted: Wed Apr 26, 2017 4:38 pm
by dwhitfield

Re: How to monitor URL availability in nagios

Posted: Thu Apr 27, 2017 6:01 am
by sgoffar
./check_http -H 172.26.8.54/monitoring/keepalive.asp
CRITICAL - Socket timeout after 10 seconds

Re: How to monitor URL availability in nagios

Posted: Thu Apr 27, 2017 9:47 am
by dwhitfield
From Nagios, what's the output of

Code: Select all

    traceroute 172.26.8.54
    nmap 172.26.8.43 -p 80
    nmap 172.26.8.43 -p 443