Installing Zenoss 5 is a quite different situation than installing Zenoss 4. The 5th version is built on docker. While it is easier to someone who understands docker, for some it may require a steeper learning curve.

You need two free partitions on your system sda3 and sda4

yum update -y
systemctl stop firewalld && systemctl disable firewalld
mkdir -p /var/lib/docker /opt/serviced/var/volumes
mkfs -t btrfs –nodiscard $DOCKER_PART
mkfs -t btrfs –nodiscard $APP_PART
echo “$DOCKER_PART /var/lib/docker btrfs rw,noatime,nodatacow 0 0” >> /etc/fstab
echo “$APP_PART $APP_PATH btrfs rw,noatime,nodatacow 0 0” >> /etc/fstab
mount -a
if [[ `mount | egrep ‘docker|serviced’` ]]; then echo “Mounted” ; else echo “Not Mounted” ; fi
mount | egrep ‘docker|serviced’
EXT=$(date +”%j-%H%M%S”)
sudo sed -i.${EXT} -e ‘s/^SELINUX=.*/SELINUX=disabled/g’ \
/etc/selinux/config && \
grep ‘^SELINUX=’ /etc/selinux/config
systemctl enable dnsmasq && systemctl start dnsmasq
yum install -y ntp && systemctl enable ntpd
echo “systemctl start ntpd” >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
systemctl start ntpd
rpm -Uvh docker-engine-selinux-1.9.0-1.el7.centos.noarch.rpm
yum localinstall docker-engine-1.9.0-1.el7.centos.x86_64.rpm
rpm -ivh
yum clean all
#now reboot system
#after reboot
yum –enablerepo=zenoss-stable install -y zenoss-core-service
systemctl start docker
ip addr | grep -A 2 ‘docker0:’ | grep inet
#take the ip that shows up in output of previous command and use that instead of in command below
echo ‘DOCKER_OPTS=”-s btrfs –dns=″‘ >> /etc/sysconfig/docker
EXT=$(date +”%j-%H%M%S”)
sudo sed -i.${EXT} \
-e ‘s|^#[^S]*\(SERVICED_FS_TYPE=\).*$|\1btrfs|’ \
systemctl stop docker && systemctl start docker
systemctl start serviced
#Now go to Control Center by navigating to server ip using any browser and login using system root username/password
#In control center first add host and then select application to install, complete the wizard.
#Check the server name as it is showing (it will show hostname.internal). Configure your client machine to be able to connect to it using /etc/hosts
#Navigate to hostname url in the format https://zenoss5.hostname.internal

Leave a Reply