Skip to content

self._status update failed at agent reconnexion #48

@pamandine

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

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