Project

General

Profile

Actions

Setting up NRPE on Debian server » History » Revision 1

Revision 1/6 | Next »
Jamila Khan, 08/19/2014 04:56 PM


Setting up NRPE on Debian server

Process:

Install

aptitude install nagios-nrpe-server nagios-plugins-basic

Edit config file

vim /etc/nagios/nrpe.cfg
  • Add IP_v4_of_Nagios_server to allowed_hosts

start service

service nagios-nrpe-server restart

check that service is running

netstat -tpln | grep 5666

edit local config to add specified checks

vim /etc/nagios/nrpe_local.cfg

in this instance I'm adding disk checks for all the disks

0 octavia:/etc/nagios# cat nrpe_local.cfg 
######################################
# Do any local nrpe configuration here
######################################

command[check_nrpe_daemon]=/bin/echo "NRPE OK" 

# disk checks
command[check_disk_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-root
command[check_disk_tmp]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-tmp
command[check_disk_var]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-var
command[check_disk_mysql]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-var+lib+mysql
command[check_disk_home]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_octavia0-home

http://xmodulo.com/2014/03/nagios-remote-plugin-executor-nrpe-linux.html
https://wiki.icinga.org/display/howtos/Setting+up+NRPE+with+Icinga

Updated by Jamila Khan over 10 years ago · 1 revisions

Also available in: PDF HTML TXT

Go to top