I am using zabbix-agent-2.2.8-1.fc21.x86_64. I added this line directly from the example into /etc/zabbix_agentd.conf. I just renamed key. I then restarted zabbix-agent.service.
I then ran zabbix_get.
The value I get is 4096 which is the size of a directory structure. The 'du' command as supplied should return the size of the entire directory including all sub directories.
Any help on this?
Thank you,
Durwin
Code:
UserParameter=dir.size[*],dir="$1"; du -s -B 1 "${dir:-/tmp}" | cut -f1
Code:
zabbix_get -s 127.0.0.1 -p 10050 -k "dir.size[/home/userdir]"
Any help on this?
Thank you,
Durwin
Comment