Configuration Apply Fails
Posted: Tue Aug 27, 2019 9:29 am
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
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