Hello,
I'm trying to setup hard disk monitoring on my server using zabbix latest version (2.0).
I'm using "UserParameter" in zabbix_agentd.conf. For some of them it works, for others, it doesn't.
Here are the user parameters I use :
- this one works :
Both CLI and zabbix frontend get my datas and it works just fine.
- this one doesn't work
Frontend shows "no data" and turn my item from enabled to not supported after few seconds.
CLI works though so it's quite strange :
Of course zabbix's item name are the same in the frontend and the config file.
Thanks !
F.Valentin
I'm trying to setup hard disk monitoring on my server using zabbix latest version (2.0).
I'm using "UserParameter" in zabbix_agentd.conf. For some of them it works, for others, it doesn't.
Here are the user parameters I use :
- this one works :
Code:
UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$7}'
- this one doesn't work
Code:
UserParameter=custom.vfs.dev.disk.use[*],iostat -xk 1 2 | grep sda |tail -n 1 | sed -e's/ */ /g' | cut -d ' ' -f 12
CLI works though so it's quite strange :
Code:
zabbix_get -s 127.0.0.1 -k custom.vfs.dev.disk.use[sda] 4,40
Thanks !
F.Valentin

Comment