Advertisement
Typhoon

Zabbix UserParameter Example

Oct 12th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #cat /volume1/Zabbix/conf/zabbix_agentd/userparameter_raid.conf
  2.  
  3. # Raid Status on Disk Station
  4.  
  5. # Raid Full Information
  6. UserParameter=Raid.FullState[*],mdadm --detail /dev/$1
  7.  
  8. # Raid Level
  9. UserParameter=Raid.Level[*],mdadm --detail /dev/$1 | grep 'Raid Level' | awk '{print toupper( $ 4 )}'
  10.  
  11. # Raid State
  12. UserParameter=Raid.State[*],mdadm --detail /dev/$1 | grep 'State :' | awk '{print toupper( $ 3 $ 4 $ 5 )}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement