Nagiosxi trial installation problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Al-Tri
Posts: 4
Joined: Fri Feb 05, 2021 3:39 am

Nagiosxi trial installation problem

Post by Al-Tri »

Hi,
I have tried to install nagiosxi with a trial license.
I followed the following installation guide : https://assets.nagios.com/downloads/nag ... jMQAvD_BwE

In my current configuration, I cannot reach the internet network, so I choosed the offline installation guide.
My setup:
- VM in virtualbox (for instance).
- Centos 7.7

So, I download nagiosxi-5.8.1-1.el7.x86_64.tar.gz installation package, and untar in a repository as describe in the installation manual.
I started the ./fullinstall and all packages are well installed without any error message.
I restarted the httpd server.
I lauched a firefox navigator and tried to reach the following link:

1 - http://<my machine>/nagiosxi ->the address does exist.
2 - http://<my machine>/nagios -> the address exists and request me a password, I entered 'root' and 'nagiosxi' but I have the following error message:
" Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log."

If I try to launch the service nagios, the following error message is raised:
"Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory"

I'm stuck
Thank you for your support
Al-Tri
Posts: 4
Joined: Fri Feb 05, 2021 3:39 am

Re: Nagiosxi trial installation problem

Post by Al-Tri »

I progress in my installation (but the steps hereafter are not in the installation manual):
error msg: "Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permission bits. Proceeding anyway."
chmod a-x /usr/lib/systemd/system/nagios.service

another error in the file /etc/httpd/conf.d/nagios.conf
Twice the file /usr/local/nagiosxi/etc/htpasswd.users is referenced but does not exist.

In fact only the repository /usr/local/nagios/etc exist, I changed the file reference in the nagios.conf file.

Even if the repository /usr/local/nagios/etc exist, the file htpasswd.users does not.
I create it with following command:
htpasswd -c /usr/local/nagios/etc/htpasswd.users root

Now I can connect the web access:
http://<mymachin>/nagios/
I can navigate in the nagios site, but following errors pop-up:
"Whoops!
Error: Could not read object configuration data!"
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagiosxi trial installation problem

Post by ssax »

If all those things were missing it likely did not get installed. Please attach your /tmp/xi-install.log so we can review what occurred.

What is the output of these commands?

Code: Select all

rpm -qa | grep nagiosxi
sestatus
Al-Tri
Posts: 4
Joined: Fri Feb 05, 2021 3:39 am

Re: Nagiosxi trial installation problem

Post by Al-Tri »

Hello,
Thank you for your mail, it solves my installation problem.

When you asked me to paste the file content of /tmp/xi-install.log, I saw that an installation error occurs on the /tmp repository.
In fact, /tmp partition is with 'noexec' mount option in my system.
I switched to 'exec' just for nagiosxi installation and switched back to 'noexec'
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagiosxi trial installation problem

Post by ssax »

That's great to hear, thank you for posting your resolution! Let us know when we're okay to mark this as resolve and lock the topic.
Al-Tri
Posts: 4
Joined: Fri Feb 05, 2021 3:39 am

Re: Nagiosxi trial installation problem

Post by Al-Tri »

I'm okay to mark that my problem is resolved.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagiosxi trial installation problem

Post by scottwilkerson »

Al-Tri wrote:I'm okay to mark that my problem is resolved.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked