Nagios Core 4 Installation Step by step guide in RHEL 7 / Centos 7. Nagios Core Installation is simple and easy process but when your doing for the first time you will little bit confused, Installation of Nagios core is plays major role because while installing we have to run configure as nagcmd group or else all the file permissions and configuration files we have to change later.
What is Nagios core..?? How to do Nagios Core Installation
Nagios core is an most popular and enterprise open source monitoring tool. Using this monitoring tool you can monitor any device in this world even UPS / Battery status. This tool will support almost all the scripting languages.
Prepare your Linux server to install Nagios monitoring tool
Nagios Version: 4.1.1
Prerequisites:
- Nagios code is written in C language so you required an gcc++ compiler packages to compile and install Nagios.
- Required wget package to download the nagios tool directly from web to server
- To untar the package required Rar / Zip RPM’s
- Web / Apache / Httpd service to host the Nagios
- Install php and perl packages to run Nagios plugins
Step1:> Installing prerequisites
by using above command it will install all the required prerequisites
Step2:> Download the Nagios Core Package from web
using above command you can download the NagiosCore 4.1.1 package
Step3:> Create Nagios User and Nagcmd group
Step4:> Untar the Package
above command will untar the tar file
Step5:> Compiling Nagios code
using all above commands in sequence will installation nagios
Step6:> Copy the Event handler directory and change its ownership
Change ownership of copied directory using below command
Step7:> Create nagiosadmin user and Generate the password to Web Login
create nagiosadmin user and generate password of nagiosadmin using htpasswd command. nagiosadmin we will use to login the web console.
Step8:> Start the httpd and nagios services
use below given command to start the httpd and nagios services
Check the services status
Step9:> Allow 80 port to access the Nagios using remote machine
in RHEL7 / Centos 7 instead of iptables firewalld is introduced use firewalld to allow 80 port
Step10:> Access the Nagios using web browser
open the browser and type http://IPADDRESS/nagios
in above screen you can able to see the Nagios dashboard is showing errors, because we did not yet installed the nagios plugins. After Nagios Core Installation We must install plugins are else we will get above error.
Lets install nagios plugins..!!
Install Nagios plugins on Nagios Server
Nagios plugins will play main role to monitor the service. Its very easy to install the nagios plugins.
nagios plugins are locate yet /usr/local/nagios/libexec/
Download the plugins bundle
extract the package
Change to directory to install plugins
After installing an nagios plugins just wait for five minutes and open the nagios web console and see.
That’s it…!! your Nagios Core monitoring tool is installed successfully. Nagios Core Installation is Successfully Now you can Monitor Servers / Devices using Nagios Core.
Please provide your valuable comments..!!
referred from ARKIT.CO.IN
No comments:
Post a Comment