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]
/
nagios
/
plc2nagios.py
diff --git
a/nagios/plc2nagios.py
b/nagios/plc2nagios.py
index
d7da592
..
de74d42
100755
(executable)
--- a/
nagios/plc2nagios.py
+++ b/
nagios/plc2nagios.py
@@
-97,10
+97,10
@@
for site in plcdb:
for node in nodes:
hn = node['hostname']
for node in nodes:
hn = node['hostname']
- if len(node['
nodenetwork
_ids']) == 0:
+ if len(node['
interface
_ids']) == 0:
continue
continue
- ip = netid2ip[node['
nodenetwork
_ids'][0]]
+ ip = netid2ip[node['
interface
_ids'][0]]
if lon_x is not -1 and lat_y is not -1:
coords="%s,%s" % (lon_x, lat_y)
if lon_x is not -1 and lat_y is not -1:
coords="%s,%s" % (lon_x, lat_y)