How to monitor URL availability in nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

How to monitor URL availability in nagios

Post 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
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to monitor URL availability in nagios

Post 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
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: How to monitor URL availability in nagios

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to monitor URL availability in nagios

Post by dwhitfield »

sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: How to monitor URL availability in nagios

Post by sgoffar »

./check_http -H 172.26.8.54/monitoring/keepalive.asp
CRITICAL - Socket timeout after 10 seconds
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to monitor URL availability in nagios

Post 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
Locked