Custom Device Labels in “The Dude” nms

Custom Device Labels in “The Dude” nms

The Dude is a powerful network monitoring server from MikroTik. The majority of people I see only use it to monitor their MikroTik routers and wireless devices. In this article I will introduce you to a variety of ways I use The Dude to query SNMP values from many different types of devices.

Out of the box, The Dude will sometimes (if SNMP credentials are correct) display CPU load, memory and disk usage for monitored devices. This data is presented in the device’s label. The following screenshot illustrates how to edit the label.

Another technique you will use to find the values you want to present in the label is by running snmpwalk on a device. Here is how to snmpwalk a device and copy the device uptime oid.

If we want to present this SNMP value in our label use the oid() function wrapped in square brackets like this.

Now that you have the concept down, lets look at some examples of SNMP data from a variety of devices.

MikroTik RB2011 Router – Custom Label

Here I’ve just assembled some of the useful data presented by the MikroTik RB2011 RouterBoard router. It’s a bit overkill but gives you an idea of what’s possible.

Presented on The Dude network map the above label looks like this. I have also uploaded and added an image of the RB2011.

Ubiquiti AirFiber AF-5X – Custom Label

This example shows the chain0 and chain1 receive signal levels and wireless center frequency for an AirFiber PtP Wireless Link.

Here is what this device physically looks like and what the label looks like on The Dude map.

CyberPower UPS w/ RMCARD205

This example shows how you can use SNMP data to gather battery runtime, temperature, and voltage from a CyberPower Rack Mount UPS. I’ve had to do some odd spacing to get the labels and values to lineup properly.

Here is a photo of the device and the label as presented on The Dude.

Cordex CXCM Remote Power/Battery Controller

This is a more specialized example from a CXCM Power controller which handles remote cabinet battery charging and power supplies.

The Device on “The Dude” w/ above Custom Label

AVTech Environmental Monitor – Custom Label

Abstracting Labels up into functions

With this next example I have packaged up the oid() calls into several reusable functions. If you have many devices that share the same label this is a better approach. If you want to make changes to what’s presented in the label you only have to edit the called function instead of each device’s label.

CyberPower ATS PDU (Auto Transfer)- Custom Label

The label_cyberpower_atspdu() Function

The cyberpower_ats_srca_voltage() Function

The cyberpower_ats_srcb_voltage() Function

As you can see the syntax is different, all outputed data must be concatenated together.  The ATS devices can be seen on the map along with the AVTech Room Monitoring in the screenshot above.

Dell PowerEdge Servers

[Example coming soon] but you can access (via SNMP) a wealth of data about Dell PowerEdge Servers if you install and configure the Windows Server SNMP feature along with the Dell OpenManage Tools.  SNMP data such as temperature, RAID controller, disk, power supply, chassis fan statuses are available.

I hope you found this article about configure The Dude from MikroTik useful, feel free to leave a comment below.

Leave a Reply

Your email address will not be published. Required fields are marked *