Apply config is failing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Apply config is failing

Post by kandatih »

Environment
Nagios XI 5.7.2 - Offline install
OS - Linux 7.7

we are trying to run apply configuration through Core Config Manager and its failing.

Not sure which config is causing the issue. Could you please assist to fix this issue.


We tried this troubleshooting steps, but it didnt help to fix the issue.
=====
login to the XI GUI and 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 on 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.
=====
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Apply config is failing

Post by kandatih »

Error screenshot attached
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Apply config is failing

Post by benjaminsmith »

Hi @kandath,

If you went through the process, and there were no configuration errors when you selected Verify after Delete and then Write, it ought to apply the new configuration.

Run the following tail command on the subsystem log and then select Apply Congfugiuration so we can see what's causing the error. Please post the full output to the thread. Thanks.

Code: Select all

 tail -f /usr/local/nagiosxi/var/cmdsubsys.log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sparknagioshelp
Posts: 4
Joined: Tue Mar 03, 2020 6:30 pm

Re: Apply config is failing

Post by sparknagioshelp »

Hello mate,

Output as follow.

[nagios@caplovh2a /usr/local/nagiosxi/scripts]$ tail -f /usr/local/nagiosxi/var/cmdsubsys.log
CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall
CMD: syncall
MSG: BPI configuration applied successfully! BPI configuration applied successfully!
OUTPUT=MSG: BPI configuration applied successfully! BPI configuration applied successfully!
RETURNCODE=0
.......................
PROCESSED 2 COMMANDS
............................................................
PROCESSED 0 COMMANDS
............................................................
PROCESSED 0 COMMANDS
............................................................
PROCESSED 0 COMMANDS
...........................................................
PROCESSED 0 COMMANDS
......................................................PROCESSING COMMAND ID 23566...
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
sudo: no tty present and no askpass program specified

Resetting configuration permissions failed!
OUTPUT=Resetting configuration permissions failed!
RETURNCODE=3
PROCESSING COMMAND ID 23567...
PROCESS COMMAND: CMD=1150, DATA=remove
CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall
.......CMD: syncall
MSG: BPI configuration applied successfully! BPI configuration applied successfully!
OUTPUT=MSG: BPI configuration applied successfully! BPI configuration applied successfully!
RETURNCODE=0



Even we are not abale to start System Component Status
Monitoring Engine
Performance Grapher

Please help us to fix this issue.
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Apply config is failing

Post by kandatih »

Issue fixed after changing user ownership of /usr/local/nagiosxi/scripts/reconfigure_nagios.sh to nagios from root.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply config is failing

Post by scottwilkerson »

kandatih wrote:Issue fixed after changing user ownership of /usr/local/nagiosxi/scripts/reconfigure_nagios.sh to nagios from root.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked