This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
server/playbooks/roles/nrpe/defaults/main.yml

36 lines
No EOL
1.6 KiB
YAML

---
# Port number we should wait for connections on.
nrpe_port: 5666
# Comma-delimited list of IP address or hostnames that are allowed to talk
# to the NRPE daemon.
nrpe_allowed_hosts: []
# Allow using seed from weak location, force use of /dev/[u]random instead
# NRPE default: 1
nrpe_allow_weak_random_seed: 0
# Mapping of command definitions that this daemon will run.
# The mapping key is a command name, the value is a command line.
# If the command is a core plugin or a plugin installed in {{nrpe_plugins_dir}},
# then absolute path is not necessary, use just a filename (it will be
# automatically prefixed for nrpe.cfg).
#
# Example:
# check_swap: check_swap -w 60% -c 30%
# check_postgres: check_postgres --action=connection
# check_lemur: /home/hody/nrpe/check_lemur --alive
nrpe_commands:
# free disk space: warn <20%, critical <8% / inodes: warm <20%, critical <8%,
# exclude-type: tmpfs, devtmpfs, none (binds)
check_disk: check_disk -w 20% -c 8% -W 20% -K 8% -X tmpfs -X devtmpfs -X none
# free swap space: warn <60%, critical <30%
check_swap: check_swap -w 60% -c 30%
check_load: "check_load \
-w {{ ansible_processor_vcpus * 1.5 }},{{ ansible_processor_vcpus }},{{ ansible_processor_vcpus * 0.7 }} \
-c {{ ansible_processor_vcpus * 3 }},{{ ansible_processor_vcpus * 1.5 }},{{ ansible_processor_vcpus * 0.9 }}"
check_total_procs: check_procs -w 200 -c 250 -s DRSTZ
check_zombie_procs: check_procs -w 3 -c 10 -s Z
check_syslog_procs: 'check_procs -c 2: --command=syslog-ng'
check_apt: 'check_apt'
check_ntp_time: 'check_ntp_time -H fr.pool.ntp.org -w 1 -c 2'