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
Nagios XI - ICMP and Ping Checks Stopped Graphing
Viewed 17632 times since Mon, Jan 25, 2016
Nagios XI - Installing XI Fails To Install Dependency pymssql
Viewed 11215 times since Mon, Oct 17, 2016
Nagios XI - How To Test Check Commands From The Command-line
Viewed 57285 times since Tue, Jan 26, 2016
Nagios XI - MySQL/MariaDB - Max Connections
Viewed 80354 times since Thu, Jun 2, 2016
Nagios XI - STRICT_TRANS_TABLES
Viewed 11683 times since Thu, Nov 16, 2017
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 10798 times since Thu, Feb 25, 2016
Nagios XI - How To Delete A Data Source From An RRD File
Viewed 17237 times since Wed, Apr 27, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 8231 times since Thu, Feb 25, 2016
Nagios XI - Modifying The Contents Of /usr/local/nagios/etc
Viewed 10428 times since Tue, Jan 26, 2016
Nagios XI - Optimizing The PHP Settings File
Viewed 73527 times since Thu, Jul 13, 2017