I second this request… this is something that I’ve asked for for a long time (I think I even listed it on my requests when i started the original v4.0 Feature Requests thread…)
I have been trying to find information on using the Dude to do just this, but can not acheive success.
I have an APC UPS connected using USB, I have the UPS Package installed and want to create a Probe to monitor the On-line state. I have read the Probe Thread and other forums but I have been unable to decifer the correct function to read the variable.
This a good product, but my UPS is within the same enclousure as the router so cable length is fine. I can see all the data in WinBox, but what I am hoping to do is have a Probe Function that can monitor the On-Battery status within the Dude, but I am yet to make it work.
Mikrotik does not support SNMP UPS.
The answer of the mikrotik:
“Thank you very much for the request.
Currently such options are not available over SNMP, but we added these
features to our todo list.”
See scripts:http://tandem.ck.ua/prg/scripts.txt
Maybe they will help you.
We have also used them for APC.
Not everyone uses The Dude, but Zabbix, Zenoss or other NMSs. It would be really handy to have an option to save a value from script as OID. For example count of wireless users (/interface wireless registration-table print count-only where interface=“wlan1”). Really handy and useful.
or ‘:put [/queue tree get test-pcq pcq-queues]’ - developers promise that it vill be added in future versions, but with that feature we can get it right now =)
For now you can “hack around it” and use currently defined OIDs. For example, simple queue’s name has an OID and you can change the name to reflect some value with a script. I also manipulate MTU value, since it’s got an OID, of dummy VAP to the same effect. I’m sure you can find others…