Ad Widget

Collapse

Python library for Zabbix API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SergejZ
    Junior Member
    • May 2012
    • 6

    #76
    Guys,

    Do you know API for Zabbix 2.2 ?
    I found https://github.com/lukecyca/pyzabbix/wiki, but I'm not sure.

    Comment

    • mcmyst
      Member
      • Feb 2012
      • 72

      #77
      Is the fork of gescheit working with zabbix 2.2 ?

      Comment

      • SergejZ
        Junior Member
        • May 2012
        • 6

        #78
        As I see
        Zabbix 1.8 and 2.0 are supported.

        Comment

        • .GS.
          Junior Member
          • Oct 2013
          • 6

          #79
          Could you help me please. How to install library? i've got the error:

          Code:
          root@ZServer:/home/mak/zabbix_api-master# dir
          1.8  2.0  install.sh  README.md  scripts  setup.py
          root@ZServer:/home/mak/zabbix_api-master# sh install.sh
          install.sh: 6: install.sh: Syntax error: word unexpected (expecting ")")
          I tried to install that library https://github.com/gnetsman/zabbix_api

          Zabbix 2.4.3
          Python 2.7.3
          GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)
          Last edited by .GS.; 16-02-2015, 17:56.

          Comment

          • gescheit
            Senior Member
            • Jul 2007
            • 156

            #80
            try bash install.sh

            Comment

            • .GS.
              Junior Member
              • Oct 2013
              • 6

              #81
              Thank you a lot! Module was installed:

              Code:
              root@ZServer:/usr/local/lib/python2.7/dist-packages# dir
              zabbix_api  zabbix_api-0.4.egg-info  zabbix_api-1.0.egg-info  zabbix_api.py  zabbix_api.pyc
              But i've got another problem. Python doesn't see that module:

              Code:
              root@ZServer:/home/mak/zabbix_api-master/2.0# dir
              zabbix_credentials.py  zabbix_host_add.py  zabbix_host_del.py  zabbix_methods.py
              root@ZServer:/home/mak/zabbix_api-master/2.0# python zabbix_host_add.py
              Traceback (most recent call last):
                File "zabbix_host_add.py", line 3, in <module>
                  from zabbix_api.zabbix_methods import *
                File "/usr/local/lib/python2.7/dist-packages/zabbix_api/zabbix_methods.py", line 4, in <module>
                  from zabbix_api.zabbix_api import ZabbixAPI
              ImportError:[B] No module named zabbix_api[/B]
              What can i do?

              Great thanks! Sorry for stupid questions.

              Comment

              Working...