Nagios XI 2012R2.9
RHEL 6.5 x64
Manual Install
Offloaded DB
I had defined a servicegroup. Later I changed the members.
Of course applied the changes.
Thing were not working right. When I checked the objects.cache file it still has the old definitions.
Tried removing all the service groups and importing again. Still same.
Deleted the cache file. The new file still have the old definition.
Some services not defined before is also showing up in the cache under this servicegroup.
Looks like a data corruption issue to me.
How do I solve this problem?
Inconsistent objects.cache file
Inconsistent objects.cache file
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Inconsistent objects.cache file
The problem was due to orphaned files left over in the etc/services directory.
Once it is deleted and manually edited everything was in order.
I can replicate this problem
Create a service Service_ABC assigned to 2 hosts, Host A and Host B.
Apply
Create Service Group SG_ABC
Add Service_ABC to it.
Apply
How edit service ABC and call it Host_A_Service_ABC and remove Host B from it.
Duplicate Host_A_Service_ABC and rename it as Host_B_Service_ABC. Remove Host A and assign Host B.
Rename service group SG_ABC to SG_ABC_A
Remove existing services and assign Host_A_Service_ABC to it
Duplicate SG_ABC_A and rename it to SG_ABC_B
Remove existing services and assign Host_B_Service_ABC to it.
Apply.
Now enjoy all the configuration errors, missing this and that etc.
Only manual disabling of related service groups and restarting. Then enable back the service groups will solve this problem
Once it is deleted and manually edited everything was in order.
I can replicate this problem
Create a service Service_ABC assigned to 2 hosts, Host A and Host B.
Apply
Create Service Group SG_ABC
Add Service_ABC to it.
Apply
How edit service ABC and call it Host_A_Service_ABC and remove Host B from it.
Duplicate Host_A_Service_ABC and rename it as Host_B_Service_ABC. Remove Host A and assign Host B.
Rename service group SG_ABC to SG_ABC_A
Remove existing services and assign Host_A_Service_ABC to it
Duplicate SG_ABC_A and rename it to SG_ABC_B
Remove existing services and assign Host_B_Service_ABC to it.
Apply.
Now enjoy all the configuration errors, missing this and that etc.
Only manual disabling of related service groups and restarting. Then enable back the service groups will solve this problem
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Inconsistent objects.cache file
This appears to have been fixed in 2014 as I was unable to reproduce the issue.
At this step:
I continued to the end of your steps and things are working okay.
At this step:
the Host_A_Service_ABC service was already assigned to it, nothing else.Rename service group SG_ABC to SG_ABC_A
Remove existing services and assign Host_A_Service_ABC to it
I continued to the end of your steps and things are working okay.
Former Nagios employee
Re: Inconsistent objects.cache file
Ok. I will test it out soon on the latest version.tmcdonald wrote:This appears to have been fixed in 2014 as I was unable to reproduce the issue.
At this step:
the Host_A_Service_ABC service was already assigned to it, nothing else.Rename service group SG_ABC to SG_ABC_A
Remove existing services and assign Host_A_Service_ABC to it
I continued to the end of your steps and things are working okay.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Inconsistent objects.cache file
Sure. Let us know if you experience the same issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!