Skip to content

self._status update failed at agent reconnexion #48

Description

@pamandine

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions