mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Pass service parameters to check_ssh allowing one to specify alternative port for ssh for example using -p flag.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$check = shell_exec($config['nagios_plugins'] . "/check_ssh -H ".$service['hostname']);
|
$check = shell_exec($config['nagios_plugins'] . "/check_ssh -H ".$service['hostname']." ".$service['service_param']);
|
||||||
|
|
||||||
list($check, $time) = split("\|", $check);
|
list($check, $time) = split("\|", $check);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user