Skip to content

Commit 0702b0e

Browse files
committed
Postpend nrpe_options
With `check_nrpe` and nrpe 3, the arguments parameter needs be at the last possible place in the call to `check_nrpe`. This changes puts the options after the check command, allowing to order it correctly.
1 parent 7354d7b commit 0702b0e

File tree

2 files changed

+172
-173
lines changed

2 files changed

+172
-173
lines changed

manifests/check/service.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414

1515
$nrpe_command = $::nagios::params::nrpe_command
1616
$nrpe_options = $::nagios::params::nrpe_options
17-
$nrpe = "${nrpe_command} ${nrpe_options}"
1817

1918
@@nagios_command { "check_nrpe_service_${title}_${::fqdn}":
20-
command_line => "${nrpe} -c check_service_${title}",
19+
command_line => "${nrpe_command} -c check_service_${title} ${options}",
2120
tag => 'service',
2221
}
2322

0 commit comments

Comments
 (0)