Page 1 of 1

Monitoring an HTTPS URL

Posted: Wed Aug 10, 2016 8:48 pm
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?

Re: Monitoring an HTTPS URL

Posted: Wed Aug 10, 2016 9:56 pm
by Box293
Have you tried running the "Website" wizard?

On step 1 you provide the full address, for example: https://www.google.com

Re: Monitoring an HTTPS URL (Untrusted Site)

Posted: Wed Aug 10, 2016 10:20 pm
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.

Re: Monitoring an HTTPS URL

Posted: Wed Aug 10, 2016 11:57 pm
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.

Re: Monitoring an HTTPS URL

Posted: Thu Aug 11, 2016 1:22 pm
by taandrews
Unfortunately I can not provide a screenshot.

Re: Monitoring an HTTPS URL

Posted: Thu Aug 11, 2016 2:09 pm
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.

Re: Monitoring an HTTPS URL

Posted: Thu Aug 11, 2016 4:26 pm
by Box293
Thanks @yo_marc, that would be the next troubleshooting steps we'll need to see, tests from the command line.