contacts.cfg had duplicate entries
Posted: Wed Aug 11, 2010 7:37 pm
When saving a contacts.cfg for NagiosXI the configure file has duplicate values for host_notifications_enabled, service_notifications_enabled, retain_status_information.
define contact {
contact_name jdoe
alias Joe Doe
contactgroups admins
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period jdoe_notification_times
service_notification_period jdoe_notification_times
host_notification_options d,u,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
can_submit_commands 1
retain_status_information 1
retain_nonstatus_information 1
email [email protected]
pager [email protected]
host_notifications_enabled 1
retain_status_information 1
service_notifications_enabled 1
use generic-contact
}
define contact {
contact_name jdoe
alias Joe Doe
contactgroups admins
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period jdoe_notification_times
service_notification_period jdoe_notification_times
host_notification_options d,u,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
can_submit_commands 1
retain_status_information 1
retain_nonstatus_information 1
email [email protected]
pager [email protected]
host_notifications_enabled 1
retain_status_information 1
service_notifications_enabled 1
use generic-contact
}