https cert check
Posted: Wed Jul 25, 2012 12:05 pm
Hi
I have a question regarding the http and https check along with cert expiry.I wanted to be get notice when the port 80/443 goes down or cert expired for xyz.com
I used the check_http plugin to obtain the result
On nagios server i defined:
define service {
use generic-service
hosts abc
service_description HTTP Server Check
check_command check_http
}
define service {
use generic-service
host_name abc
service_description HTTPS Check
check_command check_nrpe_1arg!check_cert
}
on remote server (abc) where i need to check the port 80 and 443:
nrpe_local file:
command [check_cert]=/usr/lib/nagios/plugins/check_http --ssl -I xyz.com -C 30
Ouptuts from Nagios GUI:
HTTP Server Check
OK 07-25-2012 16:38:48 0d 2h 39m 54s 1/3 HTTP OK - HTTP/1.1 302 Found - 0.001 second response time
HTTPS Check
OK 07-25-2012 16:39:49 0d 0h 23m 47s 1/3 OK - Certificate will expire on 09/22/2013 15:01.
Questions:
1.
Will my current service description for http check the port 80 on abc and report when down ?
2.
Will my current service description for https check the port 443 on abc and report when down and also give the cert expiry for xyz.com ?
I have a question regarding the http and https check along with cert expiry.I wanted to be get notice when the port 80/443 goes down or cert expired for xyz.com
I used the check_http plugin to obtain the result
On nagios server i defined:
define service {
use generic-service
hosts abc
service_description HTTP Server Check
check_command check_http
}
define service {
use generic-service
host_name abc
service_description HTTPS Check
check_command check_nrpe_1arg!check_cert
}
on remote server (abc) where i need to check the port 80 and 443:
nrpe_local file:
command [check_cert]=/usr/lib/nagios/plugins/check_http --ssl -I xyz.com -C 30
Ouptuts from Nagios GUI:
HTTP Server Check
OK 07-25-2012 16:38:48 0d 2h 39m 54s 1/3 HTTP OK - HTTP/1.1 302 Found - 0.001 second response time
HTTPS Check
OK 07-25-2012 16:39:49 0d 0h 23m 47s 1/3 OK - Certificate will expire on 09/22/2013 15:01.
Questions:
1.
Will my current service description for http check the port 80 on abc and report when down ?
2.
Will my current service description for https check the port 443 on abc and report when down and also give the cert expiry for xyz.com ?