Hi All,
I just trying to used extend agent function on Zabbix 1.1.4 with UserParameter statament but I got ZBX_NOTSUPPORTED in the agent LOG . Here full information :
in /etc/zabbix/zabbix_agentd.conf
UserParemeter=free.mem,/usr/local/zabbix/scripts/mem_free
The /usr/local/zabbix/scripts/mem_free script
#!/bin/sh
j=0
free | head -n3 | tail -n2 > /tmp/mem.tmp
for i in $(awk '{print $4}' /tmp/mem.tmp) ; do
j=$(expr $j + $i)
done
echo $j
the item configuration in Zabbix
Description : Free memory in Kb
Type : Zabbix agent
Key : free.mem
Type of information : Numeric (float)
...
Store value : As is
And that is all . I past more than 3 hours looking for a error and could not find none .
Please any help will be apprecciated .
Best regards ,
Saulo Augusto Silva
I just trying to used extend agent function on Zabbix 1.1.4 with UserParameter statament but I got ZBX_NOTSUPPORTED in the agent LOG . Here full information :
in /etc/zabbix/zabbix_agentd.conf
UserParemeter=free.mem,/usr/local/zabbix/scripts/mem_free
The /usr/local/zabbix/scripts/mem_free script
#!/bin/sh
j=0
free | head -n3 | tail -n2 > /tmp/mem.tmp
for i in $(awk '{print $4}' /tmp/mem.tmp) ; do
j=$(expr $j + $i)
done
echo $j
the item configuration in Zabbix
Description : Free memory in Kb
Type : Zabbix agent
Key : free.mem
Type of information : Numeric (float)
...
Store value : As is
And that is all . I past more than 3 hours looking for a error and could not find none .
Please any help will be apprecciated .
Best regards ,
Saulo Augusto Silva