![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
Hi Kacper,
Yes, definitely possible.
You can also have one of us write that code as sponsored development, in that case please get in touch with me, Mike or Adam :)
Tom
On 01/11/2017 12:26 PM, Kacper Czerwonka wrote:
Tom,
One more question. If someone will write for me that part of code, will You include it into next Observium releases (or add new device support)? Of course according to the rules from Developing Observium site. I don't know if that will ever happen, but maybe.
Kacper.
W dniu 09.01.2017 o 16:27, Kacper Czerwonka pisze:
OK Tom, I can't disagree :-) If we know that it doesn't work properly, are there any plans to make it works?
P.S. I've tried to work around this with Custom OID's, but in that place You must get specific port, example .1.3.6.1.4.1.14988.1.1.1.3.1.6.x, where x is port number, random for the same type of devices, so it doesn't make any sense.
Kacper.
W dniu 09.01.2017 o 15:40, Tom Laermans pisze:
Kacper,
The file is included, as evidenced by 2 things
- You have the error count in the UI, which means snmpget ran on
that OID
- MIKROTIK-MIB is printed under MIBs under the wifi module.
Tom
On 01/09/2017 03:38 PM, Kacper Czerwonka wrote:
Tom,
There is a file /opt/observium/includes/polling/wifi/mikrotik-mib.inc.php with line:
$wificlients1 = snmp_get($device, 'mtxrWlApClientCount', '-OUqnv', 'MIKROTIK-MIB');
so You've right, that it literally querying mtxrWlApClientCount. I've checked MIKROTIK-MIB with mib explorer and it shows: Name mtxrWlApClientCount OID .1.3.6.1.4.1.14988.1.1.1.3.1.6 MIB MIKROTIK-MIB Syntax COUNTER32 Access read-only Status current DefVal Indexes mtxrWlApIndex so it should work correct. I think, that file mikrotik-mib.inc.php was never include during query process. Code could be incomplete, I've found interesting comment in file /opt/observium/includes/polling/wifiinc.php "FIXME : everything below this point is horrible sh*t..." ;-) For now I'm going to try understand how Observium is checking wifi includes, maybe this will be solution.
Kacper.
W dniu 09.01.2017 o 10:53, Tom Laermans pisze:
Kacper,
Apparently your device supplies this as mtxrWlApClientCount.6 and up, while the code currently is only set up for literally querying mtxrWlApClientCount.
Some of the wifi clients code is very old, somewhat ugly, and in this case, incomplete...
Tom
On 01/09/2017 10:32 AM, Kacper Czerwonka wrote:
Hi Tom,
When I read my message, I actually did not make myself clear. I wish Observium showednumber of clients connected to AccesPoint. It should in some way to show the value (I've seen this in php code), but instead displays the error.
Kacper.
W dniu 05.01.2017 o 18:27, Tom Laermans pisze: > Hi Kcarper, > > You've failed to convey what problem you're trying to solve. > > Tom > > On 05/01/2017 12:57, Kacper Czerwonka wrote: >> >> Hi. >> >> I'm getting some SNMP errors when polling my Mikrotik RB800 device. >> This is from GUI: >> >> MIKROTIK-MIB *mtxrWlApClientCount Failed response 3331* >> >> From CLI: >> >> ./poller.php -h um-rbswr.ap | grep mtxr >> o MIKROTIK-MIB mtxrDHCP >> >> and the: >> >> ##### Module Start: wifi ##### >> o MIBs MIKROTIK-MIB o Module time >> 0.0122s >> >> So I'm thinking, that it even doesn't try to ask about it, but >> when I'm typing by hand from Obserevium server: >> >> snmpwalk -c public -v 2c um-rbswr.ap .1.3.6.1.4.1.14988.1.1.1.3.1.6 >> SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.6 = Counter32: 0 >> SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.7 = Counter32: 0 >> SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.8 = Counter32: 0 >> SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.9 = Counter32: 0 >> >> Any ideas were to dig to solve it? >> >> Best Regards, >> Kacper. >> >> >> _______________________________________________ >> observium mailing list >> observium@observium.org >> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium > > > > > _______________________________________________ > observium mailing list > observium@observium.org > http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium