Page 1 of 1
Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 7:46 am
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.
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 8:22 am
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
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 11:32 am
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.
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 11:56 am
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?
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 11:59 am
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!
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 12:06 pm
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
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 12:09 pm
by brucej543
Apply Configuration was successful.
Should I remove the xi_default_contact from the Contacts?
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 12:14 pm
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.
Re: Upgrade from 5.6.3 to 5.6.4 Failed xi_default_contact
Posted: Thu Jul 18, 2019 12:39 pm
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.