Skip to content

Commit

Permalink
Postpend nrpe_options
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
towo committed Dec 28, 2020
1 parent 7354d7b commit 0702b0e
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 173 deletions.
3 changes: 1 addition & 2 deletions manifests/check/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@

$nrpe_command = $::nagios::params::nrpe_command
$nrpe_options = $::nagios::params::nrpe_options
$nrpe = "${nrpe_command} ${nrpe_options}"

@@nagios_command { "check_nrpe_service_${title}_${::fqdn}":
command_line => "${nrpe} -c check_service_${title}",
command_line => "${nrpe_command} -c check_service_${title} ${options}",
tag => 'service',
}

Expand Down
Loading

0 comments on commit 0702b0e

Please sign in to comment.