Files
librenms/includes/services/ftp/check.inc
T
2011-09-20 09:55:11 +00:00

14 lines
223 B
PHP

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