add plc_nodeid and plc_siteid to history records so that the web templates can
[monitor.git] / nodebad.py
index 659591d..7f512e1 100755 (executable)
@@ -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