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

Reload snmpd config instead of restarting service by default #264

Open
simonfelding opened this issue Oct 26, 2022 · 0 comments · May be fixed by #265
Open

Reload snmpd config instead of restarting service by default #264

simonfelding opened this issue Oct 26, 2022 · 0 comments · May be fixed by #265

Comments

@simonfelding
Copy link

Currently, whenever the config is applied, the snmpd server is restarted. This causes monitoring software like Solarwinds Orion to report a reboot.

According to this ticket, modules should implement reload on their own.
SNMPD supports a config reload by sending the HUP signal like so: ExecReload=/bin/kill -HUP $MAINPID

Wouldn't it be nice to implement that by default instead of forcing users to scour the internet for a fix like:

    hasrestart   => yes,
    restart      => "systemctl reload snmpd",

if you want to be really safe about it, check if the systemd service file contains a line starting with ExecReload.

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

Successfully merging a pull request may close this issue.

1 participant