Commit graph

190 commits

Author SHA1 Message Date
Ivan Pavlina
aee33b8c13 Removed building hosts from ARP table for accounting devices - will use only DHCP leases.
Removed unnecessary code, put all accounting sensors in the same group, set accounting sensors key to mac-address
2020-04-07 13:33:48 +02:00
Ivan Pavlina
8244a146de Build hosts dynamically on every update 2020-04-07 13:02:01 +02:00
Ivan Pavlina
e51304a5e3 Fixed imports, changed primary key for accounting hosts from ip address to mac address 2020-04-07 11:32:38 +02:00
Ivan Pavlina
aa8f41f6fe Merge branch 'master' into pr/1 2020-04-07 10:54:19 +02:00
tomaae
af9b653f3c Added host device tracker to documentation #24 2020-04-07 04:44:07 +02:00
tomaae
6515fa8ef5 Reordered host device tracker attributions on UI card #24 2020-04-07 04:15:23 +02:00
tomaae
94eed1fba3 Moved interface and available fields to ensure_val #24 2020-04-07 04:01:33 +02:00
tomaae
052d532fe0 Preliminary support for host tracking #24 2020-04-07 03:55:38 +02:00
tomaae
03d1162e7d remove duplicate NAT rules to prevent crash #20 2020-04-06 22:50:01 +02:00
Ivan Pavlina
2c577116f9 Removed unnecessary logging 2020-04-05 23:23:07 +02:00
Ivan Pavlina
8767557e84 Update docs 2020-04-05 23:21:23 +02:00
Ivan Pavlina
e8c3b3750d Update docs 2020-04-05 23:18:04 +02:00
Ivan Pavlina
30bf7be151 Update docs 2020-04-05 23:17:36 +02:00
Ivan Pavlina
ca39617aaf Update docs and comments 2020-04-05 23:15:53 +02:00
Ivan Pavlina
03e70e521c Accounting initialize fix 2020-04-05 18:32:48 +02:00
Ivan Pavlina
887e645553 Fix dynamic build of local tx/rx sensors. 2020-04-05 18:29:51 +02:00
Ivan Pavlina
d5ddbc7772 Allow for dynamic check of local_traffic enabled in Mikrotik. 2020-04-05 18:08:34 +02:00
Ivan Pavlina
1c0b3018ed Fix 2020-04-05 16:04:17 +02:00
Ivan Pavlina
a1eee6f698 Initialize wan/lan accounting data on startup 2020-04-05 16:00:30 +02:00
Ivan Pavlina
f9a458bbfb Add ability to automatically determine if the LAN accounting sensor should be created depending on account-local-traffic in Mikrotik API 2020-04-05 15:03:17 +02:00
tomaae
fc3ad56044 added slovak translation 2020-04-05 04:28:02 +02:00
tomaae
dcb1ec36cf updated english translation 2020-04-05 04:27:20 +02:00
tomaae
dcbc474b05 updated documentation 2020-04-05 03:38:42 +02:00
tomaae
5a845ba07b PEP8 2020-04-05 00:38:29 +02:00
tomaae
f89a263691 removed unused variable 2020-04-05 00:33:04 +02:00
tomaae
01801fdc2d removed unused variable 2020-04-05 00:27:16 +02:00
tomaae
f9a8d57167 converting generator to list in get_traffic #8 2020-04-04 22:37:41 +02:00
tomaae
12514b4af8 moved disconnect error messages to api.disconnect 2020-04-04 22:35:59 +02:00
tomaae
4c10d0ebc7 moved connection check to separated function 2020-04-04 22:15:06 +02:00
tomaae
592dbbe3dd removed response from api.path query debug 2020-04-04 22:03:46 +02:00
tomaae
f489259908 changed default for return_list in api.path 2020-04-04 21:43:19 +02:00
tomaae
1ec4e13eb8 added entity update debugs #18 2020-04-04 19:46:40 +02:00
Ivan Pavlina
30c11db741 Add ability to track accounting data from Mikrotik. 2020-04-04 19:42:05 +02:00
Tomaae
35936352a8
Merge pull request #19 from ivanpavlina/master
Fix for timeout errors, ability to get list with data from mikrotikapi instead of generator. Log fix
2020-04-04 19:22:27 +02:00
Ivan Pavlina
b58b1aa8a3 Typo fix 2020-04-04 18:01:26 +02:00
Ivan Pavlina
c06c8e6da2
Merge pull request #1 from ivanpavlina/dev
Add ability to return list results of API call instead of generator. …
2020-04-04 17:55:14 +02:00
Ivan Pavlina
1a46da5aae Add ability to return list results of API call instead of generator. On generator return do not call iterate over object, removes redundant calls to API. Update calls to api.path with new input param. Fix logging in helper object. 2020-04-04 17:51:35 +02:00
tomaae
aaf9f6c566 updated documentation 2020-03-26 03:47:12 +01:00
tomaae
3be36dea0a updated traffic available measurements in documentation 2020-03-26 03:46:31 +01:00
tomaae
68f582cacd updated documentation 2020-03-26 03:43:14 +01:00
Tomaae
e4b7551b9c
Merge pull request #16 from ivanpavlina/dev
Add support for simple queues.
2020-03-25 17:22:12 +01:00
Ivan Pavlina
6d6f6e43d3 Updated docs for simple queue switch 2020-03-25 16:45:17 +01:00
Tomaae
0107c6f961
Merge pull request #15 from Limych/master
Fix some minor errors and add russian translation.
2020-03-25 14:56:17 +01:00
Ivan Pavlina
63210ec62b Fix - .id was missing from retrieved params 2020-03-25 13:28:52 +01:00
Ivan Pavlina
bcf86dc7a3 Add support for simple queues. Transfer traffic_type and traffic_div calculation to separate method 2020-03-25 13:18:49 +01:00
Andrey Khrolenok
7ccaf0d9c3
PM8 code optimization 2020-03-21 19:02:28 +03:00
Andrey Khrolenok
f0b4c5e723
Fix some minor errors and add russian translation. 2020-03-21 18:46:54 +03:00
tomaae
0a58db40cd reverted back to customized fork of librouteros 2020-03-18 09:33:36 +01:00
tomaae
1010a8aa3a catching socket.timeout using tuple exception during traffic poll #8 2020-03-17 00:42:44 +01:00
tomaae
50cf54c417 log disconnect error/retry only once until reconnect
log reconnect
2020-03-17 00:40:08 +01:00