zabbix-agent-addons/zabbix_conf/smart.conf

12 lines
657 B
Plaintext
Raw Normal View History

2013-04-12 15:10:03 +02:00
# Discover S.M.A.R.T. capable hard drives
# The only macro returned is {#SMARTDRIVE} and value is like /dev/sda
2013-04-17 13:58:56 +02:00
UserParameter=hardware.disk.smart.discovery,/usr/bin/sudo /var/lib/zabbix/bin/disco_smart_sudo
2013-04-12 15:10:03 +02:00
# Takes two args: the drives to check, and the value to get
# eg: hardward.disk.smart[/dev/sda,Reallocated_Sector_Ct]
2013-04-17 13:58:56 +02:00
UserParameter=hardware.disk.smart[*],/usr/bin/sudo /var/lib/zabbix/bin/check_smart_sudo $1 $2
2023-12-20 16:19:21 +01:00
# New smart disk discovery/monitoring
2023-12-20 16:22:15 +01:00
UserParameter=stor.dev.discovery[*],/usr/bin/sudo /var/lib/zabbix/bin/disco_stor_dev_sudo
UserParameter=stor.dev.info[*],/usr/bin/sudo /var/lib/zabbix/bin/check_stor_dev_sudo --dev "$1" --type "$2"