Skip to content

Instantly share code, notes, and snippets.

@javierwilson
Last active January 12, 2017 05:13
Show Gist options
  • Save javierwilson/27c2180313fa202cc120dbc11fb6af5e to your computer and use it in GitHub Desktop.
Save javierwilson/27c2180313fa202cc120dbc11fb6af5e to your computer and use it in GitHub Desktop.
NRPE config
#
# /etc/nrpe.d/nrpe.local.cfg
#
# allows nagios_server to connect to NRPE and adds additional commands
#
#
allowed_hosts=MONITOR
command[check_yum]=/usr/lib64/nagios/plugins/check_yum
command[check_pgsql]=/usr/lib64/nagios/plugins/check_pgsql
command[check_mysql]=/usr/lib64/nagios/plugins/check_mysql -u nrpe
command[check_mailq]=/bin/sudo /usr/lib64/nagios/plugins/check_mailq -w 5000 -c 20000
# -i '/var/lib/docker/.*' : excludes docker bc of permission problems for nrpe (or all non root users)
command[check_all_disks]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% --all -i /sys -i '/var/lib/docker/.*'
command[check_vda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/vda1
command[check_xvda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/xvda1
command[check_sda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda1
command[check_sda2]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda2
command[check_sda3]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda3
command[check_sda4]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda4
command[check_sda5]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda5
command[check_sdb1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sdb1
command[check_supervisord]=/bin/sudo /usr/lib64/nagios/plugins/check_supervisorctl
command[check_puppet]=/usr/lib64/nagios/plugins/check_puppet -a
command[check_puppetmaster]=/usr/lib64/nagios/plugins/check_puppet -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment