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

Stop the service and remove the /var/lib/snmp/snmpd.conf before editing the config files #28

Closed
wants to merge 1 commit into from

Conversation

MatthieuCoder
Copy link

@MatthieuCoder MatthieuCoder commented Dec 27, 2024

This fixes an issue where the generates hashes are not being re-generated on Debian. Stopping the previous service, deleting the file will cause snmpd to re-generate the /var/lib/snmp/snmpd.conf config file with the new authentication hashes.

Disclamer: did not test this on Ubuntu

…updating

This fixes an issue where the generates hashes are not being re-generated on Debian.
Stopping the previous service, deleting the file will cause snmpd to re-generate the /var/lib/snmp/snmpd.conf config file with the new authentication hashes.
@tersmitten
Copy link
Member

What do you think about #30, does it fix your problems?

@MatthieuCoder
Copy link
Author

Hi,
Yes it theoretically fix my issues,
thanks

@MatthieuCoder
Copy link
Author

The only problem is that you need to stop the service before editing the file, it's a requirement because snmpd updates the file on exit, making a restart override the changes

@tersmitten
Copy link
Member

Better this way?

@MatthieuCoder
Copy link
Author

It seems ok, althrough you could cleanup the names and use "start" instead of "restart" because you stopped it before, the rest of the pr seems fine to me, thank you for your work too :)

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

Successfully merging this pull request may close these issues.

2 participants