Page 1 of 1

Service Checks not getting updated with new changes

Posted: Tue Aug 15, 2017 2:58 pm
by Sampath.Basireddy
Hello There,

Need help with Service Checks.

I am trying to update few recently created service checks, which does not appears to be updating in the backend.

Each time I update a service check in CCM, it looks updated, but when I check the service check status, they still are running with old config.

Here is an example.

Below is the argument condition for Oracle DB Monitoring from CCM:

Code: Select all

--connect '<Host Name>:2901/<SID>' --username '<UID>' --password '<PWD>' --mode connected-users --warning 1 --critical 4
Below is what I find when I try to Re-configure Service from Service Status:

Code: Select all

check_xi_oracleserverspace!--connect '<Host Name>:2901/<SID>' --username '<UID>' --password '<PWD>' --mode connected-users --warning 450 --critical 500

Initial thresholds for this service check was warning-450 and critical-500 which I changed to warning-1 and critical-4. Currently there are 5 users connected to that DB, which means the Service check should be in critical state as per the latest config. But for some weird reason, in the front-end service check status is OK and somehow it is still running with old threshold values.

Any help is greatly appreciated.

Thanks.

Re: Service Checks not getting updated with new changes

Posted: Tue Aug 15, 2017 3:44 pm
by cdienger
What version of XI is this?

It's necessary to apply the configuration after making changes and just clicking save will not apply them. Make sure this is done and if you're still having issues, go to Configure > CCM > Tools > Config File Management and click:

1. Delete Files
2. Write Configs
3. Verify Files
4. Restart Nagios Core

Provide any errors that this may produce.

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 10:05 am
by Sampath.Basireddy
Yes, of course configuration was applied.


Before I delete the files, I just want to check what those files are and would selecting "write files" rewrite all those files back?

Just checking as I have never done this in the past.

Thank You,

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 10:43 am
by cdienger
Deleting the files removes them from /usr/local/nagios/etc/ and the write button reads the current config from the database and writes them back.

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 10:45 am
by scottwilkerson
Sampath.Basireddy wrote:Before I delete the files, I just want to check what those files are and would selecting "write files" rewrite all those files back?
That is correct.

Actually, it will delete all the files in the hosts/services directories and write all that are supposed to be there.

This can fix some issues if a file was supposed to get deleted in the past, but somehow was not.

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 11:52 am
by Sampath.Basireddy
Thank You scottwilkerson & cdienger.

No luck even after trying the suggested steps.

I am attaching the screenshots for reference.

And also I have observed another strange thing. I activated 2 service checks which were deactivated sometime back and when I checked the status of those, only one service check is being activated as per the status host. Attaching the screenshot of those too for reference.

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 1:00 pm
by scottwilkerson
I'm beginning to wonder if you have a second nagios parent process running.

Can you run the following from the command line and post the results

Code: Select all

ps-ef|grep bin/nagios

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 2:05 pm
by Sampath.Basireddy
Here is the output:

Code: Select all

UID@<SRV_NAME>:[~]: ps -ef|grep bin/nagios
nagios   10997     1  3 13:46 ?        00:02:56 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   10999 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11000 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11001 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11002 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11003 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11004 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11005 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11006 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11007 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11009 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11010 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11011 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   11114 10997  0 13:46 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
sbasire+ 18996 18634  0 15:00 pts/0    00:00:00 grep --color=auto bin/nagios
UID@<SRV_NAME>:[~]:

Re: Service Checks not getting updated with new changes

Posted: Wed Aug 16, 2017 3:05 pm
by scottwilkerson
This all looks correct.

I think the best move forward is to have you grab a system profile from Admin -> System Profile and create a ticket by emailing it to
[email protected]

In the email please provide a reference to this thread as well as the name of the host/services that were deactivated that "re-appeared" and the host/service that are missing in the UI.

Thanks