Commit Graph

7 Commits

Author SHA1 Message Date
amartin-git
c19df5a77a Set larger receive buffer size for bulk requests
When using SNMP BULK GET requests (from Zabbix in our case), the default value of 1024 truncates the request, resulting in malformed requests reaching the agent. Using an 8K buffer fixes this. A better approach perhaps would be to process the buffer using a loop.
2021-12-06 12:26:22 -05:00
Pim van Pelt
18005bbbc2 Fix memory leak in logging (specifically: do not create a new logger for every SNMP PDU) 2021-09-15 07:58:08 +00:00
Pim van Pelt
a574305fb2 Reconnect faster after errors (0.1s sleep) 2021-09-15 07:57:17 +00:00
Pim van Pelt
09a2b6e9e4 Remove logger from dataset, it's not necessary, as there's only one call location that wants to say something. Turn that into an exception instead 2021-09-15 07:56:50 +00:00
Pim van Pelt
7206d92f40 Move all loggers to be members of the class, not global objects 2021-09-12 16:08:35 +00:00
Pim van Pelt
c72890868c s/freq/period/ to be more precies; Set default period to 30s; set wait period on reconnect to 10s; Add explicit INFO logline when replacing dataset 2021-09-11 12:45:28 +00:00
Pim van Pelt
8c9c1e2b4a Replace the pyagentx threaded version with a much simpler, non-threaded version. 2021-09-11 12:19:38 +00:00