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

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

Post by jrmartin »

[root@nadc-nag-p01 etc]# grep -r -n 'Hardware' *
services/dmprd01.cfg:16: service_description Check Hardware
services/bkuprd06.cfg:49: service_description Hardware Status
services/tais-scm-d02.cfg:16: service_description Check Hardware
services/IRNSWB01.cfg:26: service_description Check Hardware
services/tais-orc-p01-gz.cfg:50: service_description Hardware Status
services/nadc-jss-p01.cfg:61: service_description Hardware Status
services/dmprd02.cfg:16: service_description Check Hardware
services/nadc-eai-p12.cfg:50: service_description Hardware
services/irordb01.cfg:16: service_description Check Hardware
services/nadc-bku-p01.cfg:33: service_description Hardware Status
services/tais-dm-p01.cfg:16: service_description Check Hardware
services/tais-scm-d01.cfg:16: service_description Check Hardware
services/gpsdev01.cfg:33: service_description Check Hardware
services/tais-jdi-d01.cfg:16: service_description Check Hardware

services/dmprd01.cfg:85: service_description Volume Manager
services/bkuprd06.cfg:133: service_description Volume Manager
services/tais-scm-d02.cfg:127: service_description Volume Manager
services/nadc-jss-p01.cfg:131: service_description Volume Manager
services/dmprd02.cfg:141: service_description Volume Manager
services/irordb01.cfg:106: service_description Volume Manager
services/nadc-bku-p01.cfg:117: service_description Volume Manager
services/tais-scm-d01.cfg:141: service_description Volume Manager
services/gpsdev01.cfg:117: service_description Volume Manager

[root@nadc-nag-p01 etc]# grep -r -n 'DU' *
nsca.cfg:84:# ALTERNATE DUMP FILE
services/IRNSWB01.cfg:16: service_description Check DU
services/gpsdev01.cfg:16: service_description Check DU
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 »

Sorry about that typo. Is there any chance these services were assigned from a template?

The other thing you could try would be to make a backup copy of the nagios/etc/services directory, delete them, and then use the Write Config Tool to rewrite the config files. This will ensure that there aren't any "ghost" configs on your nagios/etc/services directory.
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 just added another host and a slew of services I did not ask to be monitored were enabled.

Should I cut my losses now and start over and go back to 1.6?

TIA!

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 »

ok I deleted the hosts under /etc/services and re-wrote all the config files.
No change.. still services that were never enabled under the hosts.

I never created any templates.

something is SNAfu's for sure on this...

Any other advice?

Thanks.
Jeff
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 »

Can you PM me a configuration snapshot and let me know what the phantom services are so I know what isn't supposed to be there? Access the Configure->Core Config Manager->Configuration Snapshots and download the latest config tarball.
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 »

OK, I think I see what happened. It looks like you've applied services to hostgroups, so what that will do is that any hosts that are added to this group will automatically get those services assigned to them. Access the Core Config Manager->Services, then select the IRNSWB01 config and then remove the hostgroup assignments. This is a handy feature if you want to use 1 service for a large group of hosts, but it can also bite you if it wasn't what you intended.
Locked