Page 1 of 1
URL monitoring
Posted: Thu Jun 23, 2016 7:06 am
by RIDS_I2MP
Hi Team,
We want to monitor a URL(hosted on one server) from Nagios server. We are receiving below message:
output from Nagios end.PNG
But we are receiving below output for traceroute command:
traceroute.PNG
Kindly suggest
Re: URL monitoring
Posted: Thu Jun 23, 2016 9:31 am
by bwallace
Looks like you have you the -H and -I fields flipped, where the hostname is where the IP address is supposed to be, and vice versa. Here is the proper formatting:
Code: Select all
./check_http -H nagios .com -f ok -I 45.33.1.79 -u /products/nagios-xi/ -S
HTTP OK: HTTP/1.1 200 OK - 79990 bytes in 1.234 second response time |time=1.234366s;;;0.000000 size=79990B;;;0
- you should not have to specify -p 80 since check_http will use :80 by default (refer to check_http man page, link below).
- In my example above I had to use -S since it redirects to https
http://nagios-plugins.org/doc/man/check_http.html
Re: URL monitoring
Posted: Wed Jun 29, 2016 4:28 am
by RIDS_I2MP
Hi Team,
Below attached is the exact thing which we are checking.
We have done the configurations using "Website URL" monitoring wizard.
And as mentioned before we are not able to "traceroute" command the server on which URL is hosted, is it so that because of this we are receiving the attached error?
Re: URL monitoring
Posted: Wed Jun 29, 2016 10:22 am
by rkennedy
What is the full output of curl workbench.ricoh-ecommerce-utility.com -v from the Nagios machine?
Re: URL monitoring
Posted: Thu Jun 30, 2016 4:24 am
by RIDS_I2MP
Hi Team,
Please find the attached snapshot of the curl command output.
Re: URL monitoring
Posted: Thu Jun 30, 2016 10:14 am
by rkennedy
If the nagios machine can't resolve the DNS of the URL you're looking to check, then it's going to come back critical.