Additional scripts for Zabbix agent on Linux to discover and monitor several services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
583 B

# Description: Software Raid Status
# Type: Agent or Agent (active)
# Key: raid.sw.status
# Type of Information: Character
# Show Value: As is
# The value reported is like:
# OK: md3:raid1:2 drives:931GB:Optimal md2:raid1:2 drives:931GB:Optimal md1:raid1:2 drives:101MB:Optimal
# You can add a simple trigger on this check like:
# { hostname:raid.sw.status.str( OK ) }=0
UserParameter=raid.sw.status[*],/var/lib/zabbix/bin/check_raid_mdadm --device=$1
# This is a discovery rule to find configured RAID devices
UserParameter=raid.sw.discovery,/var/lib/zabbix/bin/disco_raid_mdadm