Nagios XI upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Nagios XI upgrade

Post by smapple »

Hi,

I am trying to upgrade via web. I have taken the back using Admin > local Backup Archives

However during the progress, I get the following messages and upgrade fails:

Resolving Dependencies
--> Running transaction check
---> Package wkhtmltox.x86_64 1:0.12.5-1.centos6 will be installed
--> Processing Dependency: xorg-x11-fonts-75dpi for package: 1:wkhtmltox-0.12.5-1.centos6.x86_64
--> Finished Dependency Resolution
Error: Package: 1:wkhtmltox-0.12.5-1.centos6.x86_64 (/wkhtmltox-0.12.5.el6.x86_64)
Requires: xorg-x11-fonts-75dpi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

It suggested manual upgrade.
I have read the instructions. However this is in production so need guidance. Can you help ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI upgrade

Post by scottwilkerson »

you are going to need to install xorg-x11-fonts-75dpi which for some reason the installer was not able to do that

Can you run

Code: Select all

yum install xorg-x11-fonts-75dpi -y
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade

Post by smapple »

[sadmin@nagios3 ~]$ sudo yum install xorg-x11-fonts-75dpi -y
[sudo] password for sadmin:
Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security,
: subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Setting up Install Process
No package xorg-x11-fonts-75dpi available.
Error: Nothing to do
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade

Post by smapple »

https://rpmfind.net/linux/rpm2html/sear ... onts-75dpi

which is the right dependency here?
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade

Post by smapple »

Hi, Can you pls let me know which one is the right dependency? I am checking everything before I do on production.

Thanks!
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade

Post by smapple »

Hello team,

Are you able to see my messages?
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade

Post by smapple »

cd ./src/; make install-plugin
make[1]: Entering directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 startup/default-init /etc/init.d/nrpe
Starting nrpe
NRPE installed OK
Updating NRDP..

IT still gave me an error " not complete, do it manually"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI upgrade

Post by scottwilkerson »

Sorry for the trouble

This issue will be fixed in the next release of Nagios XI. As a "workaround", comment out the following section in the "upgrade" script:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
    rpm -e Ajaxterm
    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
    rm -f $proddir/html/admin/ajaxterm.php
fi
so that it would look like this:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
#    rpm -e Ajaxterm
#    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
#    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
#    rm -f $proddir/html/admin/ajaxterm.php
#fi
Save, exit, and rerun the upgrade script:

Code: Select all

cd /tmp/nagiosxi
./upgrade
Save, exit, and rerun the upgrade script:

Code: Select all

cd /tmp/nagiosxi
./upgrade
Last edited by scottwilkerson on Tue Jul 10, 2018 3:18 pm, edited 1 time in total.
Reason: fix incorrect code
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked