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
AM nagios/plc2nagios.py
[monitor.git]
/
syncplcdb.py
diff --git
a/syncplcdb.py
b/syncplcdb.py
index
d83e8d3
..
b0e42a6
100755
(executable)
--- a/
syncplcdb.py
+++ b/
syncplcdb.py
@@
-28,6
+28,9
@@
def dsn_from_dsln(d_sites, id2lb, l_nodes):
if node['site_id'] in id2lb.keys():
login_base = id2lb[node['site_id']]
else:
if node['site_id'] in id2lb.keys():
login_base = id2lb[node['site_id']]
else:
+ print "%s has a foreign site_id %s" % (node['hostname'],
+ node['site_id'])
+ continue
for i in id2lb:
print i, " ", id2lb[i]
raise Exception, "Node has missing site id!! %s %d" %(node['hostname'], node['site_id'])
for i in id2lb:
print i, " ", id2lb[i]
raise Exception, "Node has missing site id!! %s %d" %(node['hostname'], node['site_id'])