Page 1 of 1
HTTPS secured URL monitoring
Posted: Wed Sep 13, 2017 3:45 am
by keerthiprashanths
Hi Team,
We have a plugin (check_http) which is used for all URL monitoring but we are not able to implement any https:// check via the same.
We downloaded the https:// plugin from Nagios open source but still no luck.
Please help us on the same to monitor the https:// URL's via Nagios XI.
Re: HTTPS secured URL monitoring
Posted: Wed Sep 13, 2017 8:36 am
by mcapra
keerthiprashanths wrote:
We downloaded the https:// plugin from Nagios open source but still no luck.
Can you share a link to the plugin you downloaded?
Can you also shed some light on what sort of problems you were encountering? The OP is a bit vague in that regard other than to say you are having trouble with https monitoring. That could mean the plugin usage, defining a service in Nagios XI to check a website via HTTPS, or anything in-between.
If you are using the "Website Monitoring" wizard, I believe there is a checkbox to use SSL.
The
check_http help/man page offers the following argument for making SSL connections:
Code: Select all
-S, --ssl=VERSION[+]
Connect via SSL. Port defaults to 443. VERSION is optional, and prevents
auto-negotiation (2 = SSLv2, 3 = SSLv3, 1 = TLSv1, 1.1 = TLSv1.1,
1.2 = TLSv1.2). With a '+' suffix, newer versions are also accepted.
In action:
Code: Select all
$ check_http -H my.host.com
HTTP OK HTTP/1.1 200 OK - 332 bytes in 0.004 seconds |time=0.004144s;;;0.000000 size=332B;;;0
$ check_http -H my.host.com -S
HTTP OK HTTP/1.1 200 OK - 332 bytes in 0.004 seconds |time=0.004144s;;;0.000000 size=332B;;;0
Re: HTTPS secured URL monitoring
Posted: Wed Sep 13, 2017 1:09 pm
by dwhitfield
I fully endorse
@mcapra's response. Furthermore, I'd like to point you to
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Also, check_http should be installed in XI. Is there a reason you downloaded it separately?
Re: HTTPS secured URL monitoring
Posted: Thu Sep 14, 2017 1:28 am
by keerthiprashanths
@mcapra :-
Link for https:// download :-
https://exchange.nagios.org/directory/P ... ps/details
Basically we have configured a service in Nagios XI for HTTP monitoring by downloading the plugin from the Nagios open source.
Hope this clarifies your query.
Please let us know in case if any details are required.
Re: HTTPS secured URL monitoring
Posted: Thu Sep 14, 2017 12:45 pm
by kyang
Hi
@keerthiprashanths,
Are you only trying to monitor your Nagios XI URL? with that check_https plugin?
I was able to use it, but on my Nagios XI I do not have SSL configured.
https.PNG
servicecmd.PNG
help.PNG
Could you post the command on how you are using this plugin?
Re: HTTPS secured URL monitoring
Posted: Fri Sep 22, 2017 6:49 am
by keerthiprashanths
Please find the command attached with the screenshot.
Re: HTTPS secured URL monitoring
Posted: Fri Sep 22, 2017 9:12 am
by scottwilkerson
According to the help for the plugin you stated you were using the command should be in this format
Code: Select all
/usr/local/nagios/libexec/check_https mywebsite.com
You have a bunch of extra stuff in there, there shouldn't be -H flags, or -u flags, just the URL to check following the plugin path, and optionally a custom port following that
Re: HTTPS secured URL monitoring
Posted: Wed Oct 11, 2017 3:28 am
by keerthiprashanths
Hello Team,
We tried that but it is the same issue.
- H represents the hostname
-u is mentioned for the URL.
I have attached the screenshot.
Please check and let us know what needs to be done now
Re: HTTPS secured URL monitoring
Posted: Wed Oct 11, 2017 1:20 pm
by npolovenko
@keerthiprashanths, And I assume that you can access this link from the web browser, right? Does the web page require any special authentication? Also, can you try to run the plugin with the same command but from the command line:
navigate to usr/local/nagios/libexec/
Code: Select all
./check_https ker-w-rsaapp01p.unity.media.corp/ssc/
You might get a more specific error info.