git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert GetNodeNetworks to GetInterfaces and nodenetwork_ids to interface_ids
[monitor.git]
/
zabbix
/
zabbixsync.py
diff --git
a/zabbix/zabbixsync.py
b/zabbix/zabbixsync.py
index
aaee4ff
..
407d801
100755
(executable)
--- a/
zabbix/zabbixsync.py
+++ b/
zabbix/zabbixsync.py
@@
-22,8
+22,8
@@
def get_site_iplist(loginbase):
# TODO: if it is, then we need to break up the discovery rule.
ip_list = ""
for node in node_list:
# TODO: if it is, then we need to break up the discovery rule.
ip_list = ""
for node in node_list:
- if len(node['
nodenetwork
_ids']) > 0:
- ip = netid2ip[node['
nodenetwork
_ids'][0]]
+ if len(node['
interface
_ids']) > 0:
+ ip = netid2ip[node['
interface
_ids'][0]]
if len(ip_list) > 0: ip_list += ","
ip_list += ip
if len(ip_list) > 0: ip_list += ","
ip_list += ip