From d00d172081f38f37e4726187a81fee7ba5c3e077 Mon Sep 17 00:00:00 2001 From: myeagleflies Date: Mon, 10 Dec 2012 11:14:24 +0000 Subject: [PATCH] Update zabbix/zabbix_rpc_test.py Fixing bug in test file. 'extendoutput' does not work. --- zabbix/zabbix_rpc_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix/zabbix_rpc_test.py b/zabbix/zabbix_rpc_test.py index 3b4b1a9..9dd3d61 100755 --- a/zabbix/zabbix_rpc_test.py +++ b/zabbix/zabbix_rpc_test.py @@ -58,7 +58,7 @@ def errmsg(msg): sys.stderr.write(str(e) + '\n') try: - for host in zapi.host.get({ 'monitored_hosts' : True,'extendoutput' : True}): + for host in zapi.host.get({ 'monitored_hosts' : True,'output' : 'extend'}): if host['dns'] == "": print "%s - %s - %s" % (host['host'], host['ip'], host['useip']) else: