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 (5)
Article Rating (5 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 - How To Test Check Commands From The Command-line
Viewed 53541 times since Tue, Jan 26, 2016
Nagios XI - Profile Build Failed
Viewed 15111 times since Tue, Aug 2, 2016
Nagios XI - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 6169 times since Tue, Jan 26, 2016
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 9426 times since Thu, Feb 25, 2016
Nagios XI - Host Still Visible After Deletion (Ghost Hosts)
Viewed 13684 times since Tue, Jan 27, 2015
Nagios Core - Nagios did not exit in a timely manner
Viewed 10440 times since Wed, Jan 27, 2016
Nagios XI - ICMP and Ping Checks Stopped Graphing
Viewed 15540 times since Mon, Jan 25, 2016
Upgrading to NDO 3 after having been downgraded in newer versions of Nagios XI
Viewed 5183 times since Fri, Jan 15, 2021
Nagios XI - HTTP 500 Error / White Screen After Login
Viewed 7966 times since Mon, Feb 29, 2016
Nagios XI - Scheduled Backups No Longer Working
Viewed 9579 times since Fri, Jun 3, 2016