I have installed a certificate for the cPanel DNS Only webinterface (WHM). And I have a Nagios server which I want to use to monitor the certificate so I get alerted when it's about to expire.
That is no problem for a normal cPanel server but it doesn't seem to work on a DNS only server. This is my command:
The server doesn't seem to respond at port 443, anyone got a suggestion on how to solve this?
That is no problem for a normal cPanel server but it doesn't seem to work on a DNS only server. This is my command:
Code:
define command {
command_name check_ssl_expiry
command_line $USER1$/check_http -H $ARG1$ -S --sni -f follow -C 14,7 -p $ARG2$
}
And this is my service definition:
define service{
use generic-service-daily
host_name ns1.example.net
service_description Certificate ns1.example.net
check_command check_ssl_expiry!ns1.example.net!443
}
Last edited by a moderator: