Using a NetLinx Master to Monitoring a System
Question:
How do I use a NetLinx master to monitoring a system?
Answer:
This attached code allows for limited system monitoring and reporting. Similar to RMS, only without a database and all the huge functionality RMS brings. This will monitor multiple systems for online/offline of devices, send emails, show details about devices. This is written for a DVX-3266, but can be adapted for any system. You will need a NetLinx controller (any will do) and a Touch Panel. This code can be very useful, if you have multiple systems and are trying to troubleshoot a problem with devices falling offline, rebooting, modules failing, etc.
The code is well commented and there are compilation warnings with instructions for adaption to your system.
The main touch panel page has a button for each room (system). In this example, most of the rooms have 2 external devices (Camera and Display).
.png)
The big button (with the room name) shows if the NetLinx master is online (green), offline (red)and if the master is online but the duet modules aren’t running (yellow). The code can be modified to look for any condition (this setup just happens to be looking for modules to be offline). The smaller button (with the ‘Switcher 5002’ tag) shows if the switcher is online (green) or offline (red). The little buttons on the outside (‘CAM’ and ‘DISP’) show if those devices are online (green) or offline (red).
.png)
Pressing any of the buttons will open a pop-up page with details about that room.
.png)
Pressing the ‘Reboot Controller’ button will open a confirm reboot page.
.png)