added below to my conf and restarted agentd
UserParameter=mysql.totalsize,mysqlshow --status zabbix | cut -d \| -f 7,9,10 -s --output-delimiter="" | awk '{total += $1+$2+$3} END {print total}'
it works :
./zabbix_agentd -t mysql.totalsize
mysql.totalsize [t|150396]
Q: how do u use the above to create an item for my host (zabbix-server)
tried the below using "Zabbix agent" + "int" but not supported
script[mysql.totalsize]
Userparameter[mysql.totalsize]
UserParameter=mysql.totalsize,mysqlshow --status zabbix | cut -d \| -f 7,9,10 -s --output-delimiter="" | awk '{total += $1+$2+$3} END {print total}'
it works :
./zabbix_agentd -t mysql.totalsize
mysql.totalsize [t|150396]
Q: how do u use the above to create an item for my host (zabbix-server)
tried the below using "Zabbix agent" + "int" but not supported
script[mysql.totalsize]
Userparameter[mysql.totalsize]
Comment