When you try to apply configuration, you see an error, similar to this one:
Warning: Duplicate definition found for contact 'xi_default_contact'
(config file '/usr/local/nagios/etc/contacts.cfg', starting on line 79)
Error: Could not add object property in file '/usr/local/nagios/etc/contacts.cfg' on line 80.
Error processing object config files!
This usually happens if you import the "static" directory config files in Nagios XI.
You can resolve this by running the following command and then applying configuration:
curl -s http://assets.nagios.com/downloads/nagiosxi/scripts/fix_static_import| mysql -pnagiosxi nagiosql
For any support related questions please visit the Nagios Support Forums at:
Article ID: 162
Created On: Tue, Jan 26, 2016 at 1:08 AM
Last Updated On: Mon, Feb 22, 2016 at 7:32 PM
Authored by: tlea
Online URL: https://support.nagios.com/kb/article/nagios-xi-warning-duplicate-definition-found-for-contact-xi_default_contact-162.html