mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
14 lines
191 B
PHP
14 lines
191 B
PHP
|
<?php
|
||
|
|
||
|
$check = `checkers/check_smtp -H $service[hostname]`;
|
||
|
|
||
|
list($check, $time) = split("\|", $check);
|
||
|
|
||
|
if(strstr($check, "SMTP OK")) {
|
||
|
$status = '1';
|
||
|
} else {
|
||
|
$status = '0';
|
||
|
}
|
||
|
|
||
|
?>
|