diff --git a/zabbix/zabbix_api.py b/zabbix/zabbix_api.py index aa8bfdf..bd98261 100644 --- a/zabbix/zabbix_api.py +++ b/zabbix/zabbix_api.py @@ -136,6 +136,7 @@ def __init__(self, server='http://localhost/zabbix', user=None, passwd=None, log self.drule = ZabbixAPIDRule(self,**kwargs) self.history = ZabbixAPIHistory(self,**kwargs) self.maintenance = ZabbixAPIMaintenance(self,**kwargs) + self.proxy = ZabbixAPIProxy(self,**kwargs) self.id = 0 self.debug(logging.INFO, "url: "+ self.url) @@ -1131,6 +1132,27 @@ def massUpdate(self,**opts): """ return opts + @dojson('hostgroup.exists') + @checkauth + def exists(self,**opts): + """ * Check if HostGroups exists + * + * {@source} + * @access public + * @static + * @since 1.8.3 + * @version 1 + * + * @param array $data + * @param array $data['nodeids'] + * @param array $data['groupid'] + * @param array $data['name'] + * @return boolean +""" + print "Got RESULT" + print opts + return opts + class ZabbixAPIApplication(ZabbixAPISubClass): @dojson('application.get') @@ -2973,6 +2995,12 @@ def get(self,**opts): def delete(self,**opts): return opts +class ZabbixAPIProxy(ZabbixAPISubClass): + @dojson('proxy.get') + @checkauth + def get(self,**opts): + return opts + class ZabbixAPIMaintenance(ZabbixAPISubClass): @dojson('maintenance.create') @checkauth @@ -2994,4 +3022,4 @@ def get(self,**opts): @dojson('maintenance.update') @checkauth def update(self,**opts): - return opts \ No newline at end of file + return opts