Tuesday, June 30, 2020

How To install Nagios Or EHCP (Easy Hosting Control Panel) On Ubuntu 20.04

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Nagios is one of the most widely used open-source monitoring tools for monitoring the services and applications that run on Windows and Linux operating systems.

Website - https://www.nagios.org/


EHCP (Easy Hosting Control Panel) is an open-source and powerful hosting control panel that lets you to host any websites, create email accounts, create additional (sub) domains and create FTP accounts and many more. Ehcp is the only first hosting control panel was written using PHP programming language and available for free. - https://ehcp.net/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment:

Ubuntu 20.04 LTS                     Hostname - www.example.com  - ip Address - 192.168.1.40

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

apt install -y build-essential apache2 php openssl perl make php-gd libgd-dev libapache2-mod-php libperl-dev libssl-dev daemon wget apache2-utils unzip net-tools curl git software-properties-common

useradd nagios ; groupadd nagcmd ; usermod -a -G nagcmd nagios ; usermod -a -G nagcmd www-data


cd /tmp ; wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.5.tar.gz

tar -zxvf /tmp/nagios-4.4.5.tar.gz ; cd /tmp/nagios-4.4.5/

sudo ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled/


make all && make install && make install-init && make install-config && make install-commandmode && make install-webconf


htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

a2enmod cgi ; systemctl restart apache2

cd /tmp ; wget https://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz

tar -zxvf /tmp/nagios-plugins-2.3.3.tar.gz ; cd /tmp/nagios-plugins-2.3.3/


./configure --with-nagios-user=nagios --with-nagios-group=nagios

make && make install

sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

systemctl enable nagios ; systemctl start nagios ; systemctl status nagios


http://www.example.com/nagios                                       | User - nagiosadmin Pass - Strongpass

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

installing Easy Hosting Control Panel -

Prerequisites - A freshly installed Ubuntu 20.04 x64 | Root access.


wget -O ehcp.tgz www.ehcp.net/ehcp_1804.tgz --no-check-certificate

tar -zxvf ehcp.tgz ; cd ehcp

./install.sh

http://www.example.com/ehcp/

admin / Strongpass

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment