Page 1 of 1

Installing NagiosXi on a Red Hat 6 64bit OS

Posted: Tue May 29, 2012 5:31 pm
by ecarrasq
NRPE on 64bit Linux OS

Postby ecarrasq ยป Tue May 29, 2012 4:24 pm
System Info
Linux Distribution and version?

Linux 2.6.32-220.17.1.el6.x86_64 #1 SMP Thu Apr 26 13:37:13 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

32 or 64bit?

64 bit

VMware Image or Manual Install of XI?

Manual

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

No.



Issue


In order to get the NagiosXi to fully install on a Red Hat 6 64bit OS, we had to do the following (please see the attachment). According to Red Hat support, php-common 32bit is not supported and will not work on a 64bit Red Hat OS. Was there something I missed in the initial instructions, for installing NagiosXi manually on to a 64bit Linux OS? Are there any additional steps needed to get NagiosXi running smoothly on a 64bit Linux OS?

Thank you for your time,
Eddie

Re: Installing NagiosXi on a Red Hat 6 64bit OS

Posted: Wed May 30, 2012 1:43 pm
by scottwilkerson
I'm not exactly sure how or why you would be getting 32 bit versions of anything on your machines, we have test builds that run several times a day on clean RHEL 64bit machines and haven't seen any problems like this...

Re: Installing NagiosXi on a Red Hat 6 64bit OS

Posted: Wed May 30, 2012 3:17 pm
by ecarrasq
Perfect! That's all I needed to hear, for now. I have to bring this up to our Linux Admin that brought up this question.

Thanks!

Re: Installing NagiosXi on a Red Hat 6 64bit OS

Posted: Wed May 30, 2012 4:53 pm
by ecarrasq
The install for NagiosXi works just fine; However, when we go do a "yum update" we get errors due to it downloading 32bit versions of files. I believe it's because on one of the install files "0-yum" it asks if you have a "el5", but not a "el6" 64bit. We are running Red Hat 6 64bit, not Red Hat 5 64bit.
0-yum
##########################################
# ENABLE 64-bit INSTALLS
##########################################

if [ "$dist $arch" = "el5 x86_64" ]; then
if [ "$INTERACTIVE" != False ]; then
cat <<-EOF
****************************************************************
WARNING: This script will remove existing RPMs installed on this
system, which may result in existing applications being
removed!
****************************************************************
EOF
read -p "Do you want to continue? [y/N]: " res
echo "RESP: $res"
if [ "$res" != "y" ]; then
echo "Exiting"
exit 0
fi
fi

echo "64-bit system detected, modifying yum"
cat >>/etc/yum.conf <<-EOF

# Modifications by Nagios XI installer
multilib_policy=best
exclude=*.i?86
EOF
# 32-bit librsvg2 must be removed before 32-bit gtk2 to avoid armageddon
if rpm -q librsvg2.i386 >/dev/null; then
yum -y remove librsvg2.i386
fi
yum -y remove \*.i?86
fi
Following the above, there maybe some other scripts in the install process to update to include the
if [ "$dist $arch" = "el5 x86_64" ]; then
Did we hit gold with this one?

Thanks for looking into this, as I believe others would experience the same on RH6_64bit.... maybe?

Re: Installing NagiosXi on a Red Hat 6 64bit OS

Posted: Thu May 31, 2012 7:58 am
by scottwilkerson
What this is doing is removing 32 bit packages that are pre-installed in some el5 machines.

They aren't preinstalled on el6 machines so there is no need to check for them....