Page 1 of 1
Https link minitor via nagios
Posted: Wed Apr 04, 2018 6:16 am
by Ravikimt
How to monitor https link via nagios please help me.
Please provide me command as well as service definitions also.
Re: Https link minitor via nagios
Posted: Wed Apr 04, 2018 9:27 am
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/
Re: Https link minitor via nagios
Posted: Thu Apr 05, 2018 6:18 am
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$
}
Re: Https link minitor via nagios
Posted: Thu Apr 05, 2018 9:18 am
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
Re: Https link minitor via nagios
Posted: Thu Apr 05, 2018 9:40 am
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.
Re: Https link minitor via nagios
Posted: Thu Apr 05, 2018 9:53 am
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
Re: Https link minitor via nagios
Posted: Thu Apr 05, 2018 10:55 am
by Ravikimt
Re: Https link minitor via nagios
Posted: Thu Apr 05, 2018 11:40 am
by scottwilkerson
glad to be of assistance