Page 1 of 1
Host/Service Notifications sent even after deleting host
Posted: Mon Jun 20, 2016 1:13 pm
by sujitt
We are receiving host notifications even after deleting hosts configuration.
Thanks
Sujith
Re: Host/Service Notifications sent even after deleting hos
Posted: Mon Jun 20, 2016 1:20 pm
by rkennedy
Did you apply configuration after deleting the host from the Core Config Manager?
Re: Host/Service Notifications sent even after deleting hos
Posted: Mon Jun 20, 2016 1:31 pm
by sujitt
Yes, multiple times.
Re: Host/Service Notifications sent even after deleting hos
Posted: Mon Jun 20, 2016 1:35 pm
by rkennedy
Got it, let's try a delete / write / verify. Navigate to Configure -> Core Config Manager -> Under 'Tools' look for 'Write Config Files' -> Then run 'Delete all ....', followed by 'Write Configs ....', and finally 'Verify Configuration'. Once this has completed, apply configuration and the issue should be resolved.
If it's not, please post the full output of ps -aef
Re: Host/Service Notifications sent even after deleting hos
Posted: Mon Jun 20, 2016 1:43 pm
by sujitt
Do we not loose any config by doing a delete ?. A little worried.
Re: Host/Service Notifications sent even after deleting hos
Posted: Mon Jun 20, 2016 1:49 pm
by sujitt
I get the following error on verify in red color. but at the end of the report it says everything looks ok. Contradicting.
Error: Could not find a service matching host name 'WMS Gateway' and description 'Memory Usage' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 56)
Total Warnings: 157
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Re: Host/Service Notifications sent even after deleting hos
Posted: Mon Jun 20, 2016 2:01 pm
by rkennedy
sujitt wrote:Do we not loose any config by doing a delete ?. A little worried.
This only deletes your configuration files, everything is still stored in SQL which is where they will rewrite from. You will not lose any data.
Regarding this -
Code: Select all
Error: Could not find a service matching host name 'WMS Gateway' and description 'Memory Usage' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 56)
Was this during a verify, or an apply configuration? If you apply configuration, is it successful?