Monitoring system health
In this recipe, we'll build on the techniques and the code produced in Chapter 7, Monitoring and Maintaing JUNOS, and we'll extend it to make a more generalized NETCONF collector tool that is able to poll general system health properties such as CPU workload.
Getting ready
In order to complete this recipe, you'll need:
- Access to a development/management platform, with the following software available:
- Node.js v4 or v6
- Access to JUNOS devices that you want to monitor, all pre-configured with NETCONF-over-SSH services enabled and credentials available.
You need a working knowledge of JavaScript, and the common Node.js pattern of calling a function or method and providing a callback completion handler to deal with the result of the call. You should have already completed Chapter 7, Monitoring and Maintaining JUNOS, because we'll use that source code, and monitor it to extend it.
How to do it...
We're going to use the existing framework established in the previous recipe in...