Page 3 of 3
Re: XI 5.5 bug?
Posted: Fri Jun 29, 2018 1:03 pm
by aenergy
upgrade fails in the exact same spot it has every time. If the upgrade script needs to be able to launch out to the internet that's going to be a problem as my nagiosxi server doesn't have direct internet access.
Re: XI 5.5 bug?
Posted: Fri Jun 29, 2018 1:18 pm
by scottwilkerson
aenergy wrote:upgrade fails in the exact same spot it has every time. If the upgrade script needs to be able to launch out to the internet that's going to be a problem as my nagiosxi server doesn't have direct internet access.
This upgrade is going to require internet access.
However also, if it is stopping at the exact same spot are you sure you commented this section out?
Code: Select all
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
service ajaxterm stop
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
Re: XI 5.5 bug?
Posted: Fri Jun 29, 2018 2:34 pm
by aenergy
scottwilkerson wrote:aenergy wrote:upgrade fails in the exact same spot it has every time. If the upgrade script needs to be able to launch out to the internet that's going to be a problem as my nagiosxi server doesn't have direct internet access.
This upgrade is going to require internet access.
However also, if it is stopping at the exact same spot are you sure you commented this section out?
Code: Select all
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
service ajaxterm stop
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
I checked and that section is commented out. I'm going to have to put in firewall rules to allow the servers to access assets.nagios.com.......
Re: XI 5.5 bug?
Posted: Fri Jun 29, 2018 3:33 pm
by scottwilkerson
I would have thought you would have gotten a little bit of output befor failing
aenergy wrote:I'm going to have to put in firewall rules to allow the servers to access assets.nagios.com.......
Correct
Re: XI 5.5 bug?
Posted: Sat Jun 30, 2018 2:55 am
by roybad
I had the exact same issue. Stopped at the same place - I ran the bash file, line by line and it installed...
and how I regret it.
How, all my NRDP inbound alerts are treated each time as a new alert "Look I've recovered..".. "Loook I've recovered" (again and again)
I'm about to roll back to 5.4.1.13.
I can't see anuthing from my logs to suggest anything is wrong but 5.5 isn't ready for prime time.
Re: XI 5.5 bug?
Posted: Mon Jul 02, 2018 2:41 am
by danniiffxi
Hi Scott
I trust you had a good weekend? I just got back into the office and I have run through the 3 pages but I am still having problems. The install is in the default location, we change nothing when installing to make updating easier.
Worth noting that this is our test box so it does not matter if i break it!
Here is what I have tried so far.
Code: Select all
service ajaxterm stop
rpm -e Ajaxterm
echo $?
Returned result
Code: Select all
ajaxterm: unrecognized service
error: package Ajaxterm is not installed
Fair enough, I thought! So I continued to edit the upgrade script anyway!
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
I noticed direct internet before I created this thread so I had already bypassed our Firewall (We use Cisco and have a URL that sysadmins can sign into to bypass the Firewall, so I did this via Lynx Browser) which gives me unrestricted access to the internet. I am also able to download the wkhtmltopdf.rpm from
https://assets.nagios.com/downloads/nag ... x86_64.rpm via Lynx without issue, although I did not manually download the package, i left that up to the script.
The install used to stop at:
It now gets this far:
Code: Select all
Updating NRDP..
Installing SSH Terminal...
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
No package shellinabox available.
Error: Nothing to do
So it looks like it is unable to find the Shellinabox package even though it has internet access and I can manually download the file!
TL:DR I have net access, I can download the RPM from the Nagios box using lynx browser, Ajaxterm is not installed, I still edited the script, it gets one step further and still fails. Attached new upgrade log!
EDIT: Typo
Re: XI 5.5 bug?
Posted: Mon Jul 02, 2018 9:11 am
by scottwilkerson
Well now it is trying to install shellinabox via yum but you don't have that package available
TO skip this you would need to remove the following
Code: Select all
(
cd ./subcomponents/sshterminal
./install
)
After that, there is a download from assets, and I believe that is the last thing that requires any Internet access
Re: XI 5.5 bug?
Posted: Mon Jul 02, 2018 10:04 am
by danniiffxi
Thank you Scott, its working perfectly now.
So in summery
1. you need an active internet connection that can access
https://assets.nagios.com/downloads/nag ... x86_64.rpm
2. if like our company if you disable Repo's for security reasons you need to enable them as Shellinabox is installed using yum.
2.1 alternatively comment out the following around line 1175 on 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
Code: Select all
(
cd ./subcomponents/sshterminal
./install
)
Re: XI 5.5 bug?
Posted: Mon Jul 02, 2018 11:09 am
by scottwilkerson
Excellent. As the OP has confirmed the solution I will be locking this thread.
Thanks