-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
APC Smart-UPS 1000 USB - ups.test.result: No test initiated and missing TIMELEFT #2441
Comments
For the initial test, NUT is v2.7.4 or older, right? As for missing values, CC @aquette @clepple @desertwitch : any ideas? |
|
apcupsd TIMELEFT : 22.0 Minutes => NUT battery.runtime: 1380 (seconds = 23 minutes) Can you provide us with the |
upsc UPS_CELL06@127.0.0.1
|
You're still on NUT 2.7.4. on the machine where the UPS is physically connected. |
i need
I need 10-15 minutes |
completely removed the NUT that I installed from the packages upsc UPS_CELL06@127.0.0.1
|
I've just looked into this and In any case, the runtime variable is there as it should be, it just has a different name in NUT. 😎 |
First, thanks for the clarification about battery.runtime, this already in my Zabbix 👍 There may be a reason in the self test period - in apcaccess parameter STESTI: 7 days. I still don’t understand how I can get the result of a self-test:
There is complete confusion with ups.test.result, but I will check it again after a week I understand that this is apparently not the work of NUT. But maybe this will help someone in the future |
I believe Using Now that you've dug into the logic and comparisons for all of this, and have a device to test with, you may be in fact better positioned than myself to iterate with a custom driver - see https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests For starters, try adding different diagnostic print-outs into the driver with Regarding the other question, with synthetic variables - they have their place (e.g. when we do not know the battery charge from the device itself, but "guesstimate" it from known voltage and assumed high/low limits and some assumption about the discharge function over time). I don't think the NUT protocol (see |
Thanks for the detailed answer For now, I hope that it is the UPS that is preventing this value from being obtained due to the fact that the test occurs too often. |
I would like to continue this discussion At the moment I keep getting a value No test initiated The first thing I noticed was when running the driver in debug mode
Perhaps this is some kind of problem? If you need to do some fine debugging of the code, I’m ready to do it, but I still don’t understand why I need to add a diagnostic output.
HIDGetDataValue(libhid.c)-> get_item_buffered(libhid.c)->GetValue(hidparser.c) |
APC Smart-UPS 1000 when connected via USB, two very important parameters are missing:
upsc UPS_CELL06@127.0.0.1
usbhid-ups -a UPS_CELL06 -DDDDDD
apcaccess status
I built the latest version from the master branch, but the result was exactly the same
The text was updated successfully, but these errors were encountered: