0-yum installation failing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

0-yum installation failing

Post by TSCAdmin »

Dear support,

0-yum script is failing after the rpms have been updated with the following error message:
Enabling RPMForge repo...
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
error: File not found by glob: rpmforge-release*.rpm
rm: cannot remove `rpmforge-release*.rpm': No such file or directory
ERROR: rpmforge-release RPM was not installed - exiting.
When I checked the script it seems that the URL for rpmforge-release is wrong, rpmrepo.org doesn't seem to exist.
0-yum.PNG
Could you please help with this? Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: 0-yum installation failing

Post by nscott »

Thats from the 2009 release, which is still posted, but is deprecated.

To fix this replace

Code: Select all

rpm -q rpmforge-release > /dev/null 2>&1
ret=$?
if [ $ret -ne 0 ]; then

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

Code: Select all

rpm -q rpmforge-release > /dev/null 2>&1
ret=$?
if [ $ret -ne 0 ]; then

        echo "Enabling RPMForge repo..."
        cd /tmp
        if [ -f rpmforge-release.html ]; then
                rm rpmforge-release.html
        fi
        if [ -f rpmforge-release*.rpm ]; then
                rm rpmforge-release*.rpm
        fi
        URL=$(curl -s http://repoforge.org/use/ | grep -o "http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-[0-9.-]*.$dist.rf.$basearch.rpm")
        wget "$URL"
        rpm -Uvh rpmforge-release*.rpm
        rm rpmforge-release*.rpm
        yum check-update
fi
That should allow the installer to install the RPMForge repo. I checked to make sure the EPEL repo would install and that looks fine.
Nicholas Scott
Former Nagios employee
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: 0-yum installation failing

Post by TSCAdmin »

nscott wrote:Thats from the 2009 release, which is still posted, but is deprecated.
now that's really strange. the scripts were working great until a month back.

just out of curiosity - do you plan to fix it in the nagios 2009 package? because i downloaded it once again and it seems it still contains the lines that i reported to be incorrect.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: 0-yum installation failing

Post by agriffin »

We do periodically make bugfixes to Nagios XI 2009, but I can't guarantee it will be in any specific timeframe.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: 0-yum installation failing

Post by nscott »

I'm currently uploading a fixed 2009 package with a fixed RPMForge install script.
Nicholas Scott
Former Nagios employee
Locked