Page 1 of 1

nagios xi changes to static core not reflected in xi

Posted: Wed Sep 20, 2017 10:25 am
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!

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

Posted: Wed Sep 20, 2017 4:55 pm
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.

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

Posted: Wed Sep 20, 2017 4:56 pm
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.