Prerequisites for the software installation is remote access to a physical server with minimum specifications of 30Gb of hard disk, 4GB of RAM and installed Ubuntuv17.10.1. During initial Ubuntu installation menu, LAMP (i.e. Linux, Apache, MySQLand PHP) should be selected, also Tomcat, Java and SSH Server. The server will require two configured network interface cards (NICS). One NIC was connected to the internet with a public IP address and the other NIC connected to the customer’s environment. It is assumed that the installer has basic Unix/Ubuntu and Network admin skills. The installation procedure to install MRTG and associated software was:-
#install supporting software
apt-get install libpango1.0-dev libxml2-dev
#validate the previous install
gcc -v
perl -v
#install supporting software
sudo apt-get install libgd-dev
sudo apt-get install libpng-dev
sudo apt-get install zlib1g-dev
#setup directories
mkdir -p /usr/local/src
cd /usr/local/src
cd home
#download and install MRTG
sudo wget https://oss.oetiker.ch/mrtg/pub/mrtg-2.17.4.tar.gz
gunzip -c mrtg-2.17.4.tar.gz | tar xvf –
cd mrtg-2.17.4
./configure –prefix=/usr/local/mrtg-2
make
sudo make install
cd /usr/local/mrtg-2/bin
sudo apt-install mrtg
#Install web and snmp software
sudo apt install snmp
sudo ufw enable
sudo ufw app list
sudo ufw allow ‘Apache Full’
sudo ufw allow ssh
sudo ufw status verbose
sudo systemctl status apache2
sudo apt-get install curl
hostname -I
#amend the default location of the website
sudo nano /etc/apache2/sites-available/000-default.conf
#amend the 000-default.conf DocumentRoot line as follows
DocumentRoot /var/www/html
#Restart the service
sudo systemctl restart apache2