14 lines
250 B
PHP
Raw Normal View History

2015-07-05 15:24:37 +02:00
<?php
$check = shell_exec($config['nagios_plugins'] . "/check_ntp -H ".$service['hostname']." ".$service['service_param']);
list($check, $time) = split("\|", $check);
if(strstr($check, "NTP OK")) {
$status = '1';
} else {
$status = '0';
}
?>