mipsbe:
First of all create a new function named:
mipsbe_voltage
In Code enter:
oid ("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrHealth.mtxrHlVoltage.0")
Create another function named:
mipsbe_voltage_size (for use later on)
Since the default function name
cpu_mem_disk can't be edited you will have to create a new function.
Name it:
cpu_mem_disk_volt
concatenate(
if(cpu_usage_available(), concatenate("cpu: ", cpu_usage(), "% "), ""),
if(mem_usage() > 0, concatenate("mem: ", round(mem_usage()), "% "), ""),
if(virtual_mem_usage() > 0, concatenate("virt: ", round(virtual_mem_usage()), "% "), ""),
if(hdd_usage() > 0, concatenate("disk: ", round(hdd_usage()), "% "), ""),
if(mipsbe_voltage() > 0, concatenate("Volt: ", (mipsbe_voltage()), "V "), "")
)
Next create yet another function called:
device_performance_v (the function
device_performance is read only, similar to
cpu_mem_disk)
I simply created the suffix of _v to identify it as one to include voltage but feel free to rename it whatever as long as you use the same name in the next section.
if(
string_size(cpu_mem_disk_volt()) > 0,
concatenate(cpu_mem_disk_volt(), "
"),
""
)
Now to activate it on the map, you need to go into The Dude Settings and in the Map tab, expand
Device Appearance
Change the label to be:
[Device.Name]
[device_performance_v()][Device.ServicesDown]
If you go into your Network Maps now it should show the voltage for those that can view it.