Have to delete and write config files after every change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Have to delete and write config files after every change

Post by hbouma »

In the past several weeks, since our upgrade to Nagios XI 5.5.7, changes to the configuration are not shown in the Dashboard when applying a configuration.

For instance, if I change a threshold from 90% to 95%, save the config and apply configuration, then go and force an immediate check, the alert still shows for a threshold of 90%, not 95%. I end up having to go to the Config File Management, delete the files, write the config, restart nagios and then apply the configuration before the changes are picked up.

All our servers are running Nagios XI 5.5.7 on Red Hat 7.6 on 64bit VM's. We have 5 active servers, 3 standby servers and 1 test server. The issue is only occurring on 4 of the 5 active servers.

The 4 servers having the issue have more hosts/services than the one that is not having an issue.

Issue present:
Active Server 1: 279 hosts, 4224 services
Active Server 2: 281 hosts, 5979 services
Active Server 3: 569 hosts, 6732 services
Active Server 4: 274 hosts, 6254 services

Issue not present:
Active Server 5: 210 hosts, 2875 services
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Have to delete and write config files after every change

Post by ssax »

First, please these commands and see if it resolves the issue:

Code: Select all

systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mysqld || systemctl restart mariadb
systemctl start ndo2db
systemctl start nagios
systemctl start npcd
systemctl start crond
If that does not fix the issue, please PM me a copy of your profile from one of the non-working ones, you can download it from Admin > System Profile > Download Profile.
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Have to delete and write config files after every change

Post by hbouma »

I am scheduling this change. Unfortuantely, our change process will require me to wait for 2 weeks to get this in place. I will follow up once we have the scripts run.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Have to delete and write config files after every change

Post by ssax »

Since it's going to take 2 weeks, please PM me a profile from each of the non-working ones so that I can try to determine if that's actually the issue, you can download it from Admin > System Profile > Download Profile.
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Have to delete and write config files after every change

Post by hbouma »

Can you send me the command line and the path that it is saved to? It doesn't work when I push the Download Profile button.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Have to delete and write config files after every change

Post by npolovenko »

@hbouma, You can 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Have to delete and write config files after every change

Post by hbouma »

Profiles sent via PM.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Have to delete and write config files after every change

Post by npolovenko »

@hbouma, I checked my inbox and looks like I recieved a message but no attachments. Did you click on "Add the file" button after choosing the profile? Also, please try sending only 1 file in each message.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: Have to delete and write config files after every change

Post by hbouma »

Pm's sent.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Have to delete and write config files after every change

Post by npolovenko »

@hbouma, Profiles recieved and shared with the support team.
Please sign in to one of the servers that you're having issues on as the Nagios user, run the reconfigure command and show me the output:
[root@centos7x64 ~]# su - nagios
[nagios@centos7x64 ~]$ /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked