Nagios xi Offline Installation Issue

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
rlee8394
Posts: 13
Joined: Thu Jan 30, 2025 12:02 pm

Nagios xi Offline Installation Issue

Post by rlee8394 »

I am using xi-2024R1.3.3.tar.gz to install on a Red Hat EL 8.10 system which is offline. This is a clean RHEL8 installation with the requisite repos enabled.
Issue 1 - The "How to Install Nagios xi In An Offline Environment" manual states to run ./fullinstall. This is false as the install attempts to curl to outside repos. The correct executable to run is ./offlineinstall.

Issue 2 - Inconsistent scripts. fullinstall is a #!/bin/bash -e script while offlineinstall and offlineugrade are both #!/bin/sh -e files.

Issue 3 - Running the ./offlineinstall script fails with error:
cp: cannot stat 'offline-nagiosxi': No such file or directory.

So, it seems that there is no offline-nagiosxi folder to copy.

Any support on this matter is greatly appreciated.
rlee8394
Posts: 13
Joined: Thu Jan 30, 2025 12:02 pm

Re: Nagios xi Offline Installation Issue

Post by rlee8394 »

Looks like the proper file to use is nagiosxi-2024R1.3.3-1.el9.x86_64.tar from https://repo.nagios.com/nagiosxi-offline/
User avatar
jmichaelson
Posts: 336
Joined: Wed Aug 23, 2023 1:02 pm

Re: Nagios xi Offline Installation Issue

Post by jmichaelson »

Did using that download get you installed and ready to go? Or do you need more assistance on it?
Please let us know if you have any other questions or concerns.

-Jason
rlee8394
Posts: 13
Joined: Thu Jan 30, 2025 12:02 pm

Re: Nagios xi Offline Installation Issue

Post by rlee8394 »

Yes, nagiosxi-2024R1.3.3-1.el9.x86_64.tar did the trick.
Now trying to install NCPA but there seems to be different versions. The ncpa-latest.el8.x86_64.rpm seems to be version ncpa-2.4.1-1 and has the services ncpa_listener and ncpa_passive, whereas ncpa-3.1.3-1.x86_64.rpm only has the service ncpa. Tried installing ncpa-3.1.1-1.x86_64.rpm (Had that version available) and it fails to start ncpa.service. Not sure which version should one deploy on remote hosts to communicate with Nagios xi 2024R1.3.3-1. Don't know why Nagios didn't include the NCPA agents in the offline tar.gz.
bbahn
Posts: 318
Joined: Thu Jan 12, 2023 5:42 pm

Re: Nagios xi Offline Installation Issue

Post by bbahn »

Hello @rlee8394,

It seems you're getting NCPA from the wrong location. If you're still pulling from the old assets.nagios.com location, you will be getting the wrong version. The most recent version can be found at https://www.nagios.org/ncpa/#downloads, which links to the updated assets files at https://assets.nagios.com/downloads/ncpa3/
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
rlee8394
Posts: 13
Joined: Thu Jan 30, 2025 12:02 pm

Re: Nagios xi Offline Installation Issue

Post by rlee8394 »

Yeah, I got ncpa-3.1.1-1.x86_64. Works fine except on systems where SELinux is running. I need to find a solution for the agent to run on systems running SELinux because we aren't allowed to disable it. Been banging my head against a wall on this issue.
huel02
Posts: 2
Joined: Wed Apr 09, 2025 4:37 am

Re: Nagios xi Offline Installation Issue

Post by huel02 »

What is the best NCPA version to install for compatibility with Nagios xi 2024R1.3.3-1, considering the differences in services between ncpa-latest.el8.x86_64.rpm and ncpa-3.1.3-1.x86_64.rpm?
justindev
Posts: 1
Joined: Mon May 05, 2025 3:49 am

Re: Nagios xi Offline Installation Issue

Post by justindev »

Regarding the SELinux issue with NCPA 3.x, you might want to try these steps:block blast

1. Check audit logs (ausearch -m avc -ts recent) to identify exactly which policies are being blocked.
2. Create a custom SELinux policy from the logs using audit2allow, for example:

Code: Select all

grep ncpa /var/log/audit/audit.log | audit2allow -M my_ncpa_policy
semodule -i my_ncpa_policy.pp
If issues persist, temporarily run the agent in permissive mode (setenforce 0) to verify if SELinux is indeed the culprit.
P.S.: Nagios xi offline bundles often exclude agents, likely due to license restrictions. As @bbahn suggested, downloading NCPA from the official site is recommended.