mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Added the service parameter to checks that were missing it (#5753)
This commit is contained in:
committed by
Neil Lathwood
parent
0c8bba64fd
commit
bea8a14ad3
@@ -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'];
|
||||
|
||||
@@ -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":"%"}';
|
||||
|
||||
@@ -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"}';
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user