finalizing contacts
This commit is contained in:
@@ -32,4 +32,15 @@ $ng_contact_groups = undef,
|
|||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
$ng_nagios_server = $::cd_nagios::params::ng_nagios_server
|
||||||
|
$ng_target_add_contact = $::cd_nagios::params::ng_target_add_contact
|
||||||
|
ng_contacts_rule_erb = $::cd_nagios::params::ng_contacts_rule_erb
|
||||||
|
|
||||||
|
if $::fqdn == $ng_nagios_server {
|
||||||
|
|
||||||
|
concat::fragment { $name:
|
||||||
|
target => $ng_target_add_contact,
|
||||||
|
content => template($ng_contacts_rule_erb),
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ class cd_nagios::nagios::objects::config (
|
|||||||
|
|
||||||
require cd_nagios::nagios::objects::commands
|
require cd_nagios::nagios::objects::commands
|
||||||
require cd_nagios::nagios::objects::template_rules
|
require cd_nagios::nagios::objects::template_rules
|
||||||
|
require cd_nagios::nagios::objects::contacts
|
||||||
require cd_nagios::nagios::objects::add_contact_rules
|
require cd_nagios::nagios::objects::add_contact_rules
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -974,7 +974,7 @@ $ng_target_servicegroup = "${ng_conf_d_dir}/nagios_servicegroup.cfg"
|
|||||||
$ng_target_base_contact = "${ng_conf_d_dir}/nagios_base_contact.cfg"
|
$ng_target_base_contact = "${ng_conf_d_dir}/nagios_base_contact.cfg"
|
||||||
$ng_target_add_contact = "${ng_conf_d_dir}/nagios_add_contact.cfg"
|
$ng_target_add_contact = "${ng_conf_d_dir}/nagios_add_contact.cfg"
|
||||||
$ng_contacts_head_erb = 'cd_nagios/nagios/contacts_cfg_head.erb'
|
$ng_contacts_head_erb = 'cd_nagios/nagios/contacts_cfg_head.erb'
|
||||||
$ng_contact_rule_erb = 'cd_nagios/nagios/contact_cfg_rule.erb'
|
$ng_contacts_rule_erb = 'cd_nagios/nagios/contact_cfg_rule.erb'
|
||||||
$ng_target_contactgroup = "${ng_conf_d_dir}/nagios_contactgroup.cfg"
|
$ng_target_contactgroup = "${ng_conf_d_dir}/nagios_contactgroup.cfg"
|
||||||
$ng_target_command = "${ng_conf_d_dir}/nagios_command.cfg"
|
$ng_target_command = "${ng_conf_d_dir}/nagios_command.cfg"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user