Small disk read/write benchmark
usage: java -jar gmNFSStat.jar -d,--dir output directory path (nfs mount point) -h,--help print this help -i,--iterate number fo iterations (default = 3) -o,--output result file -s,--size size of test file in MB (default = 5) --silent full silent mode. No out (can used with --output). Ignored if verbose enabled -t,--timeout running timeout in seconds (default = 10) -v,--verbose enable verbose output
Zabbix config
User parameter
UserParameter=check.nfs[*],/path/to/gmNFSStat/runner.sh $1 $2 $3
Item
type = Zabbix agent key = check.nfs[/path/to/test_dir/,/tmp/check_nfs_speed.txt,read] Type of information = Numeric (float) Units = MB/s
Script
Usage: /path/to/gmNFSStat/runner.sh $1 $2 $3 $1 - test_directory. Which directory used for placing test file $2 - result_file. Which file will use for store result $3 - "read" or "write" argument for grep in result_file