Page 1 of 3

contact.cfg not updating

Posted: Wed May 13, 2015 7:51 am
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

Re: contact.cfg not updating

Posted: Wed May 13, 2015 8:09 am
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

Re: contact.cfg not updating

Posted: Wed May 13, 2015 8:59 am
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.

Re: contact.cfg not updating

Posted: Wed May 13, 2015 9:06 am
by btemple
I will give it a shot thanks

Re: contact.cfg not updating

Posted: Wed May 13, 2015 9:12 am
by lmiltchev
Sure. Let us know if you run into some issues.

Re: contact.cfg not updating

Posted: Wed May 13, 2015 9:40 am
by btemple
ran the scripts but the contacts.cfg is still not updating

Re: contact.cfg not updating

Posted: Wed May 13, 2015 9:58 am
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 ?

Re: contact.cfg not updating

Posted: Wed May 13, 2015 10:12 am
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

Re: contact.cfg not updating

Posted: Wed May 13, 2015 10:27 am
by btemple
please see attached

Re: contact.cfg not updating

Posted: Wed May 13, 2015 10:30 am
by btemple
looks like that cracked the case .... contacts.cfg etc just updated !