THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Products » Nagios XI » Troubleshooting » Common Problems

Nagios XI - Warning: Duplicate definition found for contact ’xi_default_contact’

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:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

1 (6)
Article Rating (6 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
SSL Certificate does not validate properly
Viewed 7054 times since Wed, Jan 20, 2021
Nagios XI - Performance Graph Problems
Viewed 31846 times since Fri, Dec 19, 2014
Nagios XI - Issues with mod_gearman and Performance Data Newlines: "\n"
Viewed 5318 times since Tue, Feb 2, 2016
Nagios XI - Best Practices - NWC15
Viewed 10141 times since Thu, Feb 4, 2016
Nagios XI - Scheduled Reports Not Running
Viewed 7186 times since Thu, Aug 10, 2017
Nagios XI - Can’t Log Into The Web Interface
Viewed 67979 times since Tue, Jan 27, 2015
Nagios XI - Upgrade errors - root.crontab.orig: cannot overwrite existing file
Viewed 5889 times since Tue, Jan 26, 2016
Nagios XI - 2014 Upgrade Issue - CONFIG ERROR
Viewed 7264 times since Mon, Jan 25, 2016
Nagios XI - Apply Configuration Fails - Backend login to the Core Configuration failed
Viewed 28031 times since Tue, Aug 2, 2016
Nagios XI - SQL Error [nagiosxi] : ERROR: syntax error
Viewed 9915 times since Sun, Sep 10, 2017