Monitoring websites

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Monitoring websites

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring websites

Post 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 .....
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post by MSPk »

Do we have any plugings which with check the response time of a webpage using basic authentication.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring websites

Post by abrist »

Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring websites

Post 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.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring websites

Post 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.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring websites

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked