Page 1 of 1

Offline Install Help - Install Directory

Posted: Tue Mar 04, 2025 2:01 pm
by jmchavez84
Hello, I am new to NagiosXI and trying to get it installed. First, thing is, we cant install on our /tmp directories so I put the download and un tared the offline installer to /opt/transfer/nagiosxi, changed the tempdir to tempdir=/opt/nagios, manually set echo "offline" > /usr/local/nagiosxi/var/xi-itype. installed all the rpms manually with dnf install ./*.rpm, this installed them all

Everything looks correct, or like it worked, but going to https://localhost/nagios or https://localhost/nagiosxi does not work "we only can use https" It just comes back with Unable to connect "no error code"

also looking in /usr/local/nagiosxi I only see a var/xi-itype file, should I see more stuff in this nagiosxi folder?

This is a RHEL9 vm with limited access to the internet, we have to request ports or sites to be opened

Let me know if I can provide with any more details

Thank you

Re: Install Directory

Posted: Tue Mar 04, 2025 5:51 pm
by sgardil
jmchavez84 wrote: Tue Mar 04, 2025 2:01 pm Hello, I am new to NagiosXI and trying to get it installed. First, thing is, we cant install on our /tmp directories so I put the download and un tared the offline installer to /opt/transfer/nagiosxi, changed the tempdir to tempdir=/opt/nagios, manually set echo "offline" > /usr/local/nagiosxi/var/xi-itype. installed all the rpms manually with dnf install ./*.rpm, this installed them all

Everything looks correct, or like it worked, but going to https://localhost/nagios or https://localhost/nagiosxi does not work "we only can use https" It just comes back with Unable to connect "no error code"

also looking in /usr/local/nagiosxi I only see a var/xi-itype file, should I see more stuff in this nagiosxi folder?

This is a RHEL9 vm with limited access to the internet, we have to request ports or sites to be opened

Let me know if I can provide with any more details

Thank you
Hey @jmchavez84

If you havn't set up SSL it should just redirect you to http. Can you check your /etc/httpd/conf.d/ssl.conf and see if it has something resembling this in it?

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
It should be at the end of the file. Also do you have selinux enabled? When you mention that you have to request ports or sites to be open, do you have to do so with the 443 port for https on your firewall?

Re: Offline Install Help - Install Directory

Posted: Wed Mar 05, 2025 10:17 am
by jmchavez84
Hello,

The code you pasted was not in my /etc/httpd/conf.d/ssl.conf file, so I added it at the bottom after the closing </VirtualHost> tag. I think it's a step closer. I' am now getting "Forbidden, You don't have permission to access this resource."

Selinux was enabled, but I just set it to permissive (setenforce 0)

I can get to some https sites, but they may be hard coded to be allowed through, I just submitted a local ticket to see if a policy/ firewall might block an attempt at going to a local https link.

Where is the Nagios webpage hosted at on an install on your machine? One other thing I thought of is the folder may not be set to let people read from it. I looked it /var/www/html but did not see a Nagios folder.

Thank you @sgardil

Re: Offline Install Help - Install Directory

Posted: Wed Mar 05, 2025 11:44 am
by bbahn
Hello @jmchavez84,

When Nagios XI is properly installed, it is located at /usr/local/nagiosxi and that folder will contain several folders containing the contents of Nagios XI and Nagios Core in /usr/local/nagios.

Folders for Nagios Core (/usr/local/nagios):
bin, etc, libexec, sbin, share, var

Folders for Nagios XI (/usr/local/nagiosxi):
cron, developer, etc, html, nom, scripts, tmp, tools, var

It seems like Nagios XI didn't properly install. If you have full access to your machine, I would

Code: Select all

cd /tmp
find -name "nagiosxi"
to see if your install directory is different from the typical location, but if it's not installed somewhere else, you will likely need more detailed and personalized assistance.

You can access official Nagios support at https://support.nagios.com/

Re: Offline Install Help - Install Directory

Posted: Wed Mar 05, 2025 1:39 pm
by jmchavez84
@bbahn Thank you for the location, it was empty. I am working on installing it on another server and will copy it over to my VMs /usr/local folder and see how that goes while I wait on my https ticket to get resolved.

Re: Offline Install Help - Install Directory

Posted: Mon Jul 28, 2025 9:59 pm
by dianereese
jmchavez84 wrote: Tue Mar 04, 2025 2:01 pm Hello, I am new to NagiosXI and trying to get it installed. First, thing is, we cant install on our /tmp directories so I put the download and un tared the offline installer to /opt/transfer/nagiosxi, changed the tempdir to tempdir=/opt/nagios, manually set echo "offline" > /usr/local/nagiosxi/var/xi-itype. installed all the rpms manually with dnf install ./*.rpm, this installed them all

Everything looks correct, or like it worked, but going to https://localhost/nagios or https://localhost/nagiosxiYoPlay does not work "we only can use https" It just comes back with Unable to connect "no error code"

also looking in /usr/local/nagiosxi I only see a var/xi-itype file, should I see more stuff in this nagiosxi folder?

This is a RHEL9 vm with limited access to the internet, we have to request ports or sites to be opened

Let me know if I can provide with any more details

Thank you
If /usr/local/nagiosxi only contains the var/xi-itype file, that’s a sign the installer didn’t finish extracting or configuring everything correctly. Normally, you'd see a full directory structure there after a successful install (e.g., subfolders like html, scripts, etc, etc.).

One thing to double-check: after installing the RPMs, did you run the ./install.sh script from within the offline installer directory? That’s what actually sets up Nagios XI — installing RPMs alone isn’t enough.

Re: Offline Install Help - Install Directory

Posted: Thu Jul 31, 2025 4:55 am
by Linmayi
jmchavez84 wrote: Tue Mar 04, 2025 2:01 pm Hello, I am new to NagiosXI and trying to get it installed. First, thing is, we cant install on our /tmp directories so I put the download and un tared the offline installer to /opt/transfer/nagiosxi, changed the tempdir to tempdir=/opt/nagios, manually set echo "offline" > /usr/local/nagiosxi/var/xi-itype. installed all the rpms manually with dnf install ./*.rpm, this installed them all

Everything looks correct, or like it worked, but going to https://localhost/nagios or https://localhost/nagiosxicrossy road does not work "we only can use https" It just comes back with Unable to connect "no error code"

also looking in /usr/local/nagiosxi I only see a var/xi-itype file, should I see more stuff in this nagiosxi folder?

This is a RHEL9 vm with limited access to the internet, we have to request ports or sites to be opened

Let me know if I can provide with any more details

Thank you
Regarding the contents of the /usr/local/nagiosxi directory, you should see several subdirectories and files, including var, etc, and html. If you only see var/xi-itype, it may indicate an incomplete installation.