Installation error on Ubuntu22.04.05 Azure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
sgomeztd
Posts: 47
Joined: Tue Apr 30, 2019 11:00 am

Installation error on Ubuntu22.04.05 Azure

Post by sgomeztd »

I'm trying to install nagiosxi on a new VM in Azure using Ubuntu 22.04.05 by downloading the latest tar file and running fullinstall -n but I'm getting an error on step 13-installxi that I narrowed down to this task # Install the Manage MIBs database (XI 5.6) php ./nagiosxi/basedir/scripts/initialize_mibs.php

these are the last lines of the installer.log

Code: Select all

Editing snmptt.ini
Creating a test file for NXTI Test Events to write to

Modifying permissions

Restarting snmptt
Restarting snmptrapd
<h3>Database Error</h3>Access denied for user 'nagiosxi'@'localhost' (using password: YES)<p>Run the following from the CLI as root to attempt to repair the DB:<br><pre>/usr/local/nagiosxi/
scripts/repair_databases.sh</pre></p>Nagios XI base files installed OK
The user www-data cannot use this program (crontab)
As I have created the VM with terraform I tried to delete it and re-create 3 times but it always end up failing on the same step. Is like the password that the installer configures for nagiosxi DDBB is not being using by that php script because if I get the nagiosxi password from /usr/local/nagiosxi/html/config.inc.php I can successfully connect to the db with mysql -u nagiosxi -pThePassword
sgomeztd
Posts: 47
Joined: Tue Apr 30, 2019 11:00 am

Re: Installation error on Ubuntu22.04.05 Azure

Post by sgomeztd »

Finally figured out that I was not playing proper attention to the error message. Despite the "Database Error", that step is executed correctly and what was failing was the next step 14 for setting up cron jobs because I'm using a VM with CIS LVL1 with does not allow regular users to have cron so I had to add www-data (apache user) into /etc/cron.allow to make the install work
DoubleDoubleA
Posts: 199
Joined: Thu Feb 09, 2017 5:07 pm

Re: Installation error on Ubuntu22.04.05 Azure

Post by DoubleDoubleA »

Awesome!
Post Reply