python-netsnmpagent
python-netsnmpagent copied to clipboard
self._status update failed at agent reconnexion
In netsnmpagent.py, line 183, the regex match is not correct :
The line is: and re.match("AgentX subagent connected", msgtext):
It should be started with .* like this: and re.match(".*AgentX subagent connected", msgtext):
Because the full message is : "NET-SNMP version 5.9 AgentX subagent connected"
And the match is never taken, without the .*
Thanks,
Amandine