HELP: service check showing in GUI but its not enabled

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

HELP: service check showing in GUI but its not enabled

Post by jrmartin »

Hello,
NagiosXI 1.7 prebuilt VM. (well upgraded from 1.6)
I ran a manual command line check against a host from the nagiosxi host and now its showing in the web interface. I cannot delete it even if I try. I never added it as a service check thru the wizards. Is there a way to delete this?

UPDATE: error I receive when trying to delete:

Check Raid
nadc-bku-p01

Could not find a unique id for this service
Service cannot be deleted using this method

One or more errors were detected that prevent the service from being deleted.

Possible causes include...

The service is associated with other hosts, services, or objects that need to be deleted first
The service is generated by an advanced monitoring configuration entry
The service is maintained in a static or external configuration file

To resolve this issue...

Use the Nagios Core Configuration Manager to delete the service - or -
Manually delete the service definition from the appropriate external configuration file

TIA!
Jeff
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HELP: service check showing in GUI but its not enabled

Post by lmiltchev »

Did you try deleting the service definition manually?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: HELP: service check showing in GUI but its not enabled

Post by jrmartin »

I tried but its the service is not even listed in /usr/local/nagios/etc/service/hostname.cfg file, not to mention the file says its autogenerated by QL and to not edit it by hand.

I see the check in the hosts groups but no where can I find it in the configuration manager. Very strange.

Also, when I use the check configuration files option in the gui I see this which is telling me that it sees a duplicate check for one host in another hosts config file..no idea how this happened.

Warning: Duplicate definition found for service 'Volume Manager' on host 'gpsdev01' (config file '/usr/local/nagios/etc/services/dmprd01.cfg', starting on line 24)
Warning: Duplicate definition found for service 'Check Hardware' on host 'gpsdev01' (config file '/usr/local/nagios/etc/services/dmprd01.cfg', starting on line 14)
Warning: Duplicate definition found for service 'Check Hardware' on host 'tais-scm-d02' (config file '/usr/local/nagios/etc/services/dmprd01.cfg', starting on line 14)
Warning: Duplicate definition found for service 'Check Hardware' on host 'tais-scm-d01' (config file '/usr/local/nagios/etc/services/dmprd01.cfg', starting on line 14)
Warning: Duplicate definition found for service 'Volume Manager' on host 'tais-scm-d02' (config file '/usr/local/nagios/etc/services/dmprd01.cfg', starting on line 24)
Warning: Duplicate definition found for service 'Volume Manager' on host 'tais-scm-d01' (config file '/usr/local/nagios/etc/services/dmprd01.cfg', starting on line 24)
Warning: Duplicate definition found for service 'Check Hardware' on host 'nadc-eai-p12' (config file '/usr/local/nagios/etc/services/IRNSWB01.cfg', starting on line 24)
Warning: Duplicate definition found for service 'Check Raid' on host 'irnswb02-adm' (config file '/usr/local/nagios/etc/services/IRNSWB01.cfg', starting on line 42)
Warning: Duplicate definition found for service 'Check SSH' on host 'irnswb02-adm' (config file '/usr/local/nagios/etc/services/IRNSWB01.cfg', starting on line 52)
Warning: Service 'Ping' on host 'tais-scm-d02' has no check time period defined!
Warning: Service 'Ping' on host 'tais-scm-d02' has no notification time period defined!
Total Warnings: 2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HELP: service check showing in GUI but its not enabled

Post by lmiltchev »

If you click on "Services" under the Core Config manager and use the "Config name filter" to select one of the problematic hosts, for example "gpsdev01", can you see duplicate definitions for "Volume Manager" and "Check Hardware" services?
Can you post a screenshot?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: HELP: service check showing in GUI but its not enabled

Post by jrmartin »

Sure, here are some screen shots. Also, I posted another post which may be overlapping on this which also has some screen shots.
You do not have the required permissions to view the files attached to this post.
Last edited by jrmartin on Fri Sep 02, 2011 2:06 pm, edited 1 time in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HELP: service check showing in GUI but its not enabled

Post by lmiltchev »

jrmartin, go to the Core Config Manager, click on "Services" under "Monitoring" from the left panel menu, then type in the "Search" box: "Volume Manager" and press "Enter". See of it is defined for more then one host. Do the same with "Check Hardware". Note: Make sure the "Config name filter" is set to "All configs".
"Volume Manager" and "Check Hardware" are the two services with "Duplicate definition" warnings.

You can also perform a search for these in terminal, such as:

Code: Select all

# cd /usr/local/nagios/etc
# grep -r -n 'Volume Manager'
# grep -r -n 'Check Hardware'
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: HELP: service check showing in GUI but its not enabled

Post by jrmartin »

Okay I did the search.. here are the screen shots.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: HELP: service check showing in GUI but its not enabled

Post by mguthrie »

The "Config Name" that you're seeing on this screen is different than the host name. It is only the name of the actual text file that this config is being stored in. It is possible to assign a service definition to many hosts in the CCM, and I'm wondering if that's what has happened here. We need you to show us the results from the grep command posted above so we can help identify where this host assignment might be located. You can also search all of the services named "Volume Manager" in the CCM to see if the service has been assigned to multiple hosts. To see how this works in action, access the CCM->Services ->(modify a service), and then select the notepad icon next to "Hosts." My guess is that you have a service somewhere that has multiple hosts assigned to it.
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: HELP: service check showing in GUI but its not enabled

Post by jrmartin »

I checked the CCM-> Services then filtered on Volume, I then checked each host (modify) then choose the notepad. All the hosts only showed themselves as assigned to the service. There were no entries with multiple hosts assigned.

I have been running the previous grep command, however it is still running (over a few hours now..) so I wonder if its actually doing anything?

Even further, it only happens on some hosts and not others. If I add a new host, it can pretty much be assured that it will happen but not always.

I will post the results of the grep cmd if it ever finishes.

Thanks!
Jeff
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: HELP: service check showing in GUI but its not enabled

Post by jrmartin »

Here you can see that CCM only shows Check DU assigned to (2) hosts. However the services shows something entirely different.
You do not have the required permissions to view the files attached to this post.
Locked