Page 1 of 2
HELP: service check showing in GUI but its not enabled
Posted: Mon Aug 29, 2011 5:08 pm
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
Re: HELP: service check showing in GUI but its not enabled
Posted: Tue Aug 30, 2011 4:19 pm
by lmiltchev
Did you try deleting the service definition manually?
Re: HELP: service check showing in GUI but its not enabled
Posted: Tue Aug 30, 2011 4:51 pm
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
Re: HELP: service check showing in GUI but its not enabled
Posted: Wed Aug 31, 2011 2:43 pm
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?
Re: HELP: service check showing in GUI but its not enabled
Posted: Wed Aug 31, 2011 5:04 pm
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.
Re: HELP: service check showing in GUI but its not enabled
Posted: Fri Sep 02, 2011 1:39 pm
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'
Re: HELP: service check showing in GUI but its not enabled
Posted: Fri Sep 02, 2011 2:05 pm
by jrmartin
Okay I did the search.. here are the screen shots.
Re: HELP: service check showing in GUI but its not enabled
Posted: Fri Sep 02, 2011 3:04 pm
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.
Re: HELP: service check showing in GUI but its not enabled
Posted: Fri Sep 02, 2011 6:21 pm
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
Re: HELP: service check showing in GUI but its not enabled
Posted: Fri Sep 02, 2011 6:28 pm
by jrmartin
Here you can see that CCM only shows Check DU assigned to (2) hosts. However the services shows something entirely different.