OpenCDN a open-source management platform, which can help you build node-hosts in 5 minutes.The system consists of the Control Center(CC) and Node Host(NH). The CC can monitor a basic system information on each node, such as cpu usage and health status. CC also can collect logs  of nginx from all node-hosts. You'd better reference to source code.