Https link minitor via nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Https link minitor via nagios

Post by Ravikimt »

How to monitor https link via nagios please help me.
Please provide me command as well as service definitions also.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Https link minitor via nagios

Post by scottwilkerson »

Here are some examples, but we cannot do the configuration for you
https://assets.nagios.com/downloads/nag ... vices.html

If you are looking for easier monitoring as far as configuration goes, consider Nagios XI which just allows you to run through an easy wizard
https://www.nagios.com/products/nagios-xi/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Https link minitor via nagios

Post by Ravikimt »

Thanks scottwilkerson for your reply.

Still I am getting this error "HTTP WARNING: HTTP/1.1 404 Not Found - 1236 bytes in 0.546 second response time".
Please help me here to resolve this issue, I am not able to monitoring any secure URL which contains https string.

Currently, I am using this command please have a look at this.

define service{
use generic-service
host_name winserver_demo
service_description https://google.com
check_command check_http! -H www.google.com -u https://www.google.com/gmail/about/
}

define command{
command_name check_https
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Https link minitor via nagios

Post by scottwilkerson »

use this as the check_command line

Code: Select all

check_command check_http! -H www.google.com -u /gmail/about/ -S
the -S is ssl
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Https link minitor via nagios

Post by Ravikimt »

Thanks scottwilkerson.
After using this command also check_command check_http! -H http://www.google.com -u /gmail/about/ -S

I am getting this error "CRITICAL - Socket timeout."
I want get rid of this problem any how. It's a big challenge for me now. Please help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Https link minitor via nagios

Post by scottwilkerson »

What do you have set as the $HOSTADDRESS$ for this host?

This is what I ran to test it

Code: Select all

./check_http -I www.google.com -H www.google.com -u /gmail/about/ -S
HTTP OK: HTTP/1.1 200 OK - 30213 bytes in 0.292 second response time |time=0.292305s;;;0.000000 size=30213B;;;0
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

Re: Https link minitor via nagios

Post by Ravikimt »

Thank you so much scottwilkerson. Actually I am newbie for nagios. :| :x :x :lol: :lol: :lol: :lol:
Finally it worked for me also. Again thank you so much man
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Https link minitor via nagios

Post by scottwilkerson »

glad to be of assistance
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked