On certain boards, such as mipsbe (433AH etc) you can use The Dude to monitor the voltage.
You will need to get the snmp oid for the voltage..
/system health print oid
This translates to..
iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrHealth.8.0
Create a new function in Dude called 'mipsbe-voltage' (doesn't matter) with the following code..
oid("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrHealth.8.0")/10
The /10 divides by 10
Edit the function called cpu_mem_disk and copy this..
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(mipsbe_voltage() > 0, concatenate("volt: ", (mipsbe_voltage()), "V "), ""), if(hdd_usage() > 0, concatenate("disk: ", round(hdd_usage()), "% "), "") )
As long as snmp is set up correctly, then it should display something like this.
You will need to get the snmp oid for the voltage..
/system health print oid
This translates to..
iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrHealth.8.0
Create a new function in Dude called 'mipsbe-voltage' (doesn't matter) with the following code..
oid("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrHealth.8.0")/10
The /10 divides by 10
Edit the function called cpu_mem_disk and copy this..
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(mipsbe_voltage() > 0, concatenate("volt: ", (mipsbe_voltage()), "V "), ""), if(hdd_usage() > 0, concatenate("disk: ", round(hdd_usage()), "% "), "") )
As long as snmp is set up correctly, then it should display something like this.
Comments
Post a Comment