contacts.cfg had duplicate entries

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tsoftware
Posts: 1
Joined: Tue Jul 20, 2010 6:18 pm

contacts.cfg had duplicate entries

Post by tsoftware »

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
}
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: contacts.cfg had duplicate entries

Post by mmestnik »

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.
Locked