Nagios Hostgroup lost half of it's devices?
Posted: Mon Dec 10, 2012 11:47 am
Perplexing issues.
1.I had a hostgroup that contained 514 objects. Suddenly it contained 129 objects. I can verify that nobody made any changes to the system. I do know the time period in which the issue must have happened.
I have done the following:
Gotten a list of the 514 objects, re added them to the hostgroup.cfg via command line and did a
the objects then showed up in the hg, but then I did an "apply config", and the numbers dropped again.
So I tried again this time doing a database repair 1st. This time a whole bunch of objects I'd deleted came back in ccm as "unsync'd objects", and the issue persisted.
I then deleted the host group, and repeated the db repair and adding the objects via the command line. This time I only got 124 objects BEFORE apply config.
so I recreated the hostgroup file and tried to import it in ccm\tools \import.
nothing no import.
2. While trying to fix this, I noticed than in the legacy ccm, if I looked at a hosts properties, The host would show up as no being a member of the HG. When I looked at the same host in the new CCM, it was listed as a member of the hostgroup this was the case for about sixty of my hosts.
My concern is that even if I manually readded all 514 hosts, I don't know how the problem happed in the 1st place and if it will happen any other hg's.
1.I had a hostgroup that contained 514 objects. Suddenly it contained 129 objects. I can verify that nobody made any changes to the system. I do know the time period in which the issue must have happened.
I have done the following:
Gotten a list of the 514 objects, re added them to the hostgroup.cfg via command line and did a
Code: Select all
service nagios restartSo I tried again this time doing a database repair 1st. This time a whole bunch of objects I'd deleted came back in ccm as "unsync'd objects", and the issue persisted.
I then deleted the host group, and repeated the db repair and adding the objects via the command line. This time I only got 124 objects BEFORE apply config.
so I recreated the hostgroup file and tried to import it in ccm\tools \import.
nothing no import.
2. While trying to fix this, I noticed than in the legacy ccm, if I looked at a hosts properties, The host would show up as no being a member of the HG. When I looked at the same host in the new CCM, it was listed as a member of the hostgroup this was the case for about sixty of my hosts.
My concern is that even if I manually readded all 514 hosts, I don't know how the problem happed in the 1st place and if it will happen any other hg's.