Page 2 of 3
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 9:10 am
by pvmadmin
I just tried applying the configuration again after making changes and still received the error. However it does appear that it is writing information. See attached screenshot.
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 10:02 am
by tmcdonald
Do the delete then write manually, then send over the /usr/local/nagios/etc/hostgroups.cfg file either directly attached or in a PM.
Edit: File received and placed in shared drive.
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 10:43 am
by tmcdonald
- Do you have any static config files in the /usr/local/nagios/etc/static directory?
- Can you grep for that hostname?
Code: Select all
grep -R "PVM Security DVR" /usr/local/nagios/etc/
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 11:00 am
by pvmadmin
See below.
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 11:02 am
by pvmadmin
In the static directory I have:
xiobjects.cfg
xitemplates.cfg
xitest.cfg
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 11:20 am
by scottwilkerson
Actually, We need to write the files before we do that grep because the system is rolling back to the last known good configuration
Lets go to Configure -> Core Config Manager -> Tools -> Write Config Files
Click the Delete Button
Then Write
Then from the console run
Code: Select all
grep -R "PVM Security DVR" /usr/local/nagios/etc/
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 11:26 am
by pvmadmin
I believe that's the state I was already in. But I did the delete and the write anyway and then ran the command. The results were exactly the same as the last screenshot.
Thanks,
Aaron
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 2:21 pm
by scottwilkerson
email sent requesting remote session
Re: 2014r2.1 Upgrade Config Problem
Posted: Tue Dec 23, 2014 5:11 pm
by psanchez
I'm seeing similar issues when hitting 'Apply configuration' in CCM after upgrading to 2014r2.1
Complains about contacts missing an option, when I have deleted that contact already.
Complains about service escalation host name or description is NULL, but i'm not using a single hostname, i'm using a hostgroup....this has not change and its been working find before.
I have done a simple test, I have restore from backup and it restores fine, XI is up and running.
But when I just open CCM and hit the 'Apply Configuration' button it fails and I start getting all these errors.
Seems that the files and DB are not the same, I have tried to 'Write files' tools, but it still fails.
But if i do it from command line I have no issues
cd /usr/local/nagiosxi/scripts/ && ./reconfigure_nagios.sh
Re: 2014r2.1 Upgrade Config Problem
Posted: Fri Dec 26, 2014 10:18 am
by scottwilkerson
To be clear, have you done the following?
Lets go to Configure -> Core Config Manager -> Tools -> Write Config Files
Click the Delete Button
Then Write
Then Verify
If all this looks good click Restart