diff --git a/nagios/manifests/target.pp b/nagios/manifests/target.pp index 1988a8b..5132351 100644 --- a/nagios/manifests/target.pp +++ b/nagios/manifests/target.pp @@ -566,13 +566,13 @@ define nagios::target::nrpe::service($command=undef, "openbsd" => "wheel", default => "root", }, - content => "command[${binary}]=${nagios::common::libdir}/${command_real}\n", + content => "command[${config}]=${nagios::common::libdir}/${command_real}\n", require => File["/etc/nrpe.d"], notify => Service["nrpe"], } @@nagios::service { "${::homename}_${config}": - command => "check_nrpe!${binary}", + command => "check_nrpe!${config}", description => $description, host => $::homename, }