How to Install Nagios Core 4.0.8 With Plugins on RHEL/CentOS - 6/7 and Fedora - 24/23/22
Hello Everyone,
In this tutorial,
Let us Install Nagios Core 4.0.8 & Nagios Plugins 2.0.3 on Fedora 21 Desktop or Workstation - 64-Bit
You Can also Install in Linux, CentOS.
To Download
Nagios Core 4.0.8.tar.gz
Nagios plugins 2.0.3.tar.gz
Installation Required Dependencies
Step1:- yum install -y httpd php gcc glibc glibc-common gd gd-devel make net-snmp
Switch to Root & Create a New Nagios User, Group and Passwd
Step 2 :- useradd nagios
Step 3 :- groupadd nagcmd
Next, add both the nagios user and the apache user to the nagcmd group.
Step 4 :- usermod -G nagcmd nagios
usermod -G nagcmd apache
Download Nagios-Core 4.0.8 and Nagios Plugins 2.0.3
Step5 :- mkdir /root/nagios
Step6 :- cd /root/nagios
Links to Download :-
Step7 :- wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz
Step8 :- wget https://www.nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
Unzip the download nagios
Step9:- tar -xvf nagios-4.0.8.tar.gz
Step10:- tar -xvf nagios-plugins-2.0.3.tar.gz
Two new folders will appear in that directory.
Step11 :- ll
Configure Nagios Core
Step12 :- cd nagios-4.0.8
Step13 :- ./configure --with-command-group=nagcmd
Step14 :- make all
Step15 :- make install
Step16 :- make install-init
Step17 :- make install-commandmode
Step18 :- make install-config
Customizing Nagios Configuration
Step19 :- vi /usr/local/nagios/etc/objects/contacts.cfg
Install and Configure Web Interface for Nagios
Step20 :- make install-webconf
Password for Nagios
Step21 :- htpasswd -s -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Restart Apache
Step22 :- service httpd start
Compile and Install Nagios Plugin
Step23 :- cd /root/nagios
Step24 :- cd nagios-plugins-2.0.3
Step25 :- ./configure --with-nagios-user=nagios --with-nagios-group=nagios
Step26 :- make
Step27 :- make install
Verify Nagios Configuration Files
Step28 :- /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Add Nagios Services to System Startup
Step39 :- chkconfig --add nagios
Step40 :- chkconfig --level 35 nagios on
Step41 :- chkconfig --add httpd
Step42 :- chkconfig --level 35 httpd on
Restart Nagios
Step42 :- service nagios start
Login to the Nagios Web Interface
Step43:-
“http://Your-server-IP-address/nagios” or “http://FQDN/nagios”
To Add New User & Reset Nagiosadmin Password
The user's credentials password are stored in /etc/nagios3/htpasswd.users and To change the nagiosadmin password.
step44:- sudo htpasswd /etc/nagios3/htpasswd.users nagiosadmin
step45:- To add a user sudo htpasswd /etc/nagios3/htpasswd.users cloudnetwork
-------------------------------------------------------------------------------
For Your Information Only
I am Willing to Make a FREE or CHARGE Website, if YOU WANT ME TO MAKE A VIDEOS ON Different Technologies I WILL DO IT..
Share My Video, Like it, Watch Others Videos and Have any Quries Email me (itcloudnet@gmail.com)
----------------------------------------------------------------------------------
NOTE :- For Any Clarification Please Comment Below
Comment,
Like and
Share us and help us to spread.
####--------------------------------------------------------------------------------------####
Subscribe :- http://www.youtube.com/user/itcloudnet?sub_confirmation=1
Website :- http://www.cloudnetwork.in
Facebook :- http://facebook.com/itcloudnetwork
Twitter :- http://twitter.com/itcloudnet
Pinterset :- http://pinterset.com/itcloudnet
LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Google+ :- https://plus.google.com/u/0/107923552480070716949/posts
Skype Id :- cloud.network1
E-Mail Id :- itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........