NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi
Posted: Sat Jan 18, 2025 2:43 pm
I am attempting to install NagiosXI 2024 offline (nagiosxi-2024R1.3.2-1.el8.x86_64.tar.gz) on a clean Red Hat 8.9. Due to my environment, the nagios user and group and also nagcmd group has been created on Red Hat IPA. The nagios home directory is located in /opt/nagiosxi and before executing "./fullinstall --offline" I export the nagios home directory (export NAGIOS_HOME=/opt/nagiosxi). Once I execute "./fullinstall --offline" as root, I get towards the end and I see:
touch: cannot touch '/usr/local/nagiosxi/var/components/snmptrapsender.log': No such file or directory
/usr/bin/chmod: cannot access '/usr/local/nagiosxi/var/components/snmptrapsender.log': No such file or directory
chown: cannot access '/usr/local/nagiosxi/var/components/snmptrapsender.log': No such file or directory
touch: cannot touch '/usr/local/nagiosxi/var/components/ldap_ad_integration.log': No such file or directory
/usr/bin/chmod: cannot access '/usr/local/nagiosxi/var/components/ldap_ad_integration.log': No such file or directory
chown: cannot access '/usr/local/nagiosxi/var/components/ldap_ad_integration.log': No such file or directory
After the installation failed, I created all the necessary directories in /usr/local/nagiosxi and ran the installation again. I did not receive the above error, however no files were populated into the directories under /usr/local/nagiosxi. The directory's ownership is root:nagios. The nagios service will not start.
I have been at this for a few days and now stumped, any help would be greatly appreciated.
touch: cannot touch '/usr/local/nagiosxi/var/components/snmptrapsender.log': No such file or directory
/usr/bin/chmod: cannot access '/usr/local/nagiosxi/var/components/snmptrapsender.log': No such file or directory
chown: cannot access '/usr/local/nagiosxi/var/components/snmptrapsender.log': No such file or directory
touch: cannot touch '/usr/local/nagiosxi/var/components/ldap_ad_integration.log': No such file or directory
/usr/bin/chmod: cannot access '/usr/local/nagiosxi/var/components/ldap_ad_integration.log': No such file or directory
chown: cannot access '/usr/local/nagiosxi/var/components/ldap_ad_integration.log': No such file or directory
After the installation failed, I created all the necessary directories in /usr/local/nagiosxi and ran the installation again. I did not receive the above error, however no files were populated into the directories under /usr/local/nagiosxi. The directory's ownership is root:nagios. The nagios service will not start.
I have been at this for a few days and now stumped, any help would be greatly appreciated.