Click to access Installing-Nagios-XI-Manually-on-Linux.pdf
[root@jenkinsslave ~]# curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh
http://130.211.135.148/nagiosxi/install.php




Nagios XI Installer
Welcome to the Nagios XI installation. Just answer a few simple questions and you’ll be ready to go.
General Program Settings
Program URL:
http://130.211.135.148/nagiosxi/
Administrator Name:
Nagios Administrator
Administrator Email Address:
root@localhost
Administrator Username:
nagiosadmin
Administrator Password:
ojFvdaq5rnXjkLqkSXNM
Timezone Settings
Timezone:
Install
[root@jenkinsslave ~]# cat install.sh
#!/bin/sh
DIR=nagiosxi
DLDIR=nagiosxi
FILE=xi-latest.tar.gz
# Check whether we have sufficient privileges
if [ $(id -u) -ne 0 ]; then
echo “This script needs to be run as root/superuser.” >&2
exit 1
fi
if ! which wget &>/dev/null; then
yum install wget -y
fi
cd /tmp
echo “check if /tmp/nagiosxi exists”
if [ -d /tmp/$DIR ]; then
rm -rf /tmp/$DIR
fi
echo “Downloading latest Nagios XI release”
wget https://assets.nagios.com/downloads/$DLDIR/$FILE -O /tmp/$FILE
tar xzf /tmp/$FILE
cd /tmp/$DIR
chmod +x ./fullinstall
./fullinstall
