Community discussions

MikroTik App
 
GeoffNepic
just joined
Topic Author
Posts: 5
Joined: Thu Jan 14, 2016 8:11 am

Mikrotik UPS monitoring through usb

Thu Jan 14, 2016 8:58 am

Hi Guys,

We run a small wisp in South africa.

We have been trying to monitor our upses through the usb ports on the mikrotiks.
Only basic features are needed, mostly to see if the ups kicks in and batttery levels if possible.

I have been testing with the CCR 1009 and the 951Ui 2HnD.
So far I dont seem to be able to get the usb port added as the ups port.
I have seen guides where you configure the usb ports in the serial console, but from what I can see this option is not available in either of these routers.

They are smart upses, but they don't have snmp.

Any advice on wheteher this is possible will be much appreciated.
 
gtj
Member Candidate
Member Candidate
Posts: 121
Joined: Thu Apr 30, 2015 2:52 am
Location: Colorado US

Re: Mikrotik UPS monitoring through usb

Thu Jan 14, 2016 6:27 pm

Do you have the UPS package installed? You need that first.

Once that's installed, all you have to do is plug in the UPS.
Now go to system/ups and do an "Add New".
In the "Port" drop-down, you should see a "usbhid1" entry. That's your UPS.
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 6:39 am

Yup.. usbhid1 is what you need. it's works well.
[djoyce@Intrus_Router] /system ups> monitor 
numbers: 0
         on-line: yes
    runtime-left: 1h7m30s
  battery-charge: 100%
    line-voltage: 123V
  output-voltage: 124V
            load: 15%
 
GeoffNepic
just joined
Topic Author
Posts: 5
Joined: Thu Jan 14, 2016 8:11 am

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 9:15 am

Thanks for the response.

I do have the ups package installed.
When I go to the drop down on the ccr1009 only serial is available and on the 951 there are no options on the drop down.
New ups.png
You do not have the required permissions to view the files attached to this post.
 
gtj
Member Candidate
Member Candidate
Posts: 121
Joined: Thu Apr 30, 2015 2:52 am
Location: Colorado US

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 2:50 pm

What brand and model of UPS are you using? Maybe it's just not recognized as an UPS by the kernel.
Anything in the log when you plug it in?
Do you have a Linux computer that you can plug the UPS into to see if it registers as a usbhid device?
 
GeoffNepic
just joined
Topic Author
Posts: 5
Joined: Thu Jan 14, 2016 8:11 am

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 2:55 pm

The UPS is a Tescom apex plus.

I will test this with a linux system and check the log.
Is there anything I would need to enable under logging?
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 5:03 pm

It looks like you will need a USB to Serial adaptor for that UPS. The MikroTik UPS drivers only support devices the use the APC protocol. It looks like that manufacture uses their own drivers and protocol for USB.
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1222
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 5:56 pm

And how would such an adapter help to get the UPS recognized on the router?
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: Mikrotik UPS monitoring through usb

Fri Jan 15, 2016 6:45 pm

because their site says that the unit supports standard Simple Signaling.
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1222
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Mikrotik UPS monitoring through usb

Sat Jan 16, 2016 8:12 pm

Assuming the Tescom apex plus uses the simple protocol, which I doubt. They have their own software, which includes detecting the UPS type, so it is probably not compatible.
 
GeoffNepic
just joined
Topic Author
Posts: 5
Joined: Thu Jan 14, 2016 8:11 am

Re: Mikrotik UPS monitoring through usb

Mon Jan 18, 2016 9:02 am

Virtual box picks it up as "INNO Tech Usb to serial" but I am unable to attach it to the linux vm.
There is nothing on the log of the mikrotik when I plug it in.
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: Mikrotik UPS monitoring through usb

Mon Jan 18, 2016 9:09 am

Most USB to Serial devices use the Prolific chipset, or something based on that. the INNO Tech Usb to serial is not a well known device and doesn't have drivers built into the kernel. It's unlikely you will be able to get it working with most Linux distros with our building a custom kernel or building a driver module. And there is no chance of getting it working with a Mikrotik router. Your best bet is to try a cheap Prolific 2023 based cable and see if the UPS is detected.
 
GeoffNepic
just joined
Topic Author
Posts: 5
Joined: Thu Jan 14, 2016 8:11 am

Re: Mikrotik UPS monitoring through usb

Mon Jan 18, 2016 10:43 am

Thanks,

I will try get hold of that cable and see if I can get it to work.

Who is online

Users browsing this forum: Google [Bot] and 47 guests