You've already forked nrpe
add check_apt_update
This commit is contained in:
@@ -22,6 +22,7 @@ command[check_systemd_failed]=/usr/lib/nagios/plugins/check_systemd_failed
|
||||
command[check_needrestart]=/usr/lib/nagios/plugins/check_needrestart
|
||||
command[check_reboot_required]=/usr/lib/nagios/plugins/check_reboot_required
|
||||
command[check_ntp_time]=/usr/lib/nagios/plugins/check_ntp_time -H {{ nrpe_ntp_host }} -w {{ nrpe_ntp_warning }} -c {{ nrpe_ntp_critical }}
|
||||
command[check_apt_update]=/usr/lib/nagios/plugins/check_apt_update
|
||||
|
||||
# disk
|
||||
# -w <%>: Warning threshold for block usage.
|
||||
|
||||
@@ -2,6 +2,7 @@ nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_postfix_mailqueue -w {{
|
||||
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_exim_mailqueue -w {{ nrpe_mailq_warning }} -c {{ nrpe_mailq_critical }}
|
||||
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_raid
|
||||
nagios ALL=(ALL) NOPASSWD: /usr/sbin/needrestart -b -l
|
||||
nagios ALL=(ALL) NOPASSWD: /usr/bin/apt -o APT\:\:Update\:\:Error-On-NoReleaseUrls=true -q -y update
|
||||
|
||||
{% if nrpe_kubernetes_controlplane is defined %}
|
||||
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_cilium_health
|
||||
|
||||
Reference in New Issue
Block a user