python-netsnmpagent icon indicating copy to clipboard operation
python-netsnmpagent copied to clipboard

self._status update failed at agent reconnexion

Open pamandine opened this issue 3 years ago • 0 comments

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 Erreur_regex_match_snmpagent

pamandine avatar Sep 21 '21 08:09 pamandine