sewashinobi

Results 7 comments of sewashinobi

@atodorov-storpool Can you please merge master in your branch? are your commits stable.. can I use it?

@pief @atodorov-storpool Sorry for delayed response yes it works, but I see following warning when Counter64 is used in traps ` Warning : send_trap: failed to convert v2->v1 template PDU`...

@atodorov-storpool I have trap running in production and looks good, but sometime there is race condition and same trap is getting send twice.. from the log I am sure that...

@atodorov-storpool digged a little more for duplicate trap issue, it is happening when the data update and trap both happen same time ( In production it is very much possible...

@atodorov-storpool any suggestion, I tried to debug in your implementation but no luck. This happens when the data update and traps are happening in parallel.

@atodorov-storpool you code doesn't work with Python 3, this part has problem. The c_char expects bytes, I tried to encode but then trap has corrupted data. ret = libnsX.snmp_add_var( self.pdu,...

I was able to fix it with encode, earlier I was trying the ctypes.c_wchar, ctypes.c_wchar_p which was giving unexpected results. ret = libnsX.snmp_add_var( self.pdu, ctypes.cast(ctypes.byref(varOid), c_oid_p), varOidLen.value, ctypes.c_char(varType.encode()), ctypes.c_char_p('{0}'.format(varData).encode()) )