Page 1 of 1

Database changes seem not to occur?

Posted: Wed Dec 05, 2012 2:40 pm
by hudbaylicensing
We haven't had to add/remove any hosts/services in a couple of months - this week I have been trying to remove a set of services the host associated with it and add another host with services.

When I deleted the services for one host, then deleted the services via the CCM, applied the configuration and received no errors but the host and services still show up in some host groups I created. When I search for the host/services in CCM it says that they cannot be found.

Alternately, today I added a host and service via the Monitoring Wizard and it added then with no problems or errors, but it does not show up anywhere, not in the hostgroup it was added to and if I search via CCM it also does not find it.

Not sure what to do next.

Thanks,
Marc

Re: Database changes seem not to occur?

Posted: Wed Dec 05, 2012 3:54 pm
by slansing
Hey there,

Can you switch over to your Nagios terminal and check the following directory for the services?

Code: Select all

ll /usr/local/nagios/etc/services
If they are still hanging in that director run a rm -rf on them and then verify the nagios configs.

Re: Database changes seem not to occur?

Posted: Wed Dec 05, 2012 5:25 pm
by hudbaylicensing
Hi Thanks for the reply.

It did indeed have a cfg file for that host, I removed it and ran the verify on the nagios.cfg file and it came back with 0 errors.

The host/services are now not showing and it is allowing me to add new host/services.

Thanks!

Re: Database changes seem not to occur?

Posted: Wed Dec 05, 2012 5:48 pm
by slansing
Excellent, thanks for letting us know this solved the issue!