Page 2 of 3
Re: contact.cfg not updating
Posted: Wed May 13, 2015 10:33 am
by jdalrymple
Can you tell if it's rewriting the file?
will show the mtime.
If it's not getting modified at all can you try the delete/write/verify song and dance from within CCM?
Configure --> Core Configuration Manager --> Tools --> Write Config Files
Re: contact.cfg not updating
Posted: Wed May 13, 2015 10:37 am
by btemple
time stamp change on the contacts.cfg after I ran the requested script...
but when I added a new contact via gui everything looked good but the contacts.cfg did not update.
Re: contact.cfg not updating
Posted: Wed May 13, 2015 10:42 am
by jdalrymple
Hopefully it sticks. We've had some issues recently where apply config wasn't working but this was. Is this per-chance RHEL7 or CentOS7? That has been something of a common thread for this symptom.
Re: contact.cfg not updating
Posted: Wed May 13, 2015 12:03 pm
by btemple
CentOS release 6.6 (Final)
Re: contact.cfg not updating
Posted: Wed May 13, 2015 12:07 pm
by btemple
So that did not error ,
but the contact.cfg did not actually update with contact user I added
Re: contact.cfg not updating
Posted: Wed May 13, 2015 12:28 pm
by tgriep
Run this command in a shell on the Nagios XI server. Edit/add a contact and apply the configuration. Post the output from the tail command here.
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Re: contact.cfg not updating
Posted: Wed May 13, 2015 12:38 pm
by btemple
Here you go.
Re: contact.cfg not updating
Posted: Wed May 13, 2015 1:08 pm
by lmiltchev
This didn't work as expected - let's try again. Run the following command to begin capturing log output:
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txt
Apply Configuration from the web interface. After configuration has applied, press Ctrl+c to stop the log tail, and post the cmd.txt file that was generated by the above instructions in the "/tmp/" directory.
Re: contact.cfg not updating
Posted: Wed May 13, 2015 1:15 pm
by btemple
posted but it looks like same result
Re: contact.cfg not updating
Posted: Wed May 13, 2015 2:00 pm
by lmiltchev
This is very strange... To clarify - you ran:
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txt
then you went to the web UI, and click on the "Apply Configuration" button.
example01.PNG
After you saw it was done
example02.PNG
you stopped the tail by going back to the terminal and pressing "Ctrl+c", and posted the cmd.txt file, correct?
What is the output of the following commands?
Code: Select all
ll -d /usr/local/nagios/var/rw
ll /usr/local/nagios/var/rw
grep nag /etc/group
chage -l nagios
chage -l apache
grep User_Alias /etc/sudoers
ll /etc/sudoers.d/