달력

4

« 2019/4 »

  • 28
  • 29
  • 30
  •  
  •  
  •  
  •  
2019.04.17 12:07

Installing Nagios Agent (NRPE) on CentOS 7 Tech/Linux2019.04.17 12:07

Installing Nagios Agent (NRPE) on CentOS 7

CloudwaferHQ - July 13, 2018

 

After installing Nagios on our server, the next step is to install the Nagios agent. " Nagios Remote Plugin Executor". With NRPE, Nagios Administrators can use NRPE to monitor Linux servers as it allows you to remotely execute plugins/commands on our Linux machines and get the result back of the executed command.

 

In this guide, we will install NRPE on our CentOS 7 in order for it to be monitored through a Nagios server.

 

Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can easily deploy your own cloud servers.

Once you have signed up, log into your Cloudwafer Client Area with the password provided in your mail and deploy your Cloudwafer cloud server.

 

Step 1: Install EPEL Repository
The NRPE packages and plugins which will be installed are available under the EPEL yum repository, Enable EPEL repository using one of the below commands.

rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

 

Step 2: Install NRPE and NRPE-plugins
Type the commands below to enable the EPEL repository followed by the command below to install NRPE and its plugins.

yum --enablerepo=epel -y install nrpe nagios-plugins

yum install -y nrpe nagios-plugins-all

 

Step 3: Configure NRPE Add-on

Next, we need to modify the NRPE configuration file to accept connection from the Nagios server by editing the /etc/nagios/nrpe.cfg file.

nano /etc/nagios/nrpe.cfg

Add the Nagios servers IP address, separated by comma like below.

allowed_hosts=127.0.0.1,192.168.1.1

 

Step 4: Configure Nagios Checks
There are some basic attributes and services to monitor on a Linux server which includes the CPU, Memory, Disk, HTTP, FTP, etc. The /etc/nagios/nrpe.cfg file contains the basic commands to check these attributes and services on remote hosts.

Listed below are some command lines that lets you monitor attributes with the help of Nagios plugins.

Note: The path to Nagios plugins may change depends on your operating system architecture (i386 or x86_64)

command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10

command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20

command[check_root]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/centos-root

command[check_swap]=/usr/lib64/nagios/plugins/check_swap -w 20% -c 10%

command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200

Note: In the above command definition -w stands for warning and -c stands for critical.

 

Step 5: Restart NRPE
After entering the commands, restart the NRPE service:

systemctl start nrpe 
systemctl enable nrpe

 

Step 6 – Test NRPE from Nagios Server
Lastly, login to the Nagios server and execute the following command to verify that Nagios server is able to connect to clients NRPE services.

check_nrpe -H 196.168.1.2

If the connection is successful, it will show a version of clients NRPE package.

 

원본글 : https://cloudwafer.com/blog/installing-nagios-agent-npre-on-centos/

 

Installing Nagios Agent (NRPE) on CentOS 7

After installing Nagios on our server, the next step is to install the Nagios agent. " Nagios Remote Plugin Executor". With NRPE, Nagios Administrators can use NRPE to monitor Linux servers as it allows you to remotely execute plugins/commands on our Linux

cloudwafer.com

 

Posted by 멋지다마라송

[모임추천] 미모 1기 - 부자들은 매일 아침 부자가 될 준비를 끝낸다.

 

모임 추천입니다.

 

하루의 시작, 아침이 중요합니다.

 

미모 (미라클모닝) 는 이 아침을 제대로 부와 연결하는 방법을 서로 배우고 공유하는 온라인 모임입니다.

 

...

 

아침의 기분 좋으셔야 합니다. 모든 하루의 '시작'이니까요.

 

누군가의 시작이 굳이 아침이 아닐 지도 모릅니다.

그렇지만 대부분 '성공'했다는 양반들은 새벽에 일어나서 그들만의 석세스 코드를 통해 이미 부자가 될 준비를 마칩니다.

그들의 삶 속에서 조화롭게 미모를 '하모니' 시켜 나가며 결국 '이기는 삶' 으로, '주인' 으로 삽니다.

해 보셨다면, 해 보신 분들은, 그리고 이뤄낸 이들만이 알 겹니다. 이 비밀스런 비결을.

 

 

 

 

 

원본글 : https://brunch.co.kr/@heaven/342

 

신청서 : https://docs.google.com/forms/d/1EGuOZZA6kmiiCCJPs-2mnZbDTvaWXFpLwA1hAiqTtRI/viewform?edit_requested=true

 

Posted by 멋지다마라송