Merge pull request #1387 from spinza/addntpservice

Add ntp service monitoring.
This commit is contained in:
Neil Lathwood
2015-07-05 19:52:43 +01:00
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -48,3 +48,4 @@ no graphs will be generated. **
- smtp
- pop
- simap
- ntp
+13
View File
@@ -0,0 +1,13 @@
<?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';
}
?>