Jumat, 17 Maret 2017

How To Install Nagios 3.X On Centos 6.7 End Release

What Is Nagios Core:-

Nagios Core is an Open Source organization together with network monitoring application. It watches hosts together with services that yous specify, alerting yous when things become bad together with when they instruct better.

System Requirments:-

1- Linux machine (In my illustration I am using Centos 6.7)
2- HTTPd, PHP amongst gd together with CGI.

Nagios Installation:-

 Step 1- 
Add repository showtime to install Nagios
[root@odoo  ]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm warning: /var/tmp/rpm-tmp.2nIBRS: Header V3 RSA/SHA256 Signature, fundamental ID 0608b895: NOKEY Preparing...                ########################################### [100%]    1:epel-release           ########################################### [100%] [root@odoo  ]# 

[root@odoo  ]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm warning: /var/tmp/rpm-tmp.f5McIF: Header V4 DSA/SHA1 Signature, fundamental ID 00f97f56: NOKEY Preparing...                ########################################### [100%]    1:remi-release           ########################################### [100%] 

 Step 2- Complete installation & configuration part:

Run yum update
[root@odoo  ]# yum update
Install HTTPd server
[root@odoo  ]# yum install httpd
Install PHP
[root@odoo  ]# yum install php php-cli php-gh php-common

Install Nagios
[root@odoo  ]# yum install nagios nagios-plugins-all nagios-plugins-nrpe nrpe
Check Nagios version
[root@odoo  ]# nagios -v
Enable httpd together with Nagios service to laid about car during organization boot or restart
[root@odoo  ]# chkconfig httpd on && chkconfig nagios on
Start httpd & Nagios service
[root@odoo  ]# service httpd laid about && service nagios start
Open Port fourscore through iptables
[root@odoo  ]# vi /etc/sysconfig/iptables
Modify config file similar below
# Firewall configuration written past times system-config-firewall # Manual customization of this file is non recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m field --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m field --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m field --state NEW -m tcp -p tcp --dport fourscore -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT 

Save together with kicking the bucket from file & restart iptables service
[root@odoo  ]# service iptables restart
 Step 3- Setup Nagios login details
 Set Nagios user get upwards together with password
[root@odoo  ]# htpasswd -c /etc/nagios/passwd nagiosadmin New password: ******* Re-type novel password:  ****** Adding password for user nagiosadmin 

 Step 4- Validate authentication & installation.
Check Nagios login using URL below















After successful authentication, yous volition instruct the window similar below.













!!!!!!!! Installation of Nagios completed successfully !!!!!!!!


Sumber https://linuxhowtoguide.blogspot.com/

Tidak ada komentar:

Posting Komentar