Project

General

Profile

Setting up NRPE on Debian server » History » Version 1

Jamila Khan, 08/19/2014 04:56 PM

1 1 Jamila Khan
h1. Setting up NRPE on Debian server
2
3
{{>toc}}
4
5
Process:
6
7
h3. Install 
8
9
<pre>
10
aptitude install nagios-nrpe-server nagios-plugins-basic
11
</pre>
12
13
h3. Edit config file
14
15
<pre>
16
vim /etc/nagios/nrpe.cfg
17
</pre>
18
19
* Add IP_v4_of_Nagios_server to allowed_hosts
20
21
h3. start service
22
23
<pre>
24
service nagios-nrpe-server restart
25
</pre>
26
27
h3. check that service is running
28
29
<pre>
30
netstat -tpln | grep 5666
31
</pre>
32
33
h3. edit local config to add specified checks
34
35
<pre>
36
vim /etc/nagios/nrpe_local.cfg
37
</pre>
38
39
in this instance I'm adding disk checks for all the disks
40
41
<pre>
42
0 octavia:/etc/nagios# cat nrpe_local.cfg 
43
######################################
44
# Do any local nrpe configuration here
45
######################################
46
47
command[check_nrpe_daemon]=/bin/echo "NRPE OK"
48
49
# disk checks
50
command[check_disk_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-root
51
command[check_disk_tmp]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-tmp
52
command[check_disk_var]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-var
53
command[check_disk_mysql]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-var+lib+mysql
54
command[check_disk_home]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-home
55
</pre>
56
57
58
59
http://xmodulo.com/2014/03/nagios-remote-plugin-executor-nrpe-linux.html
60
https://wiki.icinga.org/display/howtos/Setting+up+NRPE+with+Icinga
Go to top