Files
librenms-librenms/includes/services/ssh/check.inc

14 lines
250 B
PHP

<?php
$check = shell_exec($config['nagios_plugins'] . "/check_ssh -H ".$service['hostname']." ".$service['service_param']);
list($check, $time) = split("\|", $check);
if(strstr($check, "SSH OK")) {
$status = '1';
} else {
$status = '0';
}
?>