Ilya Etingof

Results 259 comments of Ilya Etingof

If I understand the logic you are looking for, the loop seems suspicious to me... How about this simplistic linear approach? var_binds = v2c.apiPDU.getVarBinds(pdu) if len(var_binds) < 2: return status.DROP...

At this line: if not firstOID.match(str(oid)): you are using the value of the `firstOID` variable left from the exception of this code: firstOID, secondOID, hostname = shlex.split(line) Which is obviously...

I think the plugin is expected to return a tuple of `status`, `pdu` such as [this](https://github.com/etingof/snmpfwd/blob/master/plugins/rewrite.py#L87). Your code returns just one scalar integer which can't be iterated.

This `snmp-credentials-id=` looks suspicious! May be your notification comes in a way that it does not match `snmp-credentials` entry? Perhaps [snmp-security-model](http://snmplabs.com/snmpfwd/configuration/server-configuration.html#snmp-security-model) is different? Can it be that you are actually...

If you intend to send SNMPv1 TRAPs, try to set `snmp-security-model: 1` in the configuration so that the entry `snmp-credentials` would be chosen.

Thank you for raising this issue and providing quality context! Please, try current master and make sure to configure *snmp-security-engine-id* in your snmpfwd server to match SNMP engine ID of...

Thanks for rising this! Caching may be very reasonable. In fact, the required infrastructure is hopefully already in place. If you consider working on this, I imagine you could come...

I personally do not have much experience with Windows logging. Let's may be start with something simple e.g. `--logging-method=file:snmpfwd.log`? Though the default is `stderr`, may be also try `--logging-method=stdout`? It...

That should be possible to do in multiple ways. If you want to emit traps all from the same place, I'd start with configuring and enlisting all your TRAP targets...

Most certainly, these are just user processes from OS perspective.