dump_config_line($icinga2_cfg, "\tnotification_interval = $service_2x->{'notification_interval'},");
}
if(defined($service_2x->{'notifications_enabled'})) {
- dump_config_line($icinga2_cfg, "\tnotifications_enabled = $service_2x->{'notifications_enabled'},");
+ dump_config_line($icinga2_cfg, "\tenable_notifications = $service_2x->{'notifications_enabled'},");
}
if(defined($service_2x->{'__I2CONVERT_NOTIFICATION_FILTERS'})) {
dump_config_line($icinga2_cfg, "\tvolatile = $service_2x->{'volatile'},");
}
+ if(defined($service_2x->{'active_checks_enabled'})) {
+ dump_config_line($icinga2_cfg, "\tenable_active_checks = $service_2x->{'active_checks_enabled'},");
+ }
+ if(defined($service_2x->{'passive_checks_enabled'})) {
+ dump_config_line($icinga2_cfg, "\tenable_passive_checks = $service_2x->{'passive_checks_enabled'},");
+ }
+ if(defined($service_2x->{'flap_detection_enabled'})) {
+ dump_config_line($icinga2_cfg, "\tenable_flapping = $service_2x->{'flap_detection_enabled'},");
+ }
+
####################################################
# custom attr
####################################################
dump_config_line($icinga2_cfg, "\tnotification_interval = $host_2x->{'notification_interval'},");
}
if(defined($host_2x->{'notifications_enabled'})) {
- dump_config_line($icinga2_cfg, "\tnotifications_enabled = $host_2x->{'notifications_enabled'},");
+ dump_config_line($icinga2_cfg, "\tenable_notifications = $host_2x->{'notifications_enabled'},");
}
####################################################
dump_config_line($icinga2_cfg, "\tcheck_period = \"$host_2x->{'check_period'}\",");
}
+ if(defined($host_2x->{'active_checks_enabled'})) {
+ dump_config_line($icinga2_cfg, "\tenable_active_checks = $host_2x->{'active_checks_enabled'},");
+ }
+ if(defined($host_2x->{'passive_checks_enabled'})) {
+ dump_config_line($icinga2_cfg, "\tenable_passive_checks = $host_2x->{'passive_checks_enabled'},");
+ }
+ if(defined($host_2x->{'flap_detection_enabled'})) {
+ dump_config_line($icinga2_cfg, "\tenable_flapping = $host_2x->{'flap_detection_enabled'},");
+ }
+
####################################################
# custom attr
####################################################
dump_config_line($icinga2_cfg, "\t\tnotification_interval = $service_2x->{'notification_interval'},");
}
if(defined($service_2x->{'notifications_enabled'})) {
- dump_config_line($icinga2_cfg, "\tnotifications_enabled = $service_2x->{'notifications_enabled'},");
+ dump_config_line($icinga2_cfg, "\tenable_notifications = $service_2x->{'notifications_enabled'},");
}
####################################################
dump_config_line($icinga2_cfg, "\tcheck_period = \"$service_2x->{'check_period'}\",");
}
+ if(defined($service_2x->{'active_checks_enabled'})) {
+ dump_config_line($icinga2_cfg, "\t\tenable_active_checks = $service_2x->{'active_checks_enabled'},");
+ }
+ if(defined($service_2x->{'passive_checks_enabled'})) {
+ dump_config_line($icinga2_cfg, "\t\tenable_passive_checks = $service_2x->{'passive_checks_enabled'},");
+ }
+ if(defined($service_2x->{'flap_detection_enabled'})) {
+ dump_config_line($icinga2_cfg, "\t\tenable_flapping = $service_2x->{'flap_detection_enabled'},");
+ }
+
####################################################
# custom attr
####################################################