check_ssh_off
Posted: Sat Jun 15, 2013 7:39 am
I’m looking for the best (appropriate) way to change how the ‘service state’ is returned (reported) from a service. For example; the SSH service on a virtual host machine is desired to be normally ‘off’; when using the check_comand ‘check_ssh’, it returns “Connection refused” (return code of ‘2’) and its State is reported as ‘CRITICAL’. What is desired is that for a return code of ‘2’ the State is reported as ‘OK’ and for a return code of ‘0’ the State is reported as ‘CRITICAL’.
Considered options for a check_ssh_off service so far: Write a completely new service, use a script to change the return code result from the ‘check_ssh’, or just ignore it
.
Your feedback is appreciated.
Considered options for a check_ssh_off service so far: Write a completely new service, use a script to change the return code result from the ‘check_ssh’, or just ignore it
Your feedback is appreciated.