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 jdoe@somedoamain.com
pager jdoe-page@somedoamain.com
host_notifications_enabled 1
retain_status_information 1
service_notifications_enabled 1
use generic-contact
}
contacts.cfg had duplicate entries
Re: contacts.cfg had duplicate entries
You are likely to believe falsely if you attempt to read these files, save your own configs in the static folder. Writing to these files or saving them should prove vary in-effective.
Ignore these files.
For the problem you are reporting I believe that many contacts would have these settings identical. It's a good task for using templates, but that's off topic.
Please clarify the effect that this has and point out any negative aspects.
Ignore these files.
For the problem you are reporting I believe that many contacts would have these settings identical. It's a good task for using templates, but that's off topic.
Please clarify the effect that this has and point out any negative aspects.