Pass service parameters to check_ssh allowing one to specify alternative port for ssh for example using -p flag.

This commit is contained in:
Louis Rossouw
2015-07-05 00:35:33 +02:00
parent 7d6dbe4d9b
commit bf8df0fbe2

View File

@ -1,6 +1,6 @@
<?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);