Adam Amstrong c1748ae3c5 add ; to old db update script
git-svn-id: http://www.observium.org/svn/observer/trunk@1078 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-25 17:53:14 +00:00

16 lines
334 B
PHP

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