Page 1 of 2
Monitoring websites
Posted: Fri May 24, 2013 1:00 pm
by MSPk
We are trying to monitor websites hosted on our client infrastructure with Private IP and pointed to external websites like faceboo, etc.. for promotions when we try to monitoring these websites the service DNS IP Match fails as the websites is resolved to a public IP against the private IP. Is there an option where we can chk the websites hosted on the private IP on client's servers directly.
Re: Monitoring websites
Posted: Fri May 24, 2013 2:44 pm
by sreinhardt
Can you please explain with a little more detail. It sounds like your nagios server is local to you, and you are attempting to use a public page such as facebook to monitor ads there, hosted at a third location by your client. However you would like to specify your clients IP to use opposed to the dns name that is being resolved.
You should look at the man page for check_http plugin. When you specify an IP as an argument it can ignore the domain name also specified and look directly to the IP specified.
http://nagiosplugins.org/man/check_http
check_http -I 127.0.0.1 -H remote.domain .....
Re: Monitoring websites
Posted: Mon May 27, 2013 6:37 am
by MSPk
Do we have any plugings which with check the response time of a webpage using basic authentication.
Re: Monitoring websites
Posted: Tue May 28, 2013 11:57 am
by abrist
Re: Monitoring websites
Posted: Tue May 28, 2013 7:48 pm
by MSPk
Thanks for the post, I will check above plugin today.
I have been using this plugin to check the response times of the websites :
http://exchange.nagios.org/directory/Pl ... se/details
However it fails for HTTPS sites with an error message "<url> doeasn't have any data", I have checked that these webpages do open up.
Re: Monitoring websites
Posted: Wed May 29, 2013 9:47 am
by slansing
Let us know how the other plugin works, that error is able to be found in the plugin:
Code: Select all
if [ ! -s "$WGETOUTCKSUM" ]; then
OUTMSG="$URL does not contain any data"
STATUS=CRITICAL
output
fi
Looks like you probably cannot get a site's checksum with the "-s" flag if it is running SSL.
Re: Monitoring websites
Posted: Wed May 29, 2013 10:57 am
by MSPk
Hi,
The check_basicauth plugin works fine, but what we are really interested in is getting the response time of the website.
if [ ! -s "$WGETOUTCKSUM" ]; then
OUTMSG="$URL does not contain any data"
STATUS=CRITICAL
output
fi
Looks like you probably cannot get a site's checksum with the "-s" flag if it is running SSL.
Can this be bypassed in any way to get the response time for websites using SSL? or do we have any other plugin available to get those metrics
Re: Monitoring websites
Posted: Wed May 29, 2013 11:03 am
by slansing
Well, if you are looking for a basic response time, your host's ping check will give you the RTA or "Round Trip Average." If you are trying to check response time of a certain action on the website, that is more into the realm of webtesting. The Web Transaction Monitoring Wizard can assist with that.
Re: Monitoring websites
Posted: Fri Jun 28, 2013 9:40 am
by MSPk
we are monitoring a website which when typed on the web browser re-directs to a different page. Now when this original website is configured on nagios both the http and the host check return HTTP 500 error. Any pointers on what could have caused this?
Re: Monitoring websites
Posted: Fri Jun 28, 2013 11:33 am
by sreinhardt
I am not sure how well either of these plugins will work with redirects. However a 500 error is generated via your server, not the plugin. Have you looked into the apache error logs?