Ghost contact

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
notverynick
Posts: 62
Joined: Wed Jun 13, 2012 8:47 am

Ghost contact

Post by notverynick »

Hi Guys,

I have ghost contact that does not appear in my GUI contact list but that does however appear in multiple config files, including the top level contacts.cfg. It's existence is stopping me from applying any new config.

This seems to happened some time ago I have an error snapshot from 10/27 with the offending name (this is the oldest snap in the GUI, problem may go back further).

Can you let me know next steps to remove this ghost / what you need from me to help diagnose.

Cheers,

Nick
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Ghost contact

Post by dwhitfield »

Do you get any errors when you try to apply config? You will want to take a look at https://support.nagios.com/kb/article.php?id=34 if not.

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44
notverynick
Posts: 62
Joined: Wed Jun 13, 2012 8:47 am

Re: Ghost contact

Post by notverynick »

PM sent sir!

Edit: we get the error about the ghost contact when trying to apply any changes to the config.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Ghost contact

Post by tgriep »

Thanks for the profile. I saw that the server has an issue with the MYSQL database and that probably caused the issue.
Try running through this procedure and see if it you can find and remove the contact from the hosts and services.
Go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click the click the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button after all of the errors are resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
notverynick
Posts: 62
Joined: Wed Jun 13, 2012 8:47 am

Re: Ghost contact

Post by notverynick »

Guys that's perfect! Config applied and it looks like changes that were stuck are through too.

Thanks so much!

What's the best way to avoid this in the future?

Cheers

Edit: can't type
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Ghost contact

Post by tgriep »

It is hard to say what to do to not have this happen again.
From the log files, it looks like the server ran out of hard drive space. Make sure that doesn't happen again.
Also, you have the ability to do changes in the Core Config Manager but if you don't save them, you will not know if there are any configuration issue further down the road.
Glad that it is fixed now.
Be sure to check out our Knowledgebase for helpful articles and solutions!
notverynick
Posts: 62
Joined: Wed Jun 13, 2012 8:47 am

Re: Ghost contact

Post by notverynick »

Great thanks, I've made sure we as a team know to make small reversible changes and to work on config one person at a time, so hopefully we can avoid any situation like this going forward.

Cheers
kyang

Re: Ghost contact

Post by kyang »

Sounds good! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked