XI 5.5 bug?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: XI 5.5 bug?

Post by scottwilkerson »

@aenergy can you answer this?
scottwilkerson wrote:Can you tell me if your install directory has this file in it?

Code: Select all

mysql.5500.updated
Just trying to determine where it is failing
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
aenergy
Posts: 11
Joined: Wed Jan 21, 2015 10:25 am

Re: XI 5.5 bug?

Post by aenergy »

scottwilkerson wrote:@aenergy can you answer this?
scottwilkerson wrote:Can you tell me if your install directory has this file in it?

Code: Select all

mysql.5500.updated
Just trying to determine where it is failing
I do have that file in the directory I ran the upgrade from, but the file is empty.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: XI 5.5 bug?

Post by scottwilkerson »

I think we have narrowed this down

Can you run the following

Code: Select all

service ajaxterm stop 
rpm -e Ajaxterm
echo $?
then once complete run the upgrade again

Code: Select all

./upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
aenergy
Posts: 11
Joined: Wed Jan 21, 2015 10:25 am

Re: XI 5.5 bug?

Post by aenergy »

scottwilkerson wrote:I think we have narrowed this down

Can you run the following

Code: Select all

service ajaxterm stop 
rpm -e Ajaxterm
echo $?
then once complete run the upgrade again

Code: Select all

./upgrade

Ajaxterm not installed on my server.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: XI 5.5 bug?

Post by scottwilkerson »

That's weird.
Can you run the following and report the results to help us solve this for others

Code: Select all

rpm -q Ajaxterm
echo $?
Then you open the upgrade script and comment this section out (about line 1175)

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
making it 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
Then save and proceed with the upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
aenergy
Posts: 11
Joined: Wed Jan 21, 2015 10:25 am

Re: XI 5.5 bug?

Post by aenergy »

scottwilkerson wrote:That's weird.
Can you run the following and report the results to help us solve this for others

Code: Select all

rpm -q Ajaxterm
echo $?
Then you open the upgrade script and comment this section out (about line 1175)

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
making it 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
Then save and proceed with the upgrade

[root@nagiosxit ~]# rpm -q Ajaxterm
package Ajaxterm is not installed
[root@nagiosxit ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: XI 5.5 bug?

Post by scottwilkerson »

sorry, could you run these back to back

Code: Select all

rpm -q Ajaxterm
echo $?
Also, do let us know if the upgrade completed sucessfully
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
aenergy
Posts: 11
Joined: Wed Jan 21, 2015 10:25 am

Re: XI 5.5 bug?

Post by aenergy »

So it appears that the upgrade has to connect to assets.nagios.com....
Installing wkhtmltopdf and wkhtmltoimage...
--2018-06-29 12:41:39-- https://assets.nagios.com/downloads/nag ... x86_64.rpm
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:443...
aenergy
Posts: 11
Joined: Wed Jan 21, 2015 10:25 am

Re: XI 5.5 bug?

Post by aenergy »

scottwilkerson wrote:sorry, could you run these back to back

Code: Select all

rpm -q Ajaxterm
echo $?
Also, do let us know if the upgrade completed sucessfully

[root@nagiosxit nagiosxi]# rpm -q Ajaxterm
package Ajaxterm is not installed
[root@nagiosxit nagiosxi]# echo $?
1
[root@nagiosxit nagiosxi]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: XI 5.5 bug?

Post by scottwilkerson »

Thanks.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked