Where can I download a previous version of NagiosIX..?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mc1903
Posts: 9
Joined: Fri May 21, 2010 11:22 am

Where can I download a previous version of NagiosIX..?

Post by mc1903 »

Hi,

I am trying a clean manual install of the latest 2009R1.3B using the download from http://assets.nagios.com/downloads/nagi ... est.tar.gz but I am having issues with the first command ./0-yum...

It seems to have been saved/edited in a DOS format, as I get the folowing error when I try to run it:

Code: Select all

[root@nagiosxi nagiosxi]# ./0-yum
-bash: ./0-yum: /bin/sh^M: bad interpreter: No such file or directory
I have fixed it using vi [:set fileformat=unix] and I can now get it to start installing/downloading packages... however it then subsequently fails:

Code: Select all

[root@nagiosxi nagiosxi]# ./0-yum
32-bit system detected, continuing normally
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.ukhost4u.com
 * base: mirror.ukhost4u.com
 * extras: mirror.ukhost4u.com
 * updates: mirror.ukhost4u.com
addons                                                   |  951 B     00:00
base                                                     | 2.1 kB     00:00
dag                                                      | 1.1 kB     00:00
dag/primary                                              | 2.2 MB     00:10
dag                                                                 10472/10472
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package cadaver.i386 0:0.22.5-1.el5.rf set to be updated
---> Package dnsmasq.i386 0:2.55-1.el5.rf set to be updated
---> Package iso-codes.noarch 0:1.0a-1.el5.rf set to be updated
---> Package lftp.i386 0:4.0.10-1.el5.rf set to be updated
--> Processing Dependency: perl(DBI) for package: lftp
---> Package libwpd.i386 0:0.8.14-1.el5.rf set to be updated
---> Package mtr.i386 2:0.80-1.el5.rf set to be updated
---> Package rsync.i386 0:3.0.7-1.el5.rf set to be updated
---> Package syslinux.i386 0:4.02-1.el5.rf set to be updated
--> Processing Dependency: perl(Crypt::PasswdMD5) for package: syslinux
--> Processing Dependency: perl(Digest::SHA1) for package: syslinux
---> Package udftools.i386 0:1.0.0b3-3.el5.rf set to be updated
--> Running transaction check
---> Package perl-Crypt-PasswdMD5.noarch 0:1.3-1.2.el5.rf set to be updated
---> Package perl-DBI.i386 0:1.611-1.el5.rf set to be updated
---> Package perl-Digest-SHA1.i386 0:2.12-2.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch         Version                Repository
                                                                           Size
================================================================================
Updating:
 cadaver                    i386         0.22.5-1.el5.rf        dag       159 k
 dnsmasq                    i386         2.55-1.el5.rf          dag       238 k
 iso-codes                  noarch       1.0a-1.el5.rf          dag       1.5 M
 lftp                       i386         4.0.10-1.el5.rf        dag       2.1 M
 libwpd                     i386         0.8.14-1.el5.rf        dag       1.5 M
 mtr                        i386         2:0.80-1.el5.rf        dag        85 k
 rsync                      i386         3.0.7-1.el5.rf         dag       368 k
 syslinux                   i386         4.02-1.el5.rf          dag       2.1 M
 udftools                   i386         1.0.0b3-3.el5.rf       dag        98 k
Installing for dependencies:
 perl-Crypt-PasswdMD5       noarch       1.3-1.2.el5.rf         dag       9.9 k
 perl-DBI                   i386         1.611-1.el5.rf         dag       887 k
 perl-Digest-SHA1           i386         2.12-2.el5.rf          dag        74 k

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade       9 Package(s)

Total download size: 9.0 M
Downloading Packages:
(1/12): perl-Crypt-PasswdMD5-1.3-1.2.el5.rf.noarch.rpm   | 9.9 kB     00:00
(2/12): perl-Digest-SHA1-2.12-2.el5.rf.i386.rpm          |  74 kB     00:00
(3/12): mtr-0.80-1.el5.rf.i386.rpm                       |  85 kB     00:00
(4/12): udftools-1.0.0b3-3.el5.rf.i386.rpm               |  98 kB     00:00
(5/12): cadaver-0.22.5-1.el5.rf.i386.rpm                 | 159 kB     00:00
(6/12): dnsmasq-2.55-1.el5.rf.i386.rpm                   | 238 kB     00:01
(7/12): rsync-3.0.7-1.el5.rf.i386.rpm                    | 368 kB     00:01
(8/12): perl-DBI-1.611-1.el5.rf.i386.rpm                 | 887 kB     00:04
(9/12): iso-codes-1.0a-1.el5.rf.noarch.rpm               | 1.5 MB     00:07
(10/12): libwpd-0.8.14-1.el5.rf.i386.rpm                 | 1.5 MB     00:07
(11/12): lftp-4.0.10-1.el5.rf.i386.rpm                   | 2.1 MB     00:09
(12/12): syslinux-4.02-1.el5.rf.i386.rpm                 | 2.1 MB     00:10
--------------------------------------------------------------------------------
Total                                           207 kB/s | 9.0 MB     00:44
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : libwpd                                                  1/21
  Installing     : perl-Digest-SHA1                                        2/21
  Installing     : perl-DBI                                                3/21
  Installing     : perl-Crypt-PasswdMD5                                    4/21
  Updating       : lftp                                                    5/21
  Updating       : mtr                                                     6/21
  Updating       : dnsmasq                                                 7/21
  Updating       : rsync                                                   8/21
  Updating       : cadaver                                                 9/21
  Updating       : syslinux                                               10/21
  Updating       : udftools                                               11/21
  Updating       : iso-codes                                              12/21
  Cleanup        : mtr                                                    13/21
  Cleanup        : dnsmasq                                                14/21
  Cleanup        : rsync                                                  15/21
  Cleanup        : cadaver                                                16/21
  Cleanup        : syslinux                                               17/21
  Cleanup        : lftp                                                   18/21
  Cleanup        : udftools                                               19/21
  Cleanup        : libwpd                                                 20/21
  Cleanup        : iso-codes                                              21/21

Dependency Installed:
  perl-Crypt-PasswdMD5.noarch 0:1.3-1.2.el5.rf  perl-DBI.i386 0:1.611-1.el5.rf
  perl-Digest-SHA1.i386 0:2.12-2.el5.rf

Updated:
  cadaver.i386 0:0.22.5-1.el5.rf           dnsmasq.i386 0:2.55-1.el5.rf
  iso-codes.noarch 0:1.0a-1.el5.rf         lftp.i386 0:4.0.10-1.el5.rf
  libwpd.i386 0:0.8.14-1.el5.rf            mtr.i386 2:0.80-1.el5.rf
  rsync.i386 0:3.0.7-1.el5.rf              syslinux.i386 0:4.02-1.el5.rf
  udftools.i386 0:1.0.0b3-3.el5.rf

Complete!
Installing Dag repo...
Enabling EPEL repo...
Retrieving http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
error: skipping http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm - transfer failed - Unknown or unexpected error
[root@nagiosxi nagiosxi]#
I would like to download & test 2009R1.2 as I have sucessfully manually installed it in the recent past, but I have 'misplaced' the downloaded file... can someone please let me know the link to the old version(s)...

Any help will be great...

Many thanks

mc1903
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Where can I download a previous version of NagiosIX..?

Post by tonyyarusso »

Rather than trying to use an old release, just replace 0-yum with this:

Code: Select all

#!/bin/sh

##########################################
# ENABLE 64-bit INSTALLS
##########################################

if [ $(uname -m) == "x86_64" ]; then
	echo '64-bit system detected, modifying yum'
	echo '' >> /etc/yum.conf
	echo '# Modifications by Nagios XI installer' >> /etc/yum.conf
	echo 'multilib_policy=best' >> /etc/yum.conf
	echo 'exclude=*.i?86' >> /etc/yum.conf
	yum -y remove \*.i?86
	basearch="x86_64"
else
	echo '32-bit system detected, continuing normally'
	basearch="i386"
fi
# Make sure everything needed is still present, and we should be working 
# with a current system anyway
yum -y update
dist="el5"

##########################################
# INSTALL YUM REPOS
##########################################

echo "Enabling RPMForge repo..."
cd /tmp
if [ -f rpmforge-release.html ]; then
	rm rpmforge-release.html
fi
wget -c -q -O rpmforge-release.html http://rpmrepo.org/RPMforge/Using
LINE=$(grep \<pre\> Using | sed 's/.*<pre>wget\ \(http.*rpm\)/\1/')
URL=$(echo $LINE | sed "s/\$dist/$dist/" | sed "s/\$arch/$basearch/"
rpm -Uvh $URL

echo "Enabling EPEL repo..."
if [ -f epel-release.html ]; then
	rm epel-release.html
fi
wget -c -q http://download.fedora.redhat.com/pub/epel/5/i386/repoview/epel-release.html
LINE=$(grep epel-release.*\.rpm epel-release.html)
RELPATH=$(echo $LINE | sed 's/.*href="\(.*.rpm\)".*/\1/')
MATCH=$(echo | awk '
{ print index(tolower("'"${RELPATH}"'"), "http")
}
')
if [ "$MATCH" -ne 0 ]; then
	URL=$RELPATH
else
	URL="http://download.fedora.redhat.com/pub/epel/5/i386/repoview/$RELPATH"
fi
rpm -Uvh $URL
rm epel-release.html
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
mc1903
Posts: 9
Joined: Fri May 21, 2010 11:22 am

Re: Where can I download a previous version of NagiosIX..?

Post by mc1903 »

Hi Tony,

Thanks for your help... I tried the replacement code for 0-yum as you suggested, but it now fails as follows:

Code: Select all

[root@nagiosxi nagiosxi]# ./0-yum
32-bit system detected, continuing normally
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.ukhost4u.com
 * base: mirror.ukhost4u.com
 * extras: mirror.ukhost4u.com
 * updates: mirror.ukhost4u.com
Setting up Update Process
No Packages marked for Update
Enabling RPMForge repo...
grep: Using: No such file or directory
./0-yum: line 35: unexpected EOF while looking for matching `)'
./0-yum: line 56: syntax error: unexpected end of file
[root@nagiosxi nagiosxi]#
Any ideas..? Perhaps it would be better to download the old version..?

Is this a known issue with 0-yum in the 2009R1.3B release..?

Thanks

Martin
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Where can I download a previous version of NagiosIX..?

Post by tonyyarusso »

Bah, my bad. Replace

Code: Select all

LINE=$(grep \<pre\> Using | sed 's/.*<pre>wget\ \(http.*rpm\)/\1/')
with

Code: Select all

LINE=$(grep \<pre\> rpmforge-release.html | sed 's/.*<pre>wget\ \(http.*rpm\)/\1/')
.

Yeah, it's a known issue.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked