zabbix-disk-performance
zabbix-disk-performance copied to clipboard
FreeBSD(FreeNAS) support?
Your counters is exactly what i need. Works perfectly on CentOS.
But i try to use in FreeBSD and get a error.
Is possible make this avaliable to FreeBSD?
Or can tell me how can'i do it?
Using version without python, in the following line ...
UserParameter=custom.vfs.dev.discovery,DEVS=grep -E -v 'fd|loop|ram|sr|major|^$|dm-' /proc/partitions | awk '{if($2==0||($2%8==0))print $4}'|sed 's/\//\!/g'
;POSITION=1;echo "{";echo " "data":[";for DEV in $DEVS;do if [ $POSITION -gt 1 ];then echo -n ",";fi;echo -n " { "{#DEVICENAME}": "$DEV"}";POSITION=expr $POSITION + 1
;done;echo "";echo " ]";echo "}"
... i try to change '/proc/partitions' with 'gpart show -p' but is much complex to me make it work ;(