mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
9 lines
256 B
PHP
9 lines
256 B
PHP
<?php
|
|
|
|
if ($service['service_port']) {
|
|
$port = $service['service_port'];
|
|
} else {
|
|
$port = '23';
|
|
}
|
|
$check_cmd = \LibreNMS\Config::get('nagios_plugins') . '/check_telnet -H ' . $service['hostname'] . ' -p ' . $port . ' ' . $service['service_param'];
|