XI 5.5 bug?
Re: XI 5.5 bug?
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI 5.5 bug?
This upgrade is going to require internet access.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.
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
fiRe: XI 5.5 bug?
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.......scottwilkerson wrote:This upgrade is going to require internet access.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.
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI 5.5 bug?
I would have thought you would have gotten a little bit of output befor failing
Correctaenergy wrote:I'm going to have to put in firewall rules to allow the servers to access assets.nagios.com.......
Re: XI 5.5 bug?
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.
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.
-
danniiffxi
- Posts: 121
- Joined: Tue Jan 30, 2018 3:29 am
- Location: UK
Re: XI 5.5 bug?
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.
Returned result
Fair enough, I thought! So I continued to edit the upgrade script anyway!
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:
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
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 $?Code: Select all
ajaxterm: unrecognized service
error: package Ajaxterm is not installedCode: 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
#fiThe install used to stop at:
Code: Select all
Updating NRDP..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
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
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI 5.5 bug?
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
After that, there is a download from assets, and I believe that is the last thing that requires any Internet access
Code: Select all
No package shellinabox available.
Code: Select all
(
cd ./subcomponents/sshterminal
./install
)
-
danniiffxi
- Posts: 121
- Joined: Tue Jan 30, 2018 3:29 am
- Location: UK
Re: XI 5.5 bug?
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

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
#fiCode: Select all
(
cd ./subcomponents/sshterminal
./install
)-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI 5.5 bug?
Excellent. As the OP has confirmed the solution I will be locking this thread.
Thanks
Thanks