Ad Widget

Collapse

zabbix API with python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • graloglearn
    Junior Member
    • Jan 2020
    • 3

    #1

    zabbix API with python

    Hi Team,want use zabbix API using pythoh scripting. As i am seeing in zabbix API document we can see all the api are using json script.
    If we want to use the zabbix API how to use.
    For Ex: host.get is an API, In Python how to use the API. Could you please help on this. I have gone through the below link but i have not understand because all in json.

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    The Zabbix API uses very common JSON RPC conventions, so any tutorial on using Python for JSON RPC will be relevant. The basic idea is that you create a JSON data structure that contains information about what you want to do and then POST that data to a particular API "endpoint". The Zabbix API documentation explains what each endpoint expects for the JSON it accepts, and what some information on what you should expect as a return value (also in JSON).

    Comment

    • vlad$$$
      Junior Member
      • Mar 2020
      • 16

      #3
      This one worked for me.

      Comment

      Working...