2014r2.1 Upgrade Config Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: 2014r2.1 Upgrade Config Problem

Post 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.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 2014r2.1 Upgrade Config Problem

Post 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.
Former Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 2014r2.1 Upgrade Config Problem

Post 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/
Former Nagios employee
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: 2014r2.1 Upgrade Config Problem

Post by pvmadmin »

See below.
You do not have the required permissions to view the files attached to this post.
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: 2014r2.1 Upgrade Config Problem

Post by pvmadmin »

In the static directory I have:

xiobjects.cfg
xitemplates.cfg
xitest.cfg
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2014r2.1 Upgrade Config Problem

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
pvmadmin
Posts: 39
Joined: Thu May 06, 2010 9:36 pm

Re: 2014r2.1 Upgrade Config Problem

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2014r2.1 Upgrade Config Problem

Post by scottwilkerson »

email sent requesting remote session
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
psanchez
Posts: 23
Joined: Wed Oct 17, 2012 12:14 pm

Re: 2014r2.1 Upgrade Config Problem

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2014r2.1 Upgrade Config Problem

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked