Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self._status update failed at agent reconnexion #48

Open
pamandine opened this issue Sep 21, 2021 · 0 comments
Open

self._status update failed at agent reconnexion #48

pamandine opened this issue Sep 21, 2021 · 0 comments

Comments

@pamandine
Copy link

pamandine commented Sep 21, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant