nagios xi changes to static core not reflected in xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

nagios xi changes to static core not reflected in xi

Post by kendallchenoweth »

Hello,

I have nagios 5.4.8 and have a process that generates a set of nagios configuration files that gets pushed to another nagios server. The target nagios server has all contents emptied from the CCM; the only contents are in /usr/local/nagios/etc/static (which is defined in nagios.cfg). When I look at /nagios on the target server, I see my changes reflected accurately. When I look at /nagiosxi I see old data. I have tried running ndo2db restart and that doesn't fix it. What do I need to do for force nagiosxi to read only from static config files?

This worked with an earlier version of nagiosxi and broke with the upgrade.

Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagios xi changes to static core not reflected in xi

Post by tmcdonald »

Can you share the code that you are using to do this? It's a little unclear what steps are being performed and in what order. Initially my thought is that a simple apply config on the remote machine should fix things, but you seem to be asking how to get an XI machine to ignore anything but what is in static, and that seems contrary to the rest of your post.
Former Nagios employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios xi changes to static core not reflected in xi

Post by dwhitfield »

Additionally...
kendallchenoweth wrote: When I look at /nagios on the target server, I see my changes reflected accurately. When I look at /nagiosxi I see old data.
Can you clarify what you mean here? Are you saying fqdn/nagios and fqdn/nagiosxi. Delete everything out of the CCM, and then it will look only at the static configs.

If that does not work for you, 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.
Locked