How to monitor https link via nagios please help me.
Please provide me command as well as service definitions also.
Https link minitor via nagios
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Https link minitor via nagios
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/
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
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$
}
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$
}
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Https link minitor via nagios
use this as the check_command line
the -S is ssl
Code: Select all
check_command check_http! -H www.google.com -u /gmail/about/ -S
Re: Https link minitor via nagios
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Https link minitor via nagios
What do you have set as the $HOSTADDRESS$ for this host?
This is what I ran to test it
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
Thank you so much scottwilkerson. Actually I am newbie for nagios.
Finally it worked for me also. Again thank you so much man
Finally it worked for me also. Again thank you so much man
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Https link minitor via nagios
glad to be of assistance