zabbix-disk-performance icon indicating copy to clipboard operation
zabbix-disk-performance copied to clipboard

FreeBSD(FreeNAS) support?

Open filipenanclarez opened this issue 5 years ago • 1 comments

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?

filipenanclarez avatar Nov 08 '19 22:11 filipenanclarez

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 ;(

filipenanclarez avatar Nov 09 '19 01:11 filipenanclarez