X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=nagios%2Fplc2nagios.py;h=de74d424858535eab3f185caba592e036ba8e18a;hp=d7da592f3e434575e6d98531ba7ac3b76140c667;hb=16b7bc48471b0695e72320fbcf761db695af032e;hpb=36067abfce5ba638e6166d754bc8c573f164dceb diff --git a/nagios/plc2nagios.py b/nagios/plc2nagios.py index d7da592..de74d42 100755 --- a/nagios/plc2nagios.py +++ b/nagios/plc2nagios.py @@ -97,10 +97,10 @@ for site in plcdb: for node in nodes: hn = node['hostname'] - if len(node['nodenetwork_ids']) == 0: + if len(node['interface_ids']) == 0: 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)