sync missed status

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jlarocque
Posts: 27
Joined: Tue Aug 31, 2010 11:46 am

Re: sync missed status

Post by jlarocque »

Still the only way to sync is to change the config name

Trying to attached the file but it says extension cfg is not allowed so changed to doc extension and says doc is not allowed
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: sync missed status

Post by mguthrie »

Try zipping it. It may only allow zip files and images. If not go ahead and email it to me. (Use the email associated with my username).
jlarocque
Posts: 27
Joined: Tue Aug 31, 2010 11:46 am

Re: sync missed status

Post by jlarocque »

In the cfg file service name oraredo5vg is the one that says sync missed

zip did it
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: sync missed status

Post by mguthrie »

I'm working on tracking down a bug that may or may not be related to the issue you're having. Can I have you try something and see what the results are?

Use some of the service names that are refusing to sync up. Try applying configuration. If nothing changes try these steps:

Use the Write Config Tool to write out all config files
Verify the new config from that page.

From the command line, type:
killall nagios
service nagios start

Check to see if the services are visible, and if they're showing as synced.
jlarocque
Posts: 27
Joined: Tue Aug 31, 2010 11:46 am

Re: sync missed status

Post by jlarocque »

Followed your directions but still sync missed. But one thing is different

I had to create config name nitccondb01_server for the ones that would not sync when they were in config name nitccondb01_servers
I changed them back to nitccondb01_servers which mean all of nitccondb01_server services should be gone but when I did a verify I got dup errors

Warning: Duplicate definition found for service 'oraredo5vg available space' on host 'chicondb1' (config file '/usr/local/nagios/etc/services/chicondb1_server.cfg', starting on line 35)
Warning: Duplicate definition found for service 'oraredo2vg available space' on host 'chicondb1' (config file '/usr/local/nagios/etc/services/chicondb1_server.cfg', starting on line 14)

I moved oraredo5vg and oraredo2vg back to chicondb1_server and ran verify and only oraredo5vg was fixed

Warning: Duplicate definition found for service 'oraredo2vg available space' on host 'chicondb1' (config file '/usr/local/nagios/etc/services/chicondb1_server.cfg', starting on line 14)

I had three services that I put into chicondb1_server because they would not sync when in chicondb1_servers so I just moved back the last one "oraredo4vg and did a verify after appling and now oraredo5vg dup is back

Warning: Duplicate definition found for service 'oraredo5vg available space' on host 'chicondb1' (config file '/usr/local/nagios/etc/services/chicondb1_server.cfg', starting on line 35)
Warning: Duplicate definition found for service 'oraredo2vg available space' on host 'chicondb1' (config file '/usr/local/nagios/etc/services/chicondb1_server.cfg', starting on line 14)
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: sync missed status

Post by mguthrie »

Is this server referenced as a parent by other hosts? Or as a group member of a hostgroup?

It's possible that if the name gets changed, but there's still a reference to that old hostname somewhere, NagiosQL will write a "dummy" config as a pointer in the DB, so that it will have a valid relation. This is a newer quirk that we've been trying to nail down recently, so we haven't figured out all of the ins and outs of it yet.
jlarocque
Posts: 27
Joined: Tue Aug 31, 2010 11:46 am

Re: sync missed status

Post by jlarocque »

Sorry I didn't get back to you yesterday

The Servers that are having the Dups are members of only one hostgroup

Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Linux 2.6.18-194.17.4.el5xen #1 SMP Wed Oct 20 13:21:25 EDT 2010 i686 i686 i386 GNU/Linux
32bit
Manual Install of XI
Gnome is installed but was installed
jlarocque
Posts: 27
Joined: Tue Aug 31, 2010 11:46 am

Re: sync missed status

Post by jlarocque »

Looks like when I do an apply config for a services change the /usr/local/nagios/etc/services/XXXXX.cfg is not being updated sometimes.

I first created config_name "cerner_prods" and everything went sync missed except one when I apply it.

Then I changed the config_name for the 8 to "cerner_prod" and they all synced without any issues.

But I get dups on the 8 and I checked in /usr/local/nagios/etc/services/cerner_prods.cfg and the 8 I changed to "cerner_prod" are still there. There is also cerner_prod.cfg file with the 8 that is why the dups

I can remove them from cerner_prods.cfg but anytime I apply from nagios xi it just will be overlayed
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: sync missed status

Post by mguthrie »

I did a remote session with a user last week where the config file was there, but it had no data in it at all (0 bytes), is that what you're seeing here?
jlarocque
Posts: 27
Joined: Tue Aug 31, 2010 11:46 am

Re: sync missed status

Post by jlarocque »

No
There is a cfg file called chicondb1_server.cfg in /usr/local/nagios/etc/services that should not be there

I moved everything that was in chicondb1_server.cfg to chicondb1_servers without any problem but the file will not go away

That is why the dups. You cannot see chicondb1_server anymore in nagios XI but it is still out in the directory

I have another one that I removed 8 of the services out of and only one service should be left in it but the cfg file still has the 8 and nagios XI show only one
Locked