Adam Amstrong 217e119ca2 make services work again. uses nagios plugins.
git-svn-id: http://www.observium.org/svn/observer/trunk@812 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-11 04:35:16 +00:00

14 lines
226 B
PHP

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