Page 2 of 2

Re: New Install on Ubuntu 22.04

Posted: Mon Aug 12, 2024 12:37 pm
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!

Re: New Install on Ubuntu 22.04

Posted: Mon Aug 12, 2024 12:44 pm
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. :-)

Re: New Install on Ubuntu 22.04

Posted: Tue Aug 13, 2024 4:32 pm
by danderson
I will continue looking into it. I'm glad the original issue was fixed though!

Re: New Install on Ubuntu 22.04

Posted: Thu Oct 17, 2024 6:10 am
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

Re: New Install on Ubuntu 22.04

Posted: Thu Oct 17, 2024 10:09 am
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.

Re: New Install on Ubuntu 22.04

Posted: Thu Oct 17, 2024 11:46 am
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!

Re: New Install on Ubuntu 22.04

Posted: Fri Oct 18, 2024 7:06 pm
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.

Re: New Install on Ubuntu 22.04

Posted: Mon Oct 21, 2024 11:48 am
by jmichaelson
Glad to hear it! I'll make a note of your suggestion as well!