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
Configuration Apply Fails
-
Bitflogger
- Posts: 226
- Joined: Mon Oct 16, 2017 9:24 am
Re: Configuration Apply Fails
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuration Apply Fails
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-
Bitflogger
- Posts: 226
- Joined: Mon Oct 16, 2017 9:24 am
Re: Configuration Apply Fails
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuration Apply Fails
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.Bitflogger wrote:The status dashboards look good now, an Apply Configuration works.
Is there any check for damage that I should run?
It all does makes sense, if the sudo module wasn't working properly many key components would fail.
-
Bitflogger
- Posts: 226
- Joined: Mon Oct 16, 2017 9:24 am
Re: Configuration Apply Fails
OK, please lock the case.
Thanks!
Earl
Thanks!
Earl
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuration Apply Fails
Great!Bitflogger wrote:OK, please lock the case.
Thanks!
Earl
Locking