Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Added the missing optional parameter to service checks #5753

Merged
merged 1 commit into from Feb 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/services/check_ftp.inc.php
@@ -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'];
2 changes: 1 addition & 1 deletion includes/services/check_icmp.inc.php
@@ -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":"%"}';
Expand Down
2 changes: 1 addition & 1 deletion includes/services/check_mysql.inc.php
Expand Up @@ -6,7 +6,7 @@
} 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"}';
Expand Down
2 changes: 1 addition & 1 deletion includes/services/check_pop.inc.php
@@ -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'];
2 changes: 1 addition & 1 deletion includes/services/check_simap.inc.php
@@ -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'];
2 changes: 1 addition & 1 deletion includes/services/check_spop.inc.php
@@ -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'];
2 changes: 1 addition & 1 deletion includes/services/check_telnet.inc.php
Expand Up @@ -4,4 +4,4 @@
} 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'];