Page 1 of 2

Unable to delete a service

Posted: Mon Jun 27, 2016 6:38 pm
by Naveed
Hello,

I am new at nagios xi, kindly need your assistance to configure it as per my need.

I am unable to delete a service. Its is in unknown state and generate below alert as I go to delete it from CCM.

Error message is attached.

I have already stop nagios service
killall processes
and start nagios

Need your suggestions to take care this.

Thank you!

Re: Unable to delete a service

Posted: Mon Jun 27, 2016 7:40 pm
by Box293
You need to go into Configure > Core Configuration Manager > Monitoring > Services and delete it in there.

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 3:45 am
by Naveed
Thank you!

I have already tried this, services those are orphaned/unknown state, do not show in CCM==> Monitoring ==> services.

Kindly suggest the way how can I remove these services.

Thank you!

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 9:55 am
by rkennedy
Navigate to Configure -> Core Config Manager -> Click 'Delete All...' followed by 'Write Configs...', and lastly 'Verify Configuration'. Then, run an apply configuration, and the 'ghost' services should be gone.

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 10:02 am
by lmiltchev
Can you show us a screenshot of the "problem" service under the "Service Status" page (Home->Details->Service Detail)? What is the Nagios XI version that you are currently using?

You may have multiple nagios processes running or "ghost" services. Run the following commands and show the output:

Code: Select all

ps -ef | head -1 && ps -ef | grep bin/[n]agios
ls -lat /usr/local/nagios/etc/services | tail -20

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 10:17 am
by Naveed
Thank you rkennedy

I have followed the suggested procedure to remove ghost files,

I list down all services from CCM of a host, but unknown state service is not showing in it.
I also tried to delete it from other way so it showed a message that cant delete this service using this method.

I also checked in .cfg file from nagios but that service did not find there as well. Few days it was running perfectly fine. But due to last night only this service is throwing same error on all same hostgroup nodes.

I have attached screenshots as well.

Thank you!

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 10:26 am
by Naveed
Thank you lmiltchev

Nagios XI 5.2.3


[root@AXmonitor vmn]# ps -ef | head -1 && ps -ef | grep bin/[n]agios
UID PID PPID C STIME TTY TIME CMD
nagios 42558 1 0 08:12 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 42560 42558 0 08:12 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 42561 42558 0 08:12 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 42562 42558 0 08:12 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 42563 42558 0 08:12 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 42626 42558 0 08:12 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@AXmonitor vmn]# ls -lat /usr/local/nagios/etc/services | tail -20
-rw-rw-r-- 1 apache nagios 4051 Jun 24 04:28 Nagios Server.cfg
-rw-rw-r-- 1 apache nagios 5077 Jun 23 13:37 VSIAXSRV.cfg
-rw-rw-r-- 1 apache nagios 10106 Jun 22 11:29 PRODSQL01.cfg
-rw-rw-r-- 1 apache nagios 6328 Jun 22 10:48 vrwesaz01.cfg
-rw-rw-r-- 1 apache nagios 10137 Jun 22 09:02 PRODSQL02.cfg
-rw-rw-r-- 1 apache nagios 1374 Jun 22 03:23 PRODSQL01_copy_1_copy_1.cfg
-rw-rw-r-- 1 apache nagios 4263 Jun 17 10:21 PRODRETAIL02.cfg
-rw-rw-r-- 1 apache nagios 7218 Jun 17 10:11 PRODAX03.cfg
-rw-rw-r-- 1 apache nagios 8531 Jun 17 08:37 PRODeCOM01.cfg
-rw-rw-r-- 1 apache nagios 1229 Jun 16 04:59 KSA-Retail-Store.cfg
-rw-rw-r-- 1 apache nagios 1303 Jun 16 04:46 http://www.billskhakis.com.cfg
-rw-rw-r-- 1 apache nagios 4259 Jun 16 01:32 JoieAzureDC01.cfg
-rw-rw-r-- 1 apache nagios 6339 May 2 11:55 29WEB02.cfg
-rw-rw-r-- 1 apache nagios 6339 May 2 11:47 29WEB01.cfg
-rw-rw-r-- 1 apache nagios 4343 Mar 8 13:24 http://www.kuiu.com.cfg
-rw-rw-r-- 1 apache nagios 3152 Mar 8 07:35 http://www.dooney.com.cfg
-rw-rw-r-- 1 apache nagios 1800 Feb 11 12:58 166.78.23.233.cfg
-rw-rw-r-- 1 apache nagios 1825 Feb 11 10:51 166.78.22.110.cfg
-rw-rw-r-- 1 apache nagios 5269 Feb 9 14:29 29SQL02.cfg
-rw-rw-r-- 1 apache nagios 5269 Feb 9 14:26 29SQL01.cfg

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 11:44 am
by rkennedy
Can you upgrade to the latest version? There have been quite a few bug fixes since 5.2.3.

It doesn't look like you have multiple processes running so that's a good sign, can you post your objects.cache file for us to look at? /usr/local/nagios/var/objects.cache

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 11:52 am
by Naveed
Thank you!

Yes, new update is available.

Can you please give me solid reason that this issue will be resolved after upgrading nagios xi.

I will than update it before any change.

Thank you!

Re: Unable to delete a service

Posted: Tue Jun 28, 2016 12:34 pm
by Naveed
Hello,

Requested file is attached.

Thank you!