invisible service (starts with a space)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tlehrman
Posts: 5
Joined: Tue Apr 09, 2013 3:31 pm

invisible service (starts with a space)

Post by tlehrman »

I have been searching around, and have not come across anyone else with this particular issue:

Someone at my organization created a service check with a space at the beginning ( HTTP TCP 80 check.cfg), and has it attached to a hostgroup. When viewing the services on this hostgroup, you can see the service check displayed, and it is working. However, when looking in services in the CCM, it is not displayed. All of the ways I have attempted to 'find' this invisible service in the CCM have come up with nothing, the preceding blank is causing a lot of trouble.

I found it by writing out the config files to text and then grepping through the file structure.

So, how should I go about deleting this service, or at least getting it to a state where it can be displayed?

thanks,
-Ted

Nagios XI 2012R2.2
Centos 6.4 x64
Manual install
offloaded MySql
Last edited by tlehrman on Wed Aug 14, 2013 10:22 am, edited 1 time in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: invisible service (startes with a space)

Post by abrist »

The config file may be a ghost (the ccm entry is deleted, but the cfg file remains). If it's modify/create time is different from the other configs, then it most likely is. Try removing the config, applying configuration, and the checking the details ui to see if the host is gone.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tlehrman
Posts: 5
Joined: Tue Apr 09, 2013 3:31 pm

Re: invisible service (starts with a space)

Post by tlehrman »

perfect, that was it. Modify date was 4 days older than the other, which was about when the service showed up. I was able to delete the config file, apply the config, and all is clean again.

thanks for the quick reply / suggestion. see below for the file I deleted. ' HTTP TCP 80 check.cfg'

-Ted

-rw-rw-r-- 1 apache nagios 1025 Aug 13 15:55 https:443.cfg
-rw-rw-r-- 1 apache nagios 877 Aug 9 14:29 HTTP TCP 80 check.cfg
-rw-rw-r-- 1 apache nagios 2263 Aug 13 15:55 hub3.lj.gnf.org.cfg
Locked