Problem Description
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.
Resolving The Problem
You can resolve this by running the following command and then applying configuration:
Type:
curl -s http://assets.nagios.com/downloads/nagiosxi/scripts/fix_static_import| mysql -pnagiosxi nagiosql
Final Thoughts
For any support related questions please visit the Nagios Support Forums at: