Page 1 of 1
Host/Services in Service Detail, but not CCM
Posted: Mon Jul 21, 2014 6:15 pm
by toleolu
Got a few servers that when you look at them in Service Details, you get this:
servdetail.JPG
But when you pull it up in CCM, you get:
ccm.JPG
Wanted to check with you first before I start hacking on the config files. I just need to delete these hosts and services.
Mahalo;
Re: Host/Services in Service Detail, but not CCM
Posted: Mon Jul 21, 2014 6:21 pm
by BanditBBS
1.)What version are you running?
2.) If you write and then verify the config, do you get an error?
Re: Host/Services in Service Detail, but not CCM
Posted: Tue Jul 22, 2014 9:07 am
by tmcdonald
Also, if you search for "AntiVirus", are any of the results attached to that host? It could be that they are just not named after the host but are still a part of it.
Re: Host/Services in Service Detail, but not CCM
Posted: Tue Jul 22, 2014 11:47 am
by toleolu
Thanks to all.
Currently we're on 2012 R2.9, I'm trying to clean things up so I can update to the most current.
When writing the config, I don't get an error on these phantom hosts, but I do get warnings. I posted earlier about the "No default contact or contact group associated with blah blah blah" on this host as well as a few others. Please keep in mind that when we first went on Nagios XI we imported config files from our very old Version 1 system.
On our Version 1 system, if I wanted to remove a host, I edited 3 files, hostgroup.cfg, host.cfg, and services.cfg. I would then run the verify from the command line and then restart Nagios if there were no errors.
Since I have about 8 or so phantom hosts like this, what would be the comparable way of removing them in Nagios XI by editing config files? Just a reminder, I can't remove or modify them in CCM because CCM can't find them. "No Matching Record Found".
Mahalo
Re: Host/Services in Service Detail, but not CCM
Posted: Tue Jul 22, 2014 10:49 pm
by Box293
You should be able to remove the phantom hosts by deleting their respective .cfg files:
Code: Select all
rm /usr/local/nagios/etc/services/SvrMMMC11.cfg
rm /usr/local/nagios/etc/hosts/SvrMMMC11.cfg
OR you could move them to /tmp just in case you need them again:
Code: Select all
mv /usr/local/nagios/etc/services/SvrMMMC11.cfg /tmp/SvrMMMC11_services.cfg
mv /usr/local/nagios/etc/hosts/SvrMMMC11.cfg /tmp/SvrMMMC11_hosts.cfg
Then write the config and see if the warnings appear.
Re: Host/Services in Service Detail, but not CCM
Posted: Wed Jul 23, 2014 12:56 pm
by toleolu
OK thanks, I'll give that a shot.
Re: Host/Services in Service Detail, but not CCM
Posted: Wed Jul 23, 2014 1:24 pm
by toleolu
Phantom hosts gone. (And I didn't break anything)
As always, much appreciated, you guys are great!!
Mahalo