def on_node_started(client): "Use it only in node context" import socket report = NodeOnlineReport.create(client.oid, hostname=socket.gethostname()) report.storages = Node.get_storage_points(client) client.publish_report(report)