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
contact.cfg not updating
contact.cfg not updating
You do not have the required permissions to view the files attached to this post.
Re: contact.cfg not updating
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
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
Did you change the OS version/architecture? If you did, you will need to perform these steps.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 ?
Re: contact.cfg not updating
I will give it a shot thanks
Re: contact.cfg not updating
Sure. Let us know if you run into some issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: contact.cfg not updating
ran the scripts but the contacts.cfg is still not updating
Re: contact.cfg not updating
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
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.shBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: contact.cfg not updating
please see attached
You do not have the required permissions to view the files attached to this post.
Re: contact.cfg not updating
looks like that cracked the case .... contacts.cfg etc just updated !