Monitoring an HTTPS URL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Monitoring an HTTPS URL

Post by taandrews »

I haven't found any instructions for monitoring and SSL/HTTPS URL using Nagios XI 5.2.0. The site that I am trying to monitor ask to accept the cert before the page will load. Any suggestions?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring an HTTPS URL

Post by Box293 »

Have you tried running the "Website" wizard?

On step 1 you provide the full address, for example: https://www.google.com
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Monitoring an HTTPS URL (Untrusted Site)

Post by taandrews »

Yes I used the wizard and enter the URL, The wizard complete and generate a CRITICAL. When I hit the URL via the browser I am presented with the page that states "This Connection is Untrusted" and given the options "Get me out of here!" or "I Understand the Risks". Of course I can trust the site via the browser but the instructions nor the wizard provided a fix for this.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring an HTTPS URL

Post by Box293 »

Can you post some screenshots of this please. I'm not sure if this is an issue with your XI server or the website you are trying to access.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Monitoring an HTTPS URL

Post by taandrews »

Unfortunately I can not provide a screenshot.
yo_marc
Posts: 83
Joined: Thu Aug 11, 2016 1:56 pm

Re: Monitoring an HTTPS URL

Post by yo_marc »

I usually like to build up HTTP check commands using the command line.

Example: /usr/local/nagios/libexec/check_http -H <hostname.domanname> -u "/start/of/some/url" -S (for https), etc. etc.

That way the command can be tested quickly/easily on the fly, without having to propagate changes, apply-configs, etc.

For your case, my hunch is the -f (follow) argument may be helpful, but I am not certain. In my experience, SSL certs are tricky to work with in regards to monitoring.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring an HTTPS URL

Post by Box293 »

Thanks @yo_marc, that would be the next troubleshooting steps we'll need to see, tests from the command line.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked