Error in install scripts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Mark de Bokx
Posts: 43
Joined: Wed Jul 07, 2010 1:59 am

Error in install scripts

Post by Mark de Bokx »

All install versions try to use this:

# Needed for rpmdevtools
echo "Enabling EPEL repo..."
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm

Unfortunately this rpm does not live there anymore .... (you get a 404 not found) latest is epel-release-5-4.noarch.rpm.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Error in install scripts

Post by tonyyarusso »

This is true. However, that line of code is also redundant and unnecessary now, as the proper file is fetched in 0-yum, so there's no reason for 1-prerequisites to try again, so you can ignore it for the time being.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tairline
Posts: 25
Joined: Mon Sep 20, 2010 2:33 am

Re: Error in install scripts

Post by tairline »

Thanks.
tzheng
Posts: 12
Joined: Wed Sep 29, 2010 2:00 pm

Re: Error in install scripts

Post by tzheng »

hi,

i have the same issue. 0-yum script bummed out with that error. so now i ignore that, following your advise, i do the first step and get following error message. i am using RHEL4U8.

[root@drnagios nagiosxi]# ./1-prereqs
Retrieving http://download.fedora.redhat.com/pub/e ... noarch.rpm
error: skipping http://download.fedora.redhat.com/pub/e ... noarch.rpm - transfer failed - Unknown or unexpected error
Options Error: option -q not recognized
Options Error: option -q not recognized

Usage: yum [options] <update | upgrade | install | info | remove | list |
clean | provides | search | check-update | groupinstall | groupupdate |
grouplist >

Options:
-c [config file] - specify the config file to use
-e [error level] - set the error logging level
-d [debug level] - set the debugging level
-y answer yes to all questions
-t be tolerant about errors in package commands
-R [time in minutes] - set the max amount of time to randomly run in.
-C run from cache only - do not update the cache
--installroot=[path] - set the install root (default '/')
--version - output the version of yum
--exclude=some_pkg_name - packagename to exclude - you can use
this more than once
--download-only - only download packages - do not run the transaction
-h, --help this screen

Installing prerequisites...
Cannot find any conf file.
Cannot find any conf file.
Cannot find any conf file.
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
downloading HTML_Template_IT-1.3.0.tgz ...
Starting to download HTML_Template_IT-1.3.0.tgz (23,309 bytes)
........done: 23,309 bytes
install ok: channel://pear.php.net/HTML_Template_IT-1.3.0
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
Some packages will fail to install, this is normal.
Options Error: option -q not recognized
mkoehler
Posts: 5
Joined: Wed Sep 29, 2010 2:11 pm

Re: Error in install scripts

Post by mkoehler »

That is because yum isn't original supported on rhel4 by RedHat.
Your version of yum doesn't accept the -q (quit) option.
just edit the 1-prereqs file and replace the yum -yq entry's with yum -y.

or rebuild yum with a newer version.

Kind regards,
Menn0

PS are you sure your 0-yum script jumped out with that error?
Because it seems that in the current xi-latest.tar.gz file the 0-yum is build on windows!!!
It is filled up with controlM, so first do a dos2unix 0-yum before executing it
tzheng
Posts: 12
Joined: Wed Sep 29, 2010 2:00 pm

Re: Error in install scripts

Post by tzheng »

ok i was able to overcome all the previous problem. now i am coming to step:

[root@drnagios nagiosxi]# ./B-installxi
Creating product directory...
Adding password for user nagiosadmin
psql: FATAL: database "postgres" does not exist
psql: FATAL: database "postgres" does not exist
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
psql: FATAL: database "nagiosxi" does not exist
psql: FATAL: database "nagiosxi" does not exist
You can usually ignore SQL import error/warning messages.
Step completed.


why it says database postgres does not exist? can i ignore that?

thanks,
tony z
mkoehler
Posts: 5
Joined: Wed Sep 29, 2010 2:11 pm

Re: Error in install scripts

Post by mkoehler »

nope, you can't ignore that.
can you run as root:
#su - postgres
then
$psql
then
select datname from pg_database;
Do you see that the postgres database is available?
I think something went wrong with step 3-dbservers
If not available can you run:
/etc/init.d/postgresql initdb
and rerun the B-installxi

Kind regards,
Menn0
tzheng
Posts: 12
Joined: Wed Sep 29, 2010 2:00 pm

Re: Error in install scripts

Post by tzheng »

ok i end up just doing the VMware install option instead of manual install. too much headaches and lock of documentation you know.

anyway, now i run into new issue:

i need to add snmptrapsender as component to my newly installed nagiosxi. but there is no instructions. i login in to the nagiosxi and doing GUI component install it does not work. i ftp files to nagiosxi and put in tmp, unzip and run install script and give me these errors:

[root@localhost snmptrapsender]# ./installprereqs.sh
Installing required components...
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... epo=addons error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... 86&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... epo=extras error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... po=updates error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
* addons: repo.genomics.upenn.edu
* base: centos.omnispring.com
* extras: centos-distro.cavecreek.net
* updates: centos.mirror.netriplex.com
ftp://repo.genomics.upenn.edu/centos/5. ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://centos.cs.wisc.edu/pub/mirrors/l ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://ftp.linux.ncsu.edu/pub/CentOS/5. ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.clarkson.edu/centos/5.4/a ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.its.uidaho.edu/pub/centos ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.unl.edu/centos/5.4/addons ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.cat.pdx.edu/centos/5.4/a ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.greenmountainaccess.net/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.versaweb.com/centos/5.4/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://updates.interworx.info/centos/5. ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://centos.omnispring.com/5.4/os/i38 ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://linux.mirrors.es.net/centos/5.4/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.fdcservers.net/centos/5.4 ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.its.uidaho.edu/pub/centos ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.san.fastserv.com/pub/linu ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.stanford.edu/yum/pub/cent ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.umoss.org/centos/5.4/os/i ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.web-ster.com/centos/5.4/o ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.greenmountainaccess.net/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.igsobe.com/centos/5.4/os ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://apt.sw.be/redhat/el5/en/i386/dag ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://centos-distro.cavecreek.net/cent ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://centos.eecs.wsu.edu/5.4/extras/i ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://ftp.osuosl.org/pub/centos/5.4/ex ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.anl.gov/pub/centos/5.4/ex ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.cogentco.com/pub/linux/ce ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.fdcservers.net/centos/5.4 ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.icpl.org/centos/5.4/extra ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.newnanutilities.org/pub/c ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.netdna.com/centos/5.4/ex ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirrors.serveraxis.net/centos/5. ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://centos.mirror.netriplex.com/5.4/ ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.cogentco.com/pub/linux/ce ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.fdcservers.net/centos/5.4 ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.newnanutilities.org/pub/c ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.nexcess.net/CentOS/5.4/up ... repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
http://mirror.san.fastserv.com/pub/linux/
tzheng
Posts: 12
Joined: Wed Sep 29, 2010 2:00 pm

Re: Error in install scripts

Post by tzheng »

i am sorry i am a newbie and have so much questions. but how do i make it use the other mirror? this is what the install script says:

#!/bin/sh


componentdir=/usr/local/nagiosxi/html/includes/components/snmptrapsender

# Install required rpms
echo "Installing required components..."
yum install net-snmp net-snmp-utils net-snmp-devel -y

pushd $componentdir

# Install MIBS
echo "Installing MIBs..."
cp mibs/*.txt /usr/share/snmp/mibs/

# Write installed file/flat
touch installed.ok

popd

echo "==============="
echo "SETUP COMPLETED"
echo "==============="
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Error in install scripts

Post by mmestnik »

We don't have the resources to fully support issues with CentOS and/or RedHat. You should get assistance with yum and rpm from the CentOS community.

It looks like either the mirrors are having DNS issues or that your host is and has been having trouble accessing the internet. We see this from time to time where servers are unable to perform upgrades or software installations because of firewall policy. We are working on helping to create working proxy server configurations.

If you do plan on configuring a proxy then it's important to exclude both localhost and 127.0.0.1/8 and please share your configuration.
Locked