I am trying to send some data to an speficic item on the Zabbix Server. I found this library: https://github.com/kmomberg/pyZabbixSender In the example:
#Creating a sender object
z = pyZabbixSender(server="zabbix-server", port=10051)
# Adding data (without timestamp)
z.addData(hostname="test_host", key="test_trap_1", value="12")
z.addData("test_host", "test_trap_2", "2.43")
# Adding data (with timestamp)
z.addData("test_host", "test_trap_2", "2.43", 1365787627)
What Format is "1365787627" ? What Format is Zappix Server using? How to I get this in python script:
Background: I am have a remote Zabbix Server whichs is polling Data from an Raspberry Pi over the Agent. The interval time for the polling is about 2 sec. ->The Zabbix Server is not always online and I would like to store the data on the Raspberry Pi (mySQL database) and after I start the Zappix Server, I would like to import the Data (around 10-30 min of Sensor-Data ) by simply using a python script with this library
I hope somebody can help.
Sorry, could be newbie question->never worked with Zabbix before. By the way, if you have a better idea, how to do this, let me know :)
Greetings, Günther