Host/Service Notifications sent even after deleting host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Host/Service Notifications sent even after deleting host

Post by sujitt »

We are receiving host notifications even after deleting hosts configuration.

Thanks

Sujith
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Host/Service Notifications sent even after deleting hos

Post by rkennedy »

Did you apply configuration after deleting the host from the Core Config Manager?
Former Nagios Employee
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: Host/Service Notifications sent even after deleting hos

Post by sujitt »

Yes, multiple times.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Host/Service Notifications sent even after deleting hos

Post 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
Former Nagios Employee
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: Host/Service Notifications sent even after deleting hos

Post by sujitt »

Do we not loose any config by doing a delete ?. A little worried.
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: Host/Service Notifications sent even after deleting hos

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Host/Service Notifications sent even after deleting hos

Post 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?
Former Nagios Employee
Locked