-
Notifications
You must be signed in to change notification settings - Fork 35
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
SNMP configuration #28
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful. |
As I'm sure you can appreciate, we can't test and validate every UPS config out there. Although in theory it should work from what I can see, is there a chance you could validate using SNMP v1/2 rather than V3? |
Yep, I and understand not having the ability to test all configurations. I just wanted to check if you might know how SNMP can be configured. I also tried v1 with the same result. I also set logging to debug level and other then giving me some debug statements on Is there any way to send/add "-DD" argument to SNMP v1 config:
|
To get the addon to start, you can set the config to be something like:
This would start using the dummy driver, you could then possibly exec into the container and run the nut executables from there. |
Does the plugin create the The contents of the ups.conf file
Command: |
We generate the ups.conf
Only run the -D on debug being set today, we could change this if needed: addon-nut/nut/rootfs/etc/cont-init.d/nut.sh Line 113 in 5715820
|
I was able to exec into the container.... Editing the Looks like the This is what I have in the config (for devices):
And here is what is in the |
@kkellner Try an array of strings for the Documentation for
I believe I originally set it up this way due to validation restraints when using nested arrays in add-on config files. |
So when I type this config section in the plugin config text box:
then click save, it turns to this in the config text box:
|
Please review my sample config again carefully. The hyphens at the beginning of each line are required. |
Sorry, too many cut/paste/edits. Your version with hyphens worked. I'm going to add the sensor next to see if I have real data. |
That is great news! Please report back your findings so that we can close this issue if nothing further needs to be implemented to get this to work without in-container modifications. |
Looks like I've getting real data! Two questions:
|
Awesome, even more great news!
|
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
How do you configure for SNMP?
I have tried the following (I got config params from https://networkupstools.org/docs/man/snmp-ups.html)
This results in:
The text was updated successfully, but these errors were encountered: