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

Prevent log spam with nut plugins #1631

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

tofurky
Copy link
Contributor

@tofurky tofurky commented Sep 5, 2024

On Debian / Ubuntu, nut is linked against libnss3 which causes a warning message to be emitted when upsc is run if SSL isn't being used. This leads to errors during every poll like:

2024/09/04-21:05:07 [299208] Error output from nut_misc:
2024/09/04-21:05:07 [299208] Init SSL without certificate database

nut 2.8.1, which has started making its way to distros, adds a new NUT_QUIET_INIT_SSL environment variable (specifically designed for uses such as this) which allows silencing this warning.

Add it to the nut plugins. It's a no-op for older nut versions.

@tofurky tofurky changed the base branch from stable-2.0 to master September 5, 2024 01:51
On Debian / Ubuntu, nut is linked against libnss3 which causes a warning
message to be emitted when upsc is run if SSL isn't being used. This
leads to errors during every poll like:

2024/09/04-21:05:07 [299208] Error output from nut_misc:
2024/09/04-21:05:07 [299208]         Init SSL without certificate database

nut 2.8.1, which has started making its way to distros, adds a new
NUT_QUIET_INIT_SSL environment variable (specifically designed for uses
such as this) which allows silencing this warning.

Add it to the nut plugins. It's a no-op for older nut versions.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10712452814

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.111%

Totals Coverage Status
Change from base Build 9719018638: 0.0%
Covered Lines: 1581
Relevant Lines: 2255

💛 - Coveralls

@kenyon kenyon merged commit fa433a4 into munin-monitoring:master Sep 5, 2024
3 checks passed
@tofurky
Copy link
Contributor Author

tofurky commented Sep 5, 2024

Hey, thanks for merging. Could this please be cherry-picked into stable-2.0, or should I open a new PR? Thanks

@kenyon
Copy link
Member

kenyon commented Sep 5, 2024

@tofurky if you can open a new PR for the cherry-pick, that'll work!

@tofurky
Copy link
Contributor Author

tofurky commented Sep 5, 2024

Opened #1632 against stable-2.0

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

Successfully merging this pull request may close these issues.

3 participants