NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
dhatha03
Posts: 26
Joined: Thu Nov 12, 2015 12:24 pm

NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi

Post by dhatha03 »

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.
User avatar
ajcoil
Posts: 108
Joined: Wed Aug 09, 2023 10:30 am

Re: NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi

Post by ajcoil »

Hello @dhatha03,

Thanks for reaching out!

Just to clarify, did you create the nagios user/group and nagcmd group before the installation?
danderson

Re: NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi

Post by danderson »

Do you see anything interesting in /tmp/xi-install.log
dhatha03
Posts: 26
Joined: Thu Nov 12, 2015 12:24 pm

Re: NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi

Post by dhatha03 »

I had not created the local user and groups before installation, they were only created on IPA. In the process of researching a way to create the user/groups locally while also having them on IPA, I decided to forgo IPA and just have them locally. For what it is worth, below is the error in the log I was seeing during installation:

Running './02-usersgroups'...
Adding users and groups...
Adding users and groups...
useradd: user 'nagios' already exists
useradd: user 'nagios' already exists
usermod: user 'nagios' does not exist in /etc/passwd
usermod: user 'nagios' does not exist in /etc/passwd
groupadd: group 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
groupadd: group 'nagcmd' already exists
ERROR: User 'nagios' was not created - exiting.
ERROR: User 'nagios' was not created - exiting.


Once the decision was made not use IPA for the user/groups, I created the user/groups locally and also the home directory. The installation succeeded and all appears well. Thank you for the prompt feedback.
User avatar
ajcoil
Posts: 108
Joined: Wed Aug 09, 2023 10:30 am

Re: NagiosXI 2024 Offline Installation - Failed to create /usr/local/nagiosxi

Post by ajcoil »

Hello @dhatha03,

Thank you for getting back to us, glad to hear all appears well!

Just to clarify, have you found a resolution to your issue? Or do you still require assistance in getting up and running?
Post Reply