Hi, Im using pyzabbix to get data from zabbix, and I was wandering if there is a way to get the history of the las four hours, instead of last value using this line of code,
time_till = time.mktime(datetime.now().timetuple())
time_from = time_till - 60 * 60 * 4 # 4 hours
items= zh.item.get(output=['hostid', 'value', 'name', 'key_', 'status'], search={'key_':'vfs.fs.size'})
thanks!
time_till = time.mktime(datetime.now().timetuple())
time_from = time_till - 60 * 60 * 4 # 4 hours
items= zh.item.get(output=['hostid', 'value', 'name', 'key_', 'status'], search={'key_':'vfs.fs.size'})
thanks!