HTTPS secured URL monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

HTTPS secured URL monitoring

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: HTTPS secured URL monitoring

Post 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
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: HTTPS secured URL monitoring

Post 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?
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Re: HTTPS secured URL monitoring

Post 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.
kyang

Re: HTTPS secured URL monitoring

Post 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?
You do not have the required permissions to view the files attached to this post.
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Re: HTTPS secured URL monitoring

Post by keerthiprashanths »

Please find the command attached with the screenshot.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: HTTPS secured URL monitoring

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Re: HTTPS secured URL monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: HTTPS secured URL monitoring

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked