TECHZEN Zenoss User Community ARCHIVE  

[SOLLVED] Auto install ZenOss stop after download zenoss-core

Subject: [SOLLVED] Auto install ZenOss stop after download zenoss-core
Author: [Not Specified]
Posted: 2015-01-07 10:31

Hi,

Y whant to instal zennoss on a new server but I have a problem.
I whant use the auto install script :

[root@s-dg-zen01 zenoss-core-autodeploy-ec817e6]# ./core-autodeploy.sh
Welcome to the Zenoss Core auto-deploy script!

This auto-deploy script installs the Oracle Java Runtime Environment (JRE).
To continue, please review and accept the Oracle Binary Code License Agreement
for Java SE.

Press Enter to continue.

Do you accept the Oracle Binary Code License Agreement for Java SEy
Install continues....
Ensuring Zenoss RPMs are not already present
Disabling SELinux...
Downloading zenoss_core-4.2.5-2108.el6.x86_64.rpm...
--2015-01-07 17:27:58-- http://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.5/...
Rsolution de downloads.sourceforge.net... 216.34.181.59
Connexion vers downloads.sourceforge.net|216.34.181.59|:80...connect.
requte HTTP transmise, en attente de la rponse...302 Found
Emplacement: http://cznic.dl.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.5/z... [suivant]
--2015-01-07 17:27:58-- http://cznic.dl.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.5/z...
Rsolution de cznic.dl.sourceforge.net... 217.31.202.30, 2001:1488:ffff::30
Connexion vers cznic.dl.sourceforge.net|217.31.202.30|:80...connect.
requte HTTP transmise, en attente de la rponse...200 OK
Longueur: 123063789 (117M) [application/octet-stream]
Sauvegarde en : zenoss_core-4.2.5-2108.el6.x86_64.rpm

100%[======================================>] 123 063 789 39,6M/s ds 3,0s

2015-01-07 17:28:01 (39,6 MB/s) - zenoss_core-4.2.5-2108.el6.x86_64.rpm sauvegard [123063789/123063789]

Importing Zenoss GPG Key
[root@s-dg-zen01 zenoss-core-autodeploy-ec817e6]#

The script alwase stop at this step.

I use cent os 6.6 minimal install.

Help please !

Nicolas



Subject: This could be a braindead GPG
Author: Andrew Kirch
Posted: 2015-01-07 13:20

This could be a braindead GPG issue, would you check the yum keyring to see if the key installed If it did, the next step is installing the MySQL libraries, and that code is pretty well tested at this point.

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: How to
Author: [Not Specified]
Posted: 2015-01-08 04:59

Hi,

thanks for your help. how to I can ckek the yum keyring

nico



Subject: An imported public key is
Author: Andrew Kirch
Posted: 2015-01-08 10:41

An imported public key is carried in a header, and key ring management is performed exactly like package management. For example, all currently imported public keys can be displayed by:

rpm -qa gpg-pubkey*
Details about a specific public key, when imported, can be displayed by querying. Here's information about the Red Hat GPG/DSA key:

rpm -qi gpg-pubkey-db42a60e

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: my imported public key
Author: [Not Specified]
Posted: 2015-01-08 16:36

# rpm -qa gpg-pubkey*

gpg-pubkey-aa5a1ad7-4829c08a
gpg-pubkey-c105b9de-4e0fd3a3

I have juste 2 key ! normal

The first :

Name : gpg-pubkey Relocations: (not relocatable)
Version : aa5a1ad7 Vendor: (none)
Release : 4829c08a Build Date: jeu. 08 janv. 2015 23:29:38 CET
Install Date: jeu. 08 janv. 2015 23:29:38 CET Build Host: localhost
Group : Public Keys Source RPM: (none)
Size : 0 License: pubkey
Signature : (none)
Summary : gpg(Zenoss, Inc. <dev@zenoss.com>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.8.0 (NSS-3)

mQGiBEgpwIoRBAD/6KOiBQLWFmehDIydAaVECeXiXbuRvWNVm8OhC0rhWg/kVuu8
rNZaJVYCL7zPuDzwbSlxmyv1TtUvEBGO0ua5Kwxt9weCeGq64/g9pOZEp8d+c4eH
tDZ1i+1Pd/AjnM7Xvix9IVb/Z6Fg1ehomf7ujCd6iNkGTFU0gwqA0ox82wCg5uVV
8iXBgqfeov9OAFqlMIGNv3sEAJkAAXZhUzikPniPMxRB3pz1TVNx6erwlMoXGi9s
OXm1pG9NYQFwNUfm0cbXM+GZNHBFjASzegi18OLsvhunvsD+4u4NqzuI7vPN3ZGQ
7KUP4WkrH75xWbiggh6oB3BmUPqg6p3uaMXdnPQ9dDjgfEItFiS2zhPMqB0XnI68
XR/PBACo28iBRNOBnCxLgGIPH0FJ2Qu8vbVxYFk8ylvJaDZt4hkkdHXKwpC/rKTv
/rHo9Ta/BaaCbZDsOR7NX7Qma8UPdstgZQoFdRmwOGRpQyrq58qMlr+k379BoYKY
IS/gwpwTxALBNzYJrlo+N0qUGW5JbG6q6imnUKnxHLeUHLS7uLQdWmVub3NzLCBJ
bmMuIDxkZXZAemVub3NzLmNvbT6IYAQTEQIAIAUCSCnAigIbAwYLCQgHAwIEFQII
AwQWAgMBAh4BAheAAAoJEO0KX9KqWhrXP2EAoM9ey4i/MYuMAFi7woARyNVxQwa2
AJ0ZII/YeKFAqTDOweXvNO46h9QuxrkBDQRIKcCLEAQAygd4bOiHhVmb0NpLeZtt
HvbyLnm7fYPUT4ISHygekiQBX37olSrxXJkT8aysh8SWiiYcQJ80l1TlghuuQSdB
CBebWD5XhnrN8Mjh7+ASuICtTHb3ZpgA+lckWPwK3+dSzb5BXhKdk+jB173pF7Aa
9+taLlP5pRHB2btq6YfGSl8AAwUD/iZaWA+4sS3H6pQcoBj+HTwPFlRCFeKTr5Lr
3eUZyjnUdKMsj8B3DRcNbtaAzZIOU5L//EyF9OBPtjvNmjmGopwYI5ZYvv0Yg27H
3i/f95Lu/orn7mNq7nnGewLhbJDzql6yL8Of4rTSKlHV4seVBdGeu0MfLDVj2L78
pDBpw9ZiiEkEGBECAAkFAkgpwIsCGwwACgkQ7Qpf0qpaGtcIjgCfbdkFforAlIbZ
USV2k8OAlIzorScAoLKAiNC+6roVyiDXNu69GgdRhSc5
=uyQ3
-----END PGP PUBLIC KEY BLOCK-----

The twice :
Name : gpg-pubkey Relocations: (not relocatable)
Version : c105b9de Vendor: (none)
Release : 4e0fd3a3 Build Date: mer. 07 janv. 2015 16:15:21 CET
Install Date: mer. 07 janv. 2015 16:15:21 CET Build Host: localhost
Group : Public Keys Source RPM: (none)
Size : 0 License: pubkey
Signature : (none)
Summary : gpg(CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.8.0 (NSS-3)

mQINBE4P06MBEACqn48FZgYkG2QrtUAVDV58H6LpDYEcTcv4CIFSkgs6dJ9TavCW
NyPBZRpM2R+Rg5eVqlborp7TmktBP/sSsxc8eJ+3P2aQWSWc5ol74Y0OznJUCrBr
bIdypJllsD9Fe+h7gLBXTh3vdBEWr2lR+xA+Oou8UlO2gFbVFQqMafUgU1s0vqaE
/hHH0TzwD0/tJ6eqIbHwVR/Bu6kHFK4PwePovhfvyYD9Y+C0vOYd5Ict2vbLHz1f
QBDZObv4M6KN3j7nzme47hKtdMd+LwFqxM5cXfM6b5doDulWPmuGV78VoX6OR7el
x1tlfpuiFeuXYnImm5nTawArcQ1UkXUSYcTUKShJebRDLR3BycxR39Q9jtbOQ29R
FumHginovEhdUcinRr22eRXgcmzpR00zFIWoFCwHh/OCtG14nFhefuZ8Z80qbVhW
2J9+/O4tksv9HtQBmQNOK5S8C4HNF2M8AfOWNTr8esFSDc0YA5/cxzdfOOtWam/w
lBpNcUUSSgddRsBwijPuWhVA3NmA/uQlJtAo4Ji5vo8cj5MTPG3+U+rfNqRxu1Yc
ioXRo4LzggPscaTZX6V24n0fzw0J2k7TT4sX007k+7YXwEMqmHpcMYbDNzdCzUer
Zilh5hihJwvGfdi234W3GofttoO+jaAZjic7a3p6cO1ICMgfVqrbZCUQVQARAQAB
tEZDZW50T1MtNiBLZXkgKENlbnRPUyA2IE9mZmljaWFsIFNpZ25pbmcgS2V5KSA8
Y2VudG9zLTYta2V5QGNlbnRvcy5vcmc+iQI8BBMBAgAmBQJOD9OjAhsDBQkSzAMA
BgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCUb8osEFud6ajRAAnb6d+w6Y/v/d
MSy7UEy4rNquArix8xhqBwwjoGXpa37OqTvvcJrftZ1XgtzmTbkqXc+9EFch0C+w
ST10f+H0SPTUGuPwqLkg27snUkDAv1B8laub+l2L9erzCaRriH8MnFyxt5v1rqWA
mVlRymzgXK+EQDr+XOgMm1CvxVY3OwdjdoHNox4TdVQWlZl83xdLXBxkd5IRciNm
sg5fJAzAMeg8YsoDee3m4khg9gEm+/Rj5io8Gfk0nhQpgGGeS1HEXl5jzTb44zQW
qudkfcLEdUMOECbu7IC5Z1wrcj559qcp9C94IwQQO+LxLwg4kHffvZjCaOXDRiya
h8KGsEDuiqwjU9HgGq9fa0Ceo3OyUazUi+WnOxBLVIQ8cUZJJ2Ia5PDnEsz59kCp
JmBZaYPxUEteMtG3yDTa8c8jUnJtMPpkwpSkeMBeNr/rEH4YcBoxuFjppHzQpJ7G
hZRbOfY8w97TgJbfDElwTX0/xX9ypsmBezgGoOvOkzP9iCy9YUBc9q/SNnflRWPO
sMVrjec0vc6ffthu2xBdigBXhL7x2bphWzTXf2T067k+JOdoh5EGney6LhQzcp8m
YCTENStCR+L/5XwrvNgRBnoXe4e0ZHet1CcCuBCBvSmsPHp5ml21ahsephnHx+rl
JNGtzulnNP07RyfzQcpCNFH7W4lXzqM=
=jrWY
-----END PGP PUBLIC KEY BLOCK-----

thanks again for your help



Subject: Our key installed, please
Author: Andrew Kirch
Posted: 2015-01-12 13:39

Our key installed, please check to ensure a firewall isn't blocking the MySQL mirror. Thanks!

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: firewall
Author: [Not Specified]
Posted: 2015-01-13 02:40

hi,

my iptables firewall si stoped and I have the same error....



Subject: I'm thinking it's an upstream
Author: Andrew Kirch
Posted: 2015-01-19 08:12

I'm thinking it's an upstream firewall or proxy blocking the MySQL mirror. Can you get this machine someplace with unimpeded internet access long enough to install

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: CentOS 6.6 reproducing same problem
Author: [Not Specified]
Posted: 2015-02-04 11:38

Am seeing same problem with ec817e6 and CentOS 6.6 Minimal. I have tried putting the box outside of the firewall and reproduced the same results.

I have loaded previous auto-deploy scripts in the past (same network config) and it has worked nicely



Subject: MySQL Mirror no longer in service
Author: [Not Specified]
Posted: 2015-02-05 05:26

I am having the same issue. Looks like in the core-autodeploy script the mirror is set to something that is no longer in service.

code snippet:

# Defaults for user provided input
arch="x86_64"
# ftp mirror for MySQL to use for version auto-detection:
mysql_ftp_mirror="ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/"

If you go to this page, http://mirror.anl.gov/, it says that it is no longer available for public access (HTTP and FTP). This should be changed to a new public mirror.



Subject: there's a list of MySQL
Author: Andrew Kirch
Posted: 2015-02-05 09:19

there's a list of MySQL mirrors you can plug in, I'll patch the script this weekend

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: Hi Trelane,
Author: [Not Specified]
Posted: 2015-02-09 09:00

Hi Trelane,
I had a same issue, I tried to install zenoss in a fresh copy of CentOS 64 bit 6.4 minimal, using autodeploy, same thing I stocked on this. I don't know how to fix it, please help.

[root@TestZenoss zenoss-core-autodeploy-9342e87]# ./core-autodeploy.sh
Welcome to the Zenoss Core auto-deploy script!

This auto-deploy script installs the Oracle Java Runtime Environment (JRE).
To continue, please review and accept the Oracle Binary Code License Agreement
for Java SE.

Press Enter to continue.

Do you accept the Oracle Binary Code License Agreement for Java SEy
Install continues....
Ensuring Zenoss RPMs are not already present
Disabling SELinux...
Downloading zenoss_core-4.2.4-1897.el6.x86_64.rpm...
--2015-02-09 19:57:43-- http://downloads.sourceforge.net/project/zenoss/zenoss- 4.2/zenoss-4.2.4/4.2.4-1897/zenoss_core-4.2.4-1897.el6.x86_64.rpm
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://liquidtelecom.dl.sourceforge.net/project/zenoss/zenoss-4.2/zeno ss-4.2.4/4.2.4-1897/zenoss_core-4.2.4-1897.el6.x86_64.rpm [following]
--2015-02-09 19:57:43-- http://liquidtelecom.dl.sourceforge.net/project/zenoss/ zenoss-4.2/zenoss-4.2.4/4.2.4-1897/zenoss_core-4.2.4-1897.el6.x86_64.rpm
Resolving liquidtelecom.dl.sourceforge.net... 197.155.77.8
Connecting to liquidtelecom.dl.sourceforge.net|197.155.77.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 121311450 (116M) [application/octet-stream]
Saving to: zenoss_core-4.2.4-1897.el6.x86_64.rpm

100%[======================================>] 121,311,450 133K/s in 8m 56s

2015-02-09 20:06:40 (221 KB/s) - zenoss_core-4.2.4-1897.el6.x86_64.rpm saved [ 121311450/121311450]

[root@TestZenoss zenoss-core-autodeploy-9342e87]#



Subject: I just committed a fix to
Author: Andrew Kirch
Posted: 2015-02-09 09:15

I just committed a fix to resolve the new issue. Unbeknownst to us, the mirror we used for MySQL died February 1. Please pull the autodeploy script and test for me. Thanks!

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: core-autodeploy.sh
Author: [Not Specified]
Posted: 2015-02-09 23:38

#!/bin/bash
####################################################
#
# A simple script to auto-install Zenoss Core 4.2
#
# This script should be run on a base install of
# CentOS 5/6 or RHEL 5/6.
#
###################################################

cat < Welcome to the Zenoss Core auto-deploy script!

This auto-deploy script installs the Oracle Java Runtime Environment (JRE).
To continue, please review and accept the Oracle Binary Code License Agreement
for Java SE.

Press Enter to continue.
EOF
read
less licenses/Oracle-BCLA-JavaSE
while true; do
read -p "Do you accept the Oracle Binary Code License Agreement for Java SE" yn
case $yn in
[Yy]* ) echo "Install continues...."; break;;
[Nn]* ) echo "Installation aborted."; exit;;
* ) echo "Please answer yes or no.";;
esac
done

pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null

umask 022
# this may or may not be helpful for an install issue some people are having, but shouldn't hurt:
unalias -a

if [ -L /opt/zenoss ]; then
echo "/opt/zenoss appears to be a symlink. Please remove and re-run this script."
exit 1
fi

if [ `rpm -qa | egrep -c -i "^mysql-"` -gt 0 ]; then
cat << EOF

It appears that the distro-supplied version of MySQL is at least partially installed,
or a prior installation attempt failed.

Please remove these packages, as well as their dependencies (often postfix), and then
retry this script:

$(rpm -qa | egrep -i "^mysql-")

EOF
exit 1
fi

try() {
"$@"
if [ $ -ne 0 ]; then
echo "Command failure: $@"
exit 1
fi
}

die() {
echo $*
exit 1
}

disable_repo() {
local conf=/etc/yum.repos.d/$1.repo
if [ ! -e "$conf" ]; then
echo "Yum repo config $conf not found -- exiting."
exit 1
else
sed -i -e 's/^enabled.*/enabled = 0/g' $conf
fi
}

enable_service() {
try /sbin/chkconfig $1 on
try /sbin/service $1 start
}

#Now that RHEL6 RPMs are released, lets try to be smart and pick RPMs based on that
if [ -f /etc/redhat-release ]; then
elv=`cat /etc/redhat-release | gawk 'BEGIN {FS="release "} {print $2}' | gawk 'BEGIN {FS="."} {print $1}'`
#EnterpriseLinux Version String. Just a shortcut to be used later
els=el$elv
else
#Bail
echo "Unable to determine version. I can't continue"
exit 1
fi

# MySQL's official download RPM has different naming for RHEL 5...

if [ "$elv" = "5" ]; then
myels="rhel5"
else
myels="el$elv"
fi

echo "Ensuring Zenoss RPMs are not already present"
if [ `rpm -qa | grep -c -i ^zenoss` -gt 0 ]; then
echo "I see Zenoss Packages already installed. I can't handle that"
exit 1
fi

MYTMP="$(PATH=/sbin:/usr/sbin:/bin:/usr/bin mktemp -d)"
cd $MYTMP || die "Couldn't change to temporary directory"
#Disable SELinux:

echo "Disabling SELinux..."
if [ -e /selinux/enforce ]; then
echo 0 > /selinux/enforce
fi

if [ -e /etc/selinux/config ]; then
sed -i -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
fi

openjdk="$(rpm -qa | grep java.*openjdk)"
if [ -n "$openjdk" ]; then
echo "Attempting to remove existing OpenJDK..."
try rpm -e $openjdk
fi

# Defaults for user provided input
arch="x86_64"
# ftp mirror for MySQL to use for version auto-detection:
mysql_ftp_mirror="ftp://mirror.anl.gov/pub/mysql/Downloads/MySQL-5.5/"

# Auto-detect latest build:
build=4.2.5-2108
rmqv=2.8.7
zenoss_base_url="http://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.5"
zenoss_rpm_file="zenoss_core-$build.$els.$arch.rpm"

# Let's grab Zenoss first...

zenoss_gpg_key="http://dev.zenoss.org/yum/RPM-GPG-KEY-zenoss"
for url in $zenoss_base_url/$zenoss_rpm_file; do
# This will skip download if RPM exists in temp dir, or if user has pre-downloaded the RPM
# and placed it in the same directory as the core-autodeploy script. The RPM install parts
# have also been modified to use the pre-downloaded version if available.
if [ ! -f "${url##*/}" ] && [ ! -f "$SCRIPTPATH/${url##*/}" ];then
echo "Downloading ${url##*/}..."
try wget -N $url
fi
done

if [ `rpm -qa gpg-pubkey* | grep -c "aa5a1ad7-4829c08a"` -eq 0 ];then
echo "Importing Zenoss GPG Key"
try rpm --import $zenoss_gpg_key
fi

#MySQL 5.29 creates dependancy issues, we'll force 5.28 for the remainder of the life of 4.2
try rm -f .listing
try wget --no-remove-listing $mysql_ftp_mirror >/dev/null 2>&1
mysql_v="5.5.37-1"
#if [ -e .listing ] && [ -z "$mysql_v" ]; then
# echo "Auto-detecting most recent MySQL Community release"
# # note: .listing won't be created if you going thru a proxy server(e.g. squid)
# mysql_v=`cat .listing | awk '{ print $9 }' | grep MySQL-client | grep $myels.x86_64.rpm | sort | tail -n 1`
# # tweaks to isolate MySQL version:
# mysql_v="${mysql_v##MySQL-client-}"
# mysql_v="${mysql_v%%.$myels.*}"
# echo "Auto-detected version $mysql_v"
#else
echo "Using MySQL Community Release version $mysql_v"
#fi
jre_file="jre-6u31-linux-x64-rpm.bin"
jre_url="http://javadl.sun.com/webapps/download/AutoDLBundleId=59622"
mysql_client_rpm="MySQL-client-$mysql_v.linux2.6.x86_64.rpm"
mysql_server_rpm="MySQL-server-$mysql_v.linux2.6.x86_64.rpm"
mysql_shared_rpm="MySQL-shared-$mysql_v.linux2.6.x86_64.rpm"
mysql_compat_rpm="MySQL-shared-compat-$mysql_v.linux2.6.x86_64.rpm"
epel_rpm_url=http://dl.fedoraproject.org/pub/epel/$elv/$arch

echo "Installing EPEL Repo"
wget -r -l1 --no-parent -A 'epel*.rpm' $epel_rpm_url
try yum -y --nogpgcheck localinstall */pub/epel/$elv/$arch/epel-*.rpm
disable_repo epel

echo "Installing RabbitMQ"
try wget http://www.rabbitmq.com/releases/rabbitmq-server/v${rmqv}/rabbitmq-server-${rmqv}-1.noarch.rpm
try yum --enablerepo=epel -y --nogpgcheck localinstall rabbitmq-server-${rmqv}-1.noarch.rpm
# Scientific Linux 6 includes AMQP daemon -> qpidd stop it before starting rabbitmq
if [ -e /etc/init.d/qpidd ]; then
try /sbin/service qpidd stop
try /sbin/chkconfig qpidd off
fi
enable_service rabbitmq-server

echo "Downloading Files"
if [ ! -f $jre_file ];then
echo "Downloading Oracle JRE"
try wget -N -O $jre_file $jre_url
try chmod +x $jre_file
fi
echo "Installing JRE"
try ./$jre_file

echo "Downloading and installing MySQL RPMs"
for file in $mysql_client_rpm $mysql_server_rpm $mysql_shared_rpm $mysql_compat_rpm;
do
if [ ! -f $file ];then
try wget -N http://wiki.zenoss.org/download/core/mysql/$file
fi
if [ ! -f $file ];then
echo "Failed to download $file. I can't continue"
exit 1
fi
try yum -y --nogpgcheck localinstall $file
done

echo "Installing optimal /etc/my.cnf settings"
cat >> /etc/my.cnf << EOF
[mysqld]
max_allowed_packet=16M
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 20M
EOF

echo "Configuring MySQL"
enable_service mysql
/usr/bin/mysqladmin -u root password ''
/usr/bin/mysqladmin -u root -h localhost password ''

# set up rrdtool, etc.

echo "Enabling rpmforge repo..."
try wget http://apt.sw.be/redhat/$els/en/$arch/rpmforge/RPMS/rpmforge-release-0.5.2-2.$els.rf.$arch.rpm
try yum --nogpgcheck -y localinstall rpmforge-release-0.5.2-2.$els.rf.$arch.rpm
disable_repo rpmforge

echo "Installing rrdtool"
try yum -y --enablerepo='rpmforge*' install rrdtool-1.4.7

echo "Installing Zenoss"
if [ -e $zenoss_rpm_file ]; then
try yum -y localinstall --enablerepo=epel $zenoss_rpm_file
else
# If already downloaded by user and manually placed next to core-autodeploy.sh, use that RPM instead.
try yum -y localinstall --enablerepo=epel $SCRIPTPATH/$zenoss_rpm_file
fi

try cp $SCRIPTPATH/secure_zenoss.sh /opt/zenoss/bin/
try chown zenoss:zenoss /opt/zenoss/bin/secure_zenoss.sh
try chmod 0700 /opt/zenoss/bin/secure_zenoss.sh

echo "Securing Zenoss"
try su -l -c /opt/zenoss/bin/secure_zenoss.sh zenoss

try cp $SCRIPTPATH/zenpack_actions.txt /opt/zenoss/var

echo "Configuring and Starting some Base Services and Zenoss..."
for service in memcached snmpd zenoss; do
try /sbin/chkconfig $service on
try /sbin/service $service start
done

echo "Securing configuration files..."
try chmod -R go-rwx /opt/zenoss/etc

cat << EOF
Zenoss Core $build install completed successfully!

Please visit http://127.0.0.1:8080 in your favorite Web browser to complete
setup.

NOTE: You may need to disable or modify this server's firewall to access port
8080. To disable this system's firewall, type:

# service iptables save
# service iptables stop
# chkconfig iptables off

Alternatively, you can modify your firewall to enable incoming connections to
port 8080. Here is a full list of all the ports Zenoss accepts incoming
connections from, and their purpose:

8080 (TCP) Web user interface
11211 (TCP and UDP) memcached
514 (UDP) syslog
162 (UDP) SNMP traps

If you encounter problems with this script, please report them on the
following wiki page:

http://wiki.zenoss.org/index.phptitle=Talk:Install_Zenoss

Thank you for using Zenoss. Happy monitoring!
EOF



Subject: Hi Trelane, thank you for
Author: [Not Specified]
Posted: 2015-02-09 23:42

Hi Trelane, thank you for response.

^ that's the autodeploy I am using. the last time I install the Zenoss using auto deploy was Feb. 2013 and everything is fine, so happen that my Zenoss get crashed, so I wish to install in a fresh copy. is there a other things how to install this THanks



Subject: Hi Trelane,
Author: [Not Specified]
Posted: 2015-02-13 00:35

Hi Trelane,
Just want you to know, I followed the Manual Installation in Zenoss instead of auto-deploy and it's working fine now.

I suggested to anyone who wants to setup Zenoss, much better to use the Manual Installation. :)

FYI, I am using a fresh copy of Centos 6.4 Final 64bit Minimal.



Subject: My solution
Author: [Not Specified]
Posted: 2015-02-13 07:12

Hi,

I find a solution for my case.
The problem was on the firewall of my compagny.
For corectly install the auto install script ned a FULL acess of internet (port and protocil.

Thanks fot your help !



< Previous
All services not starting up
  Next
RPS install fails
>