Page 1 of 1

Configuration Apply Fails

Posted: Tue Aug 27, 2019 9:29 am
by Bitflogger
Hello, I'm running v5.6.5 on a 64-bit VM CentOS server.

I tried to apply a configuration, and received bogus errors concerning a few contacts service and host notification.

After checking the contacts and finding no problem, I tried running it by hand:

[user@server etc]$ sudo su - nagios -c /usr/local/nagiosxi/scripts/reconfigure_nagios.sh

Resetting configuration permissions failed!


I ran the check permissions option under the Admin menu, and it came returned all OK.


I then tried running:

user@server etc]$ sudo su - nagios -c /usr/local/nagiosxi/scripts/reset_config_perms.sh

--- reset_config_perms.sh ------------
> Setting script permissions
/bin/chown: changing ownership of ‘/usr/local/nagiosxi/scripts/backup_xi.sh’: Operation not permitted
/bin/chown: changing ownership of ‘/usr/local/nagiosxi/scripts/change_timezone.sh’: Operation not permitted
/bin/chown: changing ownership of ‘/usr/local/nagiosxi/scripts/components’: Operation not permitted
/bin/chown: changing ownership of ‘/usr/local/nagiosxi/scripts/import_xiconfig.php’: Operation not permitted
/bin/chown: changing ownership of ‘/usr/local/nagiosxi/scripts/manage_services.sh’: Operation not permitted

Followed by a lot of other files.

Here are the permissions of the first file path:

[user@server etc]$ ls -ald /usr/local/nagiosxi
drwxr-xr-x 10 root nagios 102 May 1 2018 /usr/local/nagiosxi

[ead@server etc]$ ls -ald /usr/local/nagiosxi/scripts
drwxr-xr-x 4 root nagios 4096 Jun 20 12:07 /usr/local/nagiosxi/scripts

[user@server etc]$ ls -ald /usr/local/nagiosxi/scripts/backup_xi.sh
-r-xr-x--- 1 root nagios 7766 Aug 1 12:10 /usr/local/nagiosxi/scripts/backup_xi.sh


I tried restoring the OK snapshot from this morning, the apply failed as before.

Earl

Re: Configuration Apply Fails

Posted: Tue Aug 27, 2019 9:35 am
by Bitflogger
Hello,

In my System Component Status, I see the Monitoring Engins, Performance Grapher and Database Backend are offline.

When I try to start them, it says "an error occurred processing your request".

Earl

Re: Configuration Apply Fails

Posted: Tue Aug 27, 2019 9:37 am
by scottwilkerson
Can you run the following commands and show the full output

Code: Select all

chage -l nagios
tail -10 /var/log/cron
systemctl status nagios
systemctl status ndo2db
ll /usr/local/nagios/etc/import

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh

Re: Configuration Apply Fails

Posted: Tue Aug 27, 2019 10:00 am
by Bitflogger
Hello,

My backup server had the same problem, then the problem it disappeared.

My tech support staff said there was a problem with the "sudo support module".

The status dashboards look good now, an Apply Configuration works.

Is there any check for damage that I should run?

Thanks for the quick response!

Earl

Re: Configuration Apply Fails

Posted: Tue Aug 27, 2019 10:09 am
by scottwilkerson
Bitflogger wrote:The status dashboards look good now, an Apply Configuration works.

Is there any check for damage that I should run?
If these show correct and are working there isn't a whole lot more to check. the apply Configuration process utilities almost every component if XI.

It all does makes sense, if the sudo module wasn't working properly many key components would fail.

Re: Configuration Apply Fails

Posted: Tue Aug 27, 2019 10:13 am
by Bitflogger
OK, please lock the case.

Thanks!

Earl

Re: Configuration Apply Fails

Posted: Tue Aug 27, 2019 10:19 am
by scottwilkerson
Bitflogger wrote:OK, please lock the case.

Thanks!

Earl
Great!

Locking