Fix nagios service configuration

When nagios 4.0.8 is used it needs the host_name and service_description
to be properly set.

Change-Id: I83d8a504409c464ffeff6e0e9822316a0156759f
This commit is contained in:
Ivan Chavero
2015-12-08 18:25:59 -07:00
parent cf06e357f6
commit 5338d48a29

View File

@@ -37,21 +37,25 @@ define packstack_nagios_services {
seltype => 'nagios_unconfined_plugin_exec_t',
content => template("packstack/${name}.erb"),
}
nagios_command { $name:
command_line => "/usr/lib64/nagios/plugins/${name}",
owner => 'nagios',
group => 'nagios',
mode => '0644',
}
nagios_service { $name:
host_name => $packstack::nagios_configs::controller_host,
host_name => $packstack::nagios_config_wrapper::controller_host,
normal_check_interval => '5',
check_command => $name,
use => 'generic-service',
service_description => "$name service",
owner => 'nagios',
group => 'nagios',
mode => '0644',
}
}
}
class packstack::nagios_config_wrapper (