New Install on Ubuntu 22.04

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
danderson

Re: New Install on Ubuntu 22.04

Post by danderson »

eloyd wrote: Wed Aug 07, 2024 4:26 pm So, funny thing. It looks like maybe the random MySQL password generator actually selected passwords the first time through, and then when trying to do it the second time through with the pref file updated, it tried to generate them again. Except it couldn't, because they were already specified. So the install finished, but Nagios could not connect to MySQL and it basically wasn't running.

Reverted back to pre-install snap and am trying again.
I manually set the chromium subcomponent install to fail and tried to replicate the MySQL issue but I did not encounter it.

Just curious, but when attempting the reinstall that encountered the MySQL password issues, did you also "re-untar" the tarball (if that makes any sense)? I'm asking because it seems like the generated passwords get stored inside of the xi-sys.cfg file, and only regenerate if they aren't inside.

Code: Select all

if [ -z "$nagiosxipass" ]; then
    nagiosxipass="$(tr -dc '[:alnum:]' < /dev/urandom | head -c 20)"
fi
echo "The MySQL nagiosxi password will be $nagiosxipass"
if ! ./xivar nagiosxipass "$nagiosxipass"; then
	echo "ERROR: Failed to update xi-sys.cfg with nagiosxi password - exiting." >&2
	exit 1
fi
So if you delete or replace the xi-sys.cfg file, for example, when you delete the nagiosxi folder created by untarring the package tarball and untar it again, then I could see that becoming an issue.

If this isn't what you did, then I guess I have some more investigation to do!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Install on Ubuntu 22.04

Post by eloyd »

Nope. Just updated the .pref file and re-ran ./fullinstall -n

It may have been user error to begin with. I do a lot of Nagios installs and I tend to "fire and forget" so maybe I wasn't paying attention the first/second/third time through. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
danderson

Re: New Install on Ubuntu 22.04

Post by danderson »

I will continue looking into it. I'm glad the original issue was fixed though!
pkb05
Posts: 2
Joined: Thu Oct 17, 2024 5:07 am

Re: New Install on Ubuntu 22.04

Post by pkb05 »

Hi eloyd,

I am having the same issue.
I am curious at what point you said you went back to a pre-install Snapshot to update the chromium_22.pref file.
I too did a snap recovery of the Ubuntu VM but as Nagios is not installed as I have a vanilla Ubuntu 22.04 LTS VM instance but the subcomponents/chromium/chromium_22.pref directory and the chromium_22.pref does not exist so how did you update this file before the install??

here is my setup
=================
Running Ubuntu 22.04 LTS under Proxmox
Linux Ubuntu Version 22.04 LTS
Using NAGIOSXI ver 2024R1.1.3 ISO for installation

Here is the error in the error logs I get
==========================================

95% way through the installation get the following error
Building Dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using an unstable ditribution that some required packages have not been created or been moved out of incomming.
The folloowing information may help to resolve this situation:
The following packages have unmet dependencies:

chromium: Depends: libopenjp2-7 (>=2.5.0) but 2.4.0-6ubuntu0.1 is to be installed
Depends: libtiff6 (>= 4.0.3) but 1.4.8+dfsg-3build1 is to be installed
Depends: libzstd1 (>= 1.5.2) but 1.4.8+dfsg-3build1 is to be installed
Recommends: chromium-sanbox but it is not going to be installed
Unable to correct problems, you have broken packages.
Error: subcomponent ' chromius' installation failed - exiting
Subcomponents installation failed - exiting
RESULT=1
If you require assistance with this issue, pLease include (install.log)

The script that failed was './A-subcomponents'

Installation Error
Installation Step Failed - exiting
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: New Install on Ubuntu 22.04

Post by eloyd »

OMG. That was like two months ago! :-) I'll have to go see what we did specifically, but I think it was: Install Ubuntu, download the XI tarball, untar it, and then edit the perf file as per viewtopic.php?p=358065#p358065 and went from there.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: New Install on Ubuntu 22.04

Post by jmichaelson »

Hi @pkb05. This issue should have been resolved as of Nagios XI 2024R1.2.1 released at the end of August. Try grabbing the latest download of XI (2024R1.3 was released on Tuesday) and run with that!
Please let us know if you have any other questions or concerns.

-Jason
pkb05
Posts: 2
Joined: Thu Oct 17, 2024 5:07 am

Re: New Install on Ubuntu 22.04

Post by pkb05 »

Jason,

Thanks version Nagios XI 2024R1.2.1 worked for me on Ubuntu 20.04 LTS

I have been a Nagios User and supporter in many IT Infrastructure roles since 2001 yes a long time.

Recently I have made the decision to ditch completely Microsoft Windows platform AI+COPILOT SPYWARE OS
Anyway that's another story

Many Thanks eloyd for responding also I did not try your solution but I am sure it would have worked also.

Once suggestion I really do wish Nagios would consider increasing the Free License limit to say 10 or 15 devices.
This then would give smaller companies and individuals the ability to really try Nagios out properly.
I think Nagios would get more business if they did this personally.
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: New Install on Ubuntu 22.04

Post by jmichaelson »

Glad to hear it! I'll make a note of your suggestion as well!
Please let us know if you have any other questions or concerns.

-Jason
Locked