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 - WMI Authentication Problems
Viewed 7614 times since Thu, Feb 25, 2016
Nagios XI - Display All Scheduled Reports
Viewed 7002 times since Wed, Oct 12, 2016
Backups are not being generated due to tar creation errors
Viewed 5805 times since Thu, Feb 27, 2020
Slack Notifications Stopped Working
Viewed 6602 times since Wed, Mar 18, 2020
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 7911 times since Thu, Feb 25, 2016
Nagios XI - Missing localhost Alerts
Viewed 8425 times since Sun, Nov 5, 2017
Disabling Outdated Versions of SSL/TLS
Viewed 10839 times since Thu, Aug 6, 2020
Nagios XI - MySQL/MariaDB - Max Connections
Viewed 79489 times since Thu, Jun 2, 2016
Nagios XI - Unable To Login Using Two Factor Authentication
Viewed 11840 times since Tue, Apr 10, 2018
Nagios XI - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 7029 times since Tue, Jan 26, 2016