Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brucej543
Posts: 134
Joined: Thu Jun 21, 2018 9:33 am

Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by brucej543 »

Performing upgrade from 5.6.3 to 5.6.4 and the get error listed below
"Reading configuration data...
Read main config file okay...
Error: Contact 'xi_default_contact' is not defined anywhere!
Error: Could not add contact 'xi_default_contact' to host (config file '/usr/local/nagios/etc/hosts/bcpampdb01.cfg', starting on line 16)
Error processing object config files!"
Found on the contacts page that xi_default_contact was set to inactive. How do i correct this?

Moderator's Note: Profile removed from the public forum.
brucej543
Posts: 134
Joined: Thu Jun 21, 2018 9:33 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by brucej543 »

In checking the host and service cfg files. I found only host and its services file has the xi_default_contact defined for the contacts
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by lmiltchev »

Go to the CCM > Hosts > bcpampdb01 > Alert Settings > Manage Contacts, and remove the xi_default_contact from the host. Also, remove the contact from each service on that host (CCM > Services). Save and run the Config File Management tool (Write Configs > Verify Files). If there are no config errors, apply configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by tgriep »

If you reactivate the contact in the XI Core Config Manager > Contacts menu, does that fix the issue?
If not, try this procedure to fix ant configuration issues.

Login to the XI GUI and go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click the click the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button after ALL of the errors are resolved.


Was there any other users logged in to the system and editing checks while the upgrade was performed?
Be sure to check out our Knowledgebase for helpful articles and solutions!
brucej543
Posts: 134
Joined: Thu Jun 21, 2018 9:33 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by brucej543 »

See warning and errors below: output from Very Files

Warning: Duplicate definition found for contact 'xi_default_contact' (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 322)
Error: Could not add object property in file '/usr/local/nagios/etc/contacts.cfg' on line 323.
Error: Service notification period 'admin3-oncall-Andy' specified for contact 'axc56815' is not defined anywhere!
Error: Could not register contact (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 16)
Error processing object config files!
brucej543
Posts: 134
Joined: Thu Jun 21, 2018 9:33 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by brucej543 »

I checked the contacts and deactivated the xi_default_contact and reran the Write configs . Verify Files and no warnings or errors.
After I run the Apply Configuration, do I need to rerun the update? The Check for updates screen show that it is already at 5.6.4
brucej543
Posts: 134
Joined: Thu Jun 21, 2018 9:33 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by brucej543 »

Apply Configuration was successful.
Should I remove the xi_default_contact from the Contacts?
brucej543
Posts: 134
Joined: Thu Jun 21, 2018 9:33 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by brucej543 »

to answer the question about user on while the update was running, No I was the only person logged in at the time, but I did not check the user sessions screen to verify.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact

Post by tgriep »

As long as the version number in the GUI says 5.6.4, you should not have to run the upgrade again but you can to be sure it was done if you like.

The xi_default_contact is part of the static configuration files in the /usr/local/nagios/etc/static/xiobjects.cfg file so the one in the Core Config Manager > Contacts menu can be removed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked