Hello,
We must extract the data from Zabbix database into a csv file. I find the solution for the extraction of the "trends" value for "simple" data stored, but for the data stored in delta such the bandwith of the Linux interface, I don't find yet the solution.
This is my mysql request :
Someone has an idea why this don't work for all values stored in delta ?
We must extract the data from Zabbix database into a csv file. I find the solution for the extraction of the "trends" value for "simple" data stored, but for the data stored in delta such the bandwith of the Linux interface, I don't find yet the solution.
This is my mysql request :
mysql -uUSER -pPASSWORD --batch --silent -e "SELECT CONCAT( hosts.host, ';', trends_uint.value_avg, ';', FROM_UNIXTIME(trends_uint.clock) ) FROM DATABASE.hosts,DATABASE.items,DATABASE.trends_uint WHERE hosts.hostid=items.hostid AND trends_uint.itemid=items.itemid AND items.description = 'ITEM_DESCRIPTION' AND hosts.host = 'HOSTNAME' ORDER BY trends_uint.clock ASC"
Comment