Commit 198b84bf authored by Micah Anderson's avatar Micah Anderson

change the nagios2::passive_service check so that it uses the $name variable...

change the nagios2::passive_service check so that it uses the $name variable instead of the $real_host variable because $real_host prevents us from creating more than one rdiff-backup define on a server because this will cause a duplicate defintion. The $name variable allows for multiple without creating duplicate passive_service checks
parent 54bc1da4
......@@ -97,7 +97,7 @@ class backupninja::server {
if $nagios_server {
# configure a passive service check for backups
nagios2::passive_service { "backups-$real_host": nagios2_host_name => $real_host, nagios2_description => 'backups', servicegroups => "backups" }
nagios2::passive_service { "backups-$name": nagios2_host_name => $real_host, nagios2_description => 'backups', servicegroups => "backups" }
}
if !defined(File["$real_dir"]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment