How to Install Nagios Monitoring 4.3.4 & Nagios Plugins 2.2.1 in Ubuntu 17.10 and Debian 8.3
I am Using Ubuntu 17.10 but you can install it in ubuntu From 17.04 to 14.04
1. Installing LAMP
Step1 :- sudo apt update && sudo apt upgrade
Step2 :- sudo apt install apache2 libapache2-mod-php7.0 php7.0
Step3 :- sudo apt install wget unzip zip autoconf gcc libc6 make apache2-utils libgd-dev
2. Installing NAGIOS 4.3.4 CORE
Step4 :- useradd nagios
Step5 :- usermod -a -G nagios www-data
Step6 :- sudo wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.3.4.tar.gz
Check Website :- https://www.nagios.org/downloads/
Step7 :- sudo tar xzf nagios-4.3.4.tar.gz
Step8 :- sudo cd nagios-4.3.4/
Step9 :- sudo ls
Step10 :- sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled
Step11 :- sudo make all
Step12 :- sudo make install
Step13 :- sudo make install-init
Step14 :- sudo make install-commandmode
Step15 :- sudo systemctl enable nagios.service
Step16 :- sudo make install-config
Step17 :- sudo make install-webconf
Step18 :- sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Step19 :- sudo a2enmod cgi
Step20 :- sudo systemctl restart apache2
Step21 :- sudo systemctl start nagios
Step22 :- sudo systemctl enable nagios
3. Installing NAGIOS 4.3.4 CORE
Step23 :- sudo apt install libmcrypt-dev make libssl-dev bc gawk dc build-essential snmp libnet-snmp-perl gettext libldap2-dev smbclient fping libmysqlclient-dev qmail-tools libpqxx3-dev libdbi-dev
Step24 :- sudo wget https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz
Check Website :- https://www.nagios.org/downloads/
Step25 :- sudo tar xfz release-2.2.1.tar.gz
Step26 :- sudo cd nagios-plugins-release-2.2.1/
Step27 :- sudo ./tools/setup
Step28 :- sudo ./configure
Step29 :- sudo make
Step30 :- sudo make install
Step31 :- sudo ls /usr/local/nagios/libexec/
Step32 :- sudo systemctl restart nagios.service
Log into Nagios Check Services
Step34 :- sudo a2enmod ssl
Step35 :- sudo a2ensite default-ssl.conf
Step36 :- sudo systemctl restart apache2
Open the Configuration File
Step37 :- sudo nano /etc/apache2/sites-enabled/000-default.conf
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{HTTP_HOST}/$1
Step38 :- sudo systemctl restart apache2.service
http://DOMAIN or IP ADDRESS/nagios
If you have any problem you can command below to my video or email me on itcloudnet@gmail.com with screenshot
please "SUBSCRIBE!" to cloud network channelSTART SERIES FROM THE BEGINNING: https://goo.gl/kXkmdp
WATCH THE NEXT VIDEO:
GO TO THE HINDI YOUTUBE CHANNEL: https://goo.gl/gTHiw2
SUBSCRIBE: https://goo.gl/LjKGzc
I am Willing Make a Website, if YOU WANT ME TO MAKE A VIDEOS ON Different Technologies/field I WILL DO IT..
Watch Others Videos and Have any Queries Email to me on (itcloudnet@gmail.com)
####--------------------------------------------------------------------------------------####
Subscribe to Cloud Network :- http://goo.gl/LjKGzc
Website :- http://www.cloudnetwork.in
Like us on Facebook :- http://facebook.com/itcloudnetwork
Follow us on Twitter :- http://twitter.com/itcloudnet
Circle us on Google+ :- https://goo.gl/StVdHb
Add us on LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Skype Id :- cloud.network1
E-Mail Id :- itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........