NagiosXI CCM Hosts & Services - Sync Missed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Satyam
Posts: 63
Joined: Mon Oct 24, 2011 8:14 am

NagiosXI CCM Hosts & Services - Sync Missed

Post by Satyam »

Dear Support,

I have a problem since the beginning on this in NagiosXI version 2011R1.7, actually whenever I am doing any config changes I have to do from command line and then I upload the updated files to CCM via UI but when ever I am Applying configuration Changes using UI, its failing in the config verification itself and not able to restart Nagios, so we are following the practice of doing config changes from cmdline, uploading the updated files into CCM through UI and then restarting the Nagios from cmdline. But always I am seeing in CCM error like "Sync Missed". Need your help to understand and fix this issue permanently in case it can be done. Is that any known bug ?? just a check..
Thanks,
Sattanathan.S
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI CCM Hosts & Services - Sync Missed

Post by scottwilkerson »

You should try to run through the write config files under Configure -> CCM -> Tools -> Write Config Files
Run each command from top down waiting for each to complete, and stopping if you see any errors , report any errors back here.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Satyam
Posts: 63
Joined: Mon Oct 24, 2011 8:14 am

Re: NagiosXI CCM Hosts & Services - Sync Missed

Post by Satyam »

Hi Scott,

I have done as you suggested, everything passed well but when i have pressed restart Nagios, it displayed that restart command sent to Nagios successfully but Nagios didn't get restarted so finally we started again from cmdline only. Or will it take more time to reflect that it has restarted (we have waited for approx. 5 minutes.). Please suggest why Nagios is not able to take restart command from UI.
Thanks,
Sattanathan.S
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI CCM Hosts & Services - Sync Missed

Post by mguthrie »

I"m a bit confused by what you're saying. In your first post you said the config verification is failing and that Nagios won't restart, but then in the second post you said that everything passed in the Write Config Tool stages. The Write Config Tool runs the same verification as the command-line. Are you getting a configuration error? If so, can you post the error that it's returning?

Also, the import tool is primarily intended only to add new configs. It is not recommend for use with general configuration changes.
Satyam
Posts: 63
Joined: Mon Oct 24, 2011 8:14 am

Re: NagiosXI CCM Hosts & Services - Sync Missed

Post by Satyam »

Hi MG,

The main problem behind this which I have understood is that we have seggregated the config files into different sub-directories like for networks it's in etc/hosts/networks , also further sub directories depending on the network location, similarly for servers its in etc/hosts/servers and the same has been edited in nagios.cfg, So actually when we are restarting from UI, it was writing all files to the default location at etc/hosts & etc/services instead of writing in particular sub-directories obviously. So it was throughing errors for duplicate definitions in UI. But once we removed these duplicate files from system in etc/hosts & etc/services, UI was not showng error and the restart command for nagios got successfully submitted but atlast nagios didn't restart may be command didn't get submitted to nagios.cmd or whatever, we waited for few minutes and then restarted manually.

So but in UI, its always showing sysnc missed beacuse of these sub-directories arrangement in Nagios filesystem, Is there any way we can work and fix it and what can be the impact of this sync missed on nagios??
Thanks,
Sattanathan.S
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI CCM Hosts & Services - Sync Missed

Post by scottwilkerson »

XI EXPECTS the configs in the CCM to be in the hosts/services folder.

The ONLY place you should put items that you want to manage yourself is in the static directory.

So, it is showing sync missed because the files aren't where the CCM expects them to be.

If you apply configuration, the CCM is going to re-write all of the files in the hosts & services directory giving you duplicates.

I would recommend not making changes like you described unless you are aware of the ramifications....
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked