X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nodebad.py;fp=nodebad.py;h=7f512e16656e3a499887240d645b495061fae530;hb=0a49240ceff10f9da64fd470ed883bb17a11c458;hp=659591dd7bc5535eaa9d2c1caa1c9cea605c92f5;hpb=3f4df5945bbfb4592a164d929cf22c31d5fba50e;p=monitor.git diff --git a/nodebad.py b/nodebad.py index 659591d..7f512e1 100755 --- a/nodebad.py +++ b/nodebad.py @@ -41,6 +41,7 @@ def check_node_state(rec, node): print rec.plc_node_stats boot_state = rec.plc_node_stats['boot_state'] last_contact = rec.plc_node_stats['last_contact'] + node.plc_nodeid = rec.plc_node_stats['node_id'] else: boot_state = "unknown" last_contact = None @@ -53,6 +54,7 @@ def check_node_state(rec, node): else: node.haspcu = False + # NOTE: 'DOWN' and 'DEBUG' are temporary states, so only need # 'translations' into the node.status state # 'BOOT' is a permanent state, but we want it to have a bit of