You've already forked nrpe
make uptime check a default check
This commit is contained in:
+3
-5
@@ -32,6 +32,9 @@ command[check_needrestart]=/usr/lib/nagios/plugins/check_needrestart
|
||||
command[check_disk_usage]=/usr/lib/nagios/plugins/check_disk_usage -w {{ nrpe_disk_usage_warning }} -c {{ nrpe_disk_usage_critical }} -W {{ nrpe_disk_inode_warning }} -C {{ nrpe_disk_inode_critical }} -e /run -e /dev -e /dev/shm -e /sys -e /proc -e /sys/kernel/debug/tracing -x tmpfs -x overlay -x fuse -x proc -x devtmpfs
|
||||
command[check_rw_root]=/usr/lib/nagios/plugins/check_rofs /
|
||||
|
||||
# uptime
|
||||
command[check_uptime]=/usr/lib/nagios/plugins/check_uptime -w {{ nrpe_uptime_warning }} -c {{ nrpe_uptime_critical }}
|
||||
|
||||
{% if nrpe_mysql is defined %}
|
||||
# mysql
|
||||
command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -u {{ nrpe_mysql_user }} -p{{ nrpe_mysql_password }} -H {{ nrpe_mysql_host }} -d mysql
|
||||
@@ -142,8 +145,3 @@ command[check_nvme_temperature]=/usr/bin/sudo /usr/lib/nagios/plugins/check_nvme
|
||||
# zpool
|
||||
command[check_zpool]=/usr/bin/sudo /usr/lib/nagios/plugins/check_zpool_health {{ nrpe_zpool_name }}
|
||||
{% endif %}
|
||||
|
||||
{% if nrpe_uptime is defined %}
|
||||
# uptime
|
||||
command[check_uptime]=/usr/lib/nagios/plugins/check_uptime -w {{ nrpe_uptime_warning }} -c {{ nrpe_uptime_critical }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user