Page 1 of 2
Have to delete and write config files after every change
Posted: Wed Jan 02, 2019 8:58 am
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
Re: Have to delete and write config files after every change
Posted: Wed Jan 02, 2019 12:08 pm
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.
Re: Have to delete and write config files after every change
Posted: Wed Jan 02, 2019 2:03 pm
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.
Re: Have to delete and write config files after every change
Posted: Wed Jan 02, 2019 3:16 pm
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.
Re: Have to delete and write config files after every change
Posted: Wed Jan 02, 2019 3:44 pm
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.
Re: Have to delete and write config files after every change
Posted: Wed Jan 02, 2019 4:23 pm
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.
Re: Have to delete and write config files after every change
Posted: Thu Jan 03, 2019 12:39 pm
by hbouma
Profiles sent via PM.
Re: Have to delete and write config files after every change
Posted: Thu Jan 03, 2019 1:23 pm
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.
Re: Have to delete and write config files after every change
Posted: Thu Jan 03, 2019 1:33 pm
by hbouma
Pm's sent.
Re: Have to delete and write config files after every change
Posted: Thu Jan 03, 2019 1:54 pm
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