Add checks for reboot-required

This commit is contained in:
Salt 2021-08-18 23:01:26 -05:00
parent 84fa0af8d2
commit 888353910d
2 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,9 @@
script: check_users
option: -w 3 -c 5
nrpe_command_extra:
check_reboot_required:
script: /usr/local/bin/monitoring-scripts/check_reboot_required
option: 604800
check_systemd_ansiblepull_service:
script: /usr/local/bin/monitoring-scripts/check_systemd_unit
option: ansible-pull.service

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 Reboot Required
check_command check_nrpe!check_reboot_required
hostgroup_name nagios-nrpe
}
# Systemd unit checks
define service {
use ansible-generic-service