Page 1 of 1

Fresh Install of Nagios 5.8 failing on RHEL 7.4 Server

Posted: Fri Feb 05, 2021 1:15 pm
by Berto
We are attempting to do an install of NagiosXI 5.8 but run into an issue when the installer gets to E-importnagiosql, it fails with this error
Sorry, user root is not allowed to execute '/usr/local/nagiosxi/scripts/reset_config_perms.sh' as root on server.domain

The fullinstall script is being ran as root, the Red Hat server was a fresh install of Red Hat 7.4 server with GUI. The reset_config_perms.sh permissions are the following

-r-xr-x--- 1 root nagios 4894 Feb 5 12:12 reset_config_perms.sh

Re: Fresh Install of Nagios 5.8 failing on RHEL 7.4 Server

Posted: Fri Feb 05, 2021 2:07 pm
by dchurch
This error message comes from sudo.

Does your organization install a custom sudoers file on the machine?

Inspect /etc/sudoers and ensure this line exists:

Code: Select all

root ALL=(ALL) ALL
If that doesn't fix it, what's the contents of /etc/sudoers?

Re: Fresh Install of Nagios 5.8 failing on RHEL 7.4 Server

Posted: Thu Feb 11, 2021 7:44 pm
by Berto
Sorry, I thought I checked the notify me box. The issue was related to sudo as we point sudoers to LDAP, once we commented that line out the script worked.

Thanks for help! This can be closed.