|
|
|
@ -226,7 +226,6 @@ import copy
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from zabbix_api import ZabbixAPI, ZabbixAPISubClass
|
|
|
|
from zabbix_api import ZabbixAPI, ZabbixAPISubClass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extend the ZabbixAPI
|
|
|
|
# Extend the ZabbixAPI
|
|
|
|
# Since the zabbix-api python module too old (version 1.0, no higher version so far),
|
|
|
|
# Since the zabbix-api python module too old (version 1.0, no higher version so far),
|
|
|
|
# it does not support the 'hostinterface' api calls,
|
|
|
|
# it does not support the 'hostinterface' api calls,
|
|
|
|
@ -238,7 +237,6 @@ try:
|
|
|
|
ZabbixAPI.__init__(self, server, timeout=timeout, user=user, passwd=passwd, validate_certs=validate_certs)
|
|
|
|
ZabbixAPI.__init__(self, server, timeout=timeout, user=user, passwd=passwd, validate_certs=validate_certs)
|
|
|
|
self.hostinterface = ZabbixAPISubClass(self, dict({"prefix": "hostinterface"}, **kwargs))
|
|
|
|
self.hostinterface = ZabbixAPISubClass(self, dict({"prefix": "hostinterface"}, **kwargs))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HAS_ZABBIX_API = True
|
|
|
|
HAS_ZABBIX_API = True
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
HAS_ZABBIX_API = False
|
|
|
|
HAS_ZABBIX_API = False
|
|
|
|
|