nagios: Fixed more conflicting names when same command is used for multiple nrpe service targets.

This commit is contained in:
Timo Makinen 2014-12-11 11:34:55 +02:00
parent e4a9fd523f
commit 80fdf06830

View file

@ -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,
}