Fix up some checks, add the swap check

This commit is contained in:
Salt 2021-08-15 15:21:46 -05:00
parent 9f4727b6c9
commit 668ef3a75f
2 changed files with 8 additions and 2 deletions

View File

@ -24,10 +24,10 @@
option: -r -w 0.8,0.8,0.8 -c 1.0,0.9,0.9
check_swap:
script: check_swap
option: -n ok -w 70% -c 80%
option: -n ok -w 20% -c 10%
check_users:
script: check_users
option: -w 3 -c 10
option: -w 3 -c 5
tags: [ nrpe ]
- hosts: all
tasks:

View File

@ -108,6 +108,12 @@ define service {
check_command check_nrpe!check_load
hostgroup_name nagios-nrpe
}
define service {
use ansible-generic-service
service_description NRPE Check Swap
check_command check_nrpe!check_swap
hostgroup_name nagios-nrpe
}
# Hostgroups
# Everything here is dynamically-generated based on tags from Netbox