Host/Services in Service Detail, but not CCM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Host/Services in Service Detail, but not CCM

Post 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;
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Host/Services in Service Detail, but not CCM

Post by BanditBBS »

1.)What version are you running?

2.) If you write and then verify the config, do you get an error?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host/Services in Service Detail, but not CCM

Post 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.
Former Nagios employee
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Host/Services in Service Detail, but not CCM

Post 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
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Host/Services in Service Detail, but not CCM

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Host/Services in Service Detail, but not CCM

Post by toleolu »

OK thanks, I'll give that a shot.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Host/Services in Service Detail, but not CCM

Post by toleolu »

Phantom hosts gone. (And I didn't break anything)

As always, much appreciated, you guys are great!!

Mahalo
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Locked