Skip to main content


If CentOS 7:

rpm -Uvh

If CentOS 8:

rpm -Uvh
yum --enablerepo=epel -y install nrpe nagios-pluginsyum --enablerepo=epel -y list nagios-plugins*sudo systemctl enable nrpe.servicesudo systemctl start nrpe.service


title: NRPE -

category: Linux#

#!/bin/bash if [ find /var/local/lib/x/ -type f -mmin -120 | wc -l -ge 20 ] then echo "OK - 20 or more files were changed during the last 120 minutes in /var/local/lib/x/" else echo "CRITICAL - Less than 20 files were changed during the last 120 minutes in /var/local/lib/x/"


title: NRPE - Error Check Disk

category: Linux#

The steps below deal with the issue DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied

sudo chown root:root /usr/lib/nagios/plugins/check_disksudo chmod u+s /usr/lib/nagios/plugins/check_disksudo chmod o+x /usr/lib/nagios/plugins/check_disk


Ignore the partition from check. If you read manpage carefully, you can use -A to check all path, then use -I to ignore path that match regex:

/usr/lib64/nagios/plugins/check_disk -w 10% -c 5% -A -I '/drop-zone/*'


title: NRPE - nrpe.cfg

category: Linux#

log_facility=daemon pid_file=/var/run/nagios/ server_port=5666 nrpe_user=nagios nrpe_group=nagios allowed_hosts=,x.x.x.x/24

dont_blame_nrpe=0 allow_bash_command_substitution=0 debug=0 command_timeout=60 connection_timeout=300 command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 command[check_dataincoming]=/usr/local/bin/ command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -W 10% -K 5% include=/etc/nagios/nrpe_local.cfg include_dir=/etc/nagios/nrpe.d/