contact.cfg not updating

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

contact.cfg not updating

Post by btemple »

We migrated and restored to a new server approximately one month ago. I need to add a new contact which I did and saved the config in the GUI but the contact.cfg never updated. I assume I have a permissions issue but I cannot see anything obvious at this time. The contact Date: stamp is the date we migrated ( see attached )

We are running
Nagios XI 2014R2.7
You do not have the required permissions to view the files attached to this post.
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

I looked through the backup / restore doc and see that these steps where not performed ( I looked through history ). Could this cause the issue ? If so would it hurt to run these steps now ?


Things to ConsiderIf you are restoring a backup from a different OS version or architecture this can be a problem because the backup is overwriting the compiled binaries.
A work around follows:If you still have the /tmp/nagiosxi install directory do the following:
cd /tmp/nagiosxi
rm -f installed.subcomponents
./A-subcomponents
./build-perms-bin

If you have already deleted the /tmp/nagiosxi install directory
do the following:
cd /tmp
wget http://assets.nagios.com/downloads/nagi ... .tar.gztar xzf xi-2011-latest.tar.gz
cd /tmp/nagiosxi
touch installed.mrtg
./A-subcomponents
./build-perms-bin
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: contact.cfg not updating

Post by lmiltchev »

I looked through the backup / restore doc and see that these steps where not performed ( I looked through history ). Could this cause the issue ? If so would it hurt to run these steps now ?
Did you change the OS version/architecture? If you did, you will need to perform these steps.
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

I will give it a shot thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: contact.cfg not updating

Post by lmiltchev »

Sure. Let us know if you run into some issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

ran the scripts but the contacts.cfg is still not updating
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

commands.cfg doesn't update either. When you apply config there are no errors but it looks like nothing is actually changing on the backend ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: contact.cfg not updating

Post by lmiltchev »

Run "reconfigure_nagios.sh" as the nagios user and show us the output:

Code: Select all

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Be sure to check out our Knowledgebase for helpful articles and solutions!
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

please see attached
You do not have the required permissions to view the files attached to this post.
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

looks like that cracked the case .... contacts.cfg etc just updated !
Locked