Page 1 of 2

delete service

Posted: Wed Aug 20, 2014 4:03 am
by hanya.radwan
hi,

I deleted two service from nagios core, I mean services , but these services still appear on Nagios XI.so how can I disappear them from Nagios XI

thanks,

Re: delete service

Posted: Wed Aug 20, 2014 6:52 am
by matt.lilek
sounds like a case of reverse ghosts

Re: delete service

Posted: Wed Aug 20, 2014 7:11 am
by hanya.radwan
nagiosxi.png
it is really Ok

Re: delete service

Posted: Wed Aug 20, 2014 9:26 am
by slansing
What do you mean by "it is really Ok"?

http://support.nagios.com/wiki/index.ph ... t_Hosts.29

Re: delete service

Posted: Wed Sep 03, 2014 12:59 am
by hanya.radwan
I tried the the following but the services still appear:
killall nagios
service nagios start

Re: delete service

Posted: Wed Sep 03, 2014 9:16 am
by slansing
Killing a nagios process will not solve that, you need to read through what I gave you in the previous post and follow the instructions.

Re: delete service

Posted: Wed Sep 03, 2014 9:18 am
by tmcdonald
You said you deleted them from Core. Do you mean you deleted the .cfg files or you deleted the services from the Core Config Manager? You will need to remove them from the Core Config Manager and click Apply Configuration for the changes to take effect.

What Nagios XI version is this?

Re: delete service

Posted: Thu Sep 04, 2014 3:55 am
by hanya.radwan
I have nagios R20141.0

I deleted them from Nagios config manager and apply changes after that

Re: delete service

Posted: Thu Sep 04, 2014 10:57 am
by lmiltchev
Can you find these services now in the CCM? What are the config timestamps? Can you find them in the CLI?

Code: Select all

ll -t /usr/local/nagios/etc/hosts | grep -i antispamdb
ll -t /usr/local/nagios/etc/services | grep -i antispamdb

Re: delete service

Posted: Sun Sep 07, 2014 2:04 am
by hanya.radwan
the following is the command result:
[root@nms ~]# ll -t /usr/local/nagios/etc/hosts | grep -i antispamdb
-rw-rw-r-- 1 apache nagios 956 Sep 3 14:01 AntiSpamDB.cfg
-rw-rw-r-- 1 apache nagios 923 Sep 3 14:01 AntiSpamDB2.cfg
-rw-rw-r-- 1 apache nagios 923 Sep 3 14:01 AntiSpamDB1.cfg
[root@nms ~]# ll -t /usr/local/nagios/etc/services | grep -i antispamdb
-rw-rw-r-- 1 apache nagios 1040 Sep 3 14:01 AntispamDB.cfg
-rw-rw-r-- 1 apache nagios 4772 Sep 3 14:01 AntiSpamDB2.cfg
-rw-rw-r-- 1 apache nagios 1082 Sep 3 14:01 AntiSpamDB1.cfg

but this service "SQL Server" not exits