contact.cfg not updating

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: contact.cfg not updating

Post by jdalrymple »

Can you tell if it's rewriting the file?

Code: Select all

ll /usr/local/nagios/etc
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
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: contact.cfg not updating

Post 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.
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

CentOS release 6.6 (Final)
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: contact.cfg not updating

Post by btemple »

So that did not error ,
but the contact.cfg did not actually update with contact user I added
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: contact.cfg not updating

Post 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
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 »

Here you go.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: contact.cfg not updating

Post 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.
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 »

posted but it looks like same result
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: contact.cfg not updating

Post 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/
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked