fix: Added the service parameter to checks that were missing it (#5753)

This commit is contained in:
Richard Mayhew
2017-02-03 22:06:42 +02:00
committed by Neil Lathwood
parent 0c8bba64fd
commit bea8a14ad3
7 changed files with 7 additions and 7 deletions

View File

@@ -1,3 +1,3 @@
<?php
$check_cmd = $config['nagios_plugins'] . "/check_ftp -H ".$service['hostname'];
$check_cmd = $config['nagios_plugins'] . "/check_ftp -H ".$service['hostname']." ".$service['service_param'];

View File

@@ -1,6 +1,6 @@
<?php
// check_cmd is the command that is run to execute the check
$check_cmd = $config['nagios_plugins'] . "/check_icmp ".($service['service_ip'] ? $service['service_ip'] : $service['hostname']);
$check_cmd = $config['nagios_plugins'] . "/check_icmp ".($service['service_ip'] ? $service['service_ip'] : $service['hostname'])." ".$service['service_param'];
// Check DS is a json array of the graphs that are available
$check_ds = '{"rtt":"s","pl":"%"}';

View File

@@ -6,7 +6,7 @@ if ($service['service_param']) {
} else {
$dbname = "mysql";
}
$check_cmd = $config['nagios_plugins'] . "/check_mysql -H ".$service['hostname']." ".$dbname;
$check_cmd = $config['nagios_plugins'] . "/check_mysql -H ".$service['hostname']." ".$dbname." ".$service['service_param'];
// Check DS is a json array of the graphs that are available
$check_ds = '{"mysqlqueries":"c","mysql":"c","mysqluptime":"c","mysqlQcache":"c"}';

View File

@@ -1,2 +1,2 @@
<?php
$check_cmd = $config['nagios_plugins'] . "/check_pop -H ".$service['hostname'];
$check_cmd = $config['nagios_plugins'] . "/check_pop -H ".$service['hostname']." ".$service['service_param'];

View File

@@ -1,2 +1,2 @@
<?php
$check_cmd = $config['nagios_plugins'] . "/check_simap -H ".$service['hostname'];
$check_cmd = $config['nagios_plugins'] . "/check_simap -H ".$service['hostname']." ".$service['service_param'];

View File

@@ -1,2 +1,2 @@
<?php
$check_cmd = $config['nagios_plugins'] . "/check_spop -H ".$service['hostname'];
$check_cmd = $config['nagios_plugins'] . "/check_spop -H ".$service['hostname']." ".$service['service_param'];

View File

@@ -4,4 +4,4 @@ if ($service['service_port']) {
} else {
$port = '23';
}
$check_cmd = $config['nagios_plugins'] . "/check_telnet -H ".$service['hostname']." -p ".$port;
$check_cmd = $config['nagios_plugins'] . "/check_telnet -H ".$service['hostname']." -p ".$port." ".$service['service_param'];