Ad Widget

Collapse

getting history from item.get method using pyzabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Molusco
    Junior Member
    • Dec 2019
    • 20

    #1

    getting history from item.get method using pyzabbix

    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!
Working...