[Nut-upsuser] Any ideas what protocol GE VH3000 UPS might talk?

2024-06-24 Thread Jim Klimov via Nut-upsuser
Got a community question at https://github.com/networkupstools/nut/issues/2466 with at least two users (and UPSes) in trouble. Curiously, they identify as 067b:2303 Prolific Technology like a common USB-Serial dongle brand. Experiments with blazer and nutdrv-qx got no reasonable response from the

[Nut-upsuser] Powercom BNT USB fix needs testing

2024-06-16 Thread Jim Klimov via Nut-upsuser
Cheers all, Per https://github.com/networkupstools/nut/pull/2480 there seems to have been a byte-order bug in usbhid-ups subdriver for Powercom that precluded it from shutdowns. I am not fully certain if the problem (or the fix) are endianness-dependent, so would welcome testing of that PR

Re: [Nut-upsuser] Permissions error

2024-06-12 Thread Jim Klimov via Nut-upsuser
Normally you should elevate to run e.g. `sudo upsdrvctl ...` so the NUT driver program initializes as `root` and drops privileges to `nut` (tweakable as the `user=...` in ups.conf, like your RUN_AS_USER in upsmon.conf) soon after that, and default permissions on packaged files expect that.

[Nut-upsuser] Harden NUT work with strings where dynamic formatting strings are used

2024-06-03 Thread Jim Klimov via Nut-upsuser
Hello all, During discussion for development of a new driver, an old thought came to my attention that we have a potentially insecure approach with some parts of the codebase working with string and "var arg list" manipulation, which use dynamic `char *` variables instead of fixed strings (or

Re: [Nut-upsuser] UPS not Shutting Down

2024-06-01 Thread Jim Klimov via Nut-upsuser
Thinking of it, one purpose of upssched is to delay reaction to short-lived flukes (e.g. if we go on battery for 20 seconds and set a delay for 30, if we're back on line within that time frame, it is ok to go on living). I wonder if your UPS went under 70% and you aborted the experiment too early

Re: [Nut-upsuser] Supporting a DIY UPS with minimal effort but maximum gain

2024-05-19 Thread Jim Klimov via Nut-upsuser
Hello, and welcome (again) :) > ...That [driver] executable will talk to the hardware in whatever way it sees fit, and to nut over the UNIX socket/pipe. It does sound architecturally feasible, at least, no? This is more or less what NUT drivers themselves do, so yes - quite feasible.

Re: [Nut-upsuser] Supporting a DIY UPS with minimal effort but maximum gain

2024-05-18 Thread Jim Klimov via Nut-upsuser
Hello all, I think there was a very good reply about an Arduino-based controller for a DIY UPS here. The project you posted to, with an Arduino presenting as a Megatec protocol server, also seems interesting. Here I'd like to reply to one point not covered before - DMF. As a short and quick

Re: [Nut-upsuser] Supporting a DIY UPS with minimal effort butmaximum gain

2024-05-17 Thread Jim Klimov via Nut-upsuser
y code sense the DC voltage. > > * External ADC: ADS1115 board. I wanted higher resolution DC voltage > detection. > > My code then changed to take readings from the ADS1115 and convert that > into a rough "50-100% capacity remaining" that I can report to NUT. It to

Re: [Nut-upsuser] Supporting a DIY UPS with minimal effort but maximum gain

2024-05-16 Thread Jim Klimov via Nut-upsuser
I agree with earlier posters, such documentation can help future tinkerers. There is probably more than just one to hold the hand and walk through the ordeals :) Perhaps a new page at https://github.com/networkupstools/nut/wiki can be a good location... Jim On Thu, May 16, 2024 at 1:29 PM Bill

Re: [Nut-upsuser] Possibility to set NUT drivers to "monitor only"?

2024-05-02 Thread Jim Klimov via Nut-upsuser
FWIW, added this to Wiki: https://github.com/networkupstools/nut/wiki/Monitoring%E2%80%90only-NUT-clients On Thu, May 2, 2024 at 11:57 AM Jim Klimov wrote: > Hello, and welcome to the NUT community! :) > > On one hand, it would generally help to read up the documentation about > NUT

Re: [Nut-upsuser] Possibility to set NUT drivers to "monitor only"?

2024-05-02 Thread Jim Klimov via Nut-upsuser
Hello, and welcome to the NUT community! :) On one hand, it would generally help to read up the documentation about NUT architecture, seeing as it is a crucial part of your systems' uptime and data integrity. On another hand, for this particular use-case: it is quite possible to set up

Re: [Nut-upsuser] [Nut-upsdev] RFE to extend "LISTEN" directive to support host-colon-port (as single token)

2024-04-30 Thread Jim Klimov via Nut-upsuser
Just in case, to the last couple of posts speaking of multiple listeners: NUT does allow specifying several lines of `LISTEN host port` to handle multi-homing and whatnot. A reminder to readers who might not realize this possibility exists already. Jim On Tue, Apr 30, 2024, 18:00 Kelly Byrd

Re: [Nut-upsuser] [Nut-upsdev] RFE to extend "LISTEN" directive to support host-colon-port (as single token)

2024-04-29 Thread Jim Klimov via Nut-upsuser
Thanks for sharing your take on this. (Sorry about likely mixing historic standards, was not in position to cross-check while posting) Just to clarify: using a different port *is* possible since forever, with `LISTEN host port` (as two arguments to the directive); the question was if having a way

[Nut-upsuser] RFE to extend "LISTEN" directive to support host-colon-port (as single token)

2024-04-29 Thread Jim Klimov via Nut-upsuser
Cheers all, A recent discussion in the issue tracker brought up the idea to allow the `LISTEN` keyword to also accept a single "host:port" token (e.g. if there is only one argument, with at least one colon, and the last colon is followed only by numbers, split it into host and port) :

Re: [Nut-upsuser] NUT v2.8.2, the Easter Egg Edition

2024-04-19 Thread Jim Klimov via Nut-upsuser
UPDATE: No problem got confirmed about driver code - only some scripting mishaps with NDE: https://github.com/networkupstools/nut/pull/2413 (testing welcome) Jim On Fri, Apr 19, 2024 at 2:07 PM Jim Klimov wrote: > Errata coming up for NUT v2.8.2: > > * it was discovered that the

Re: [Nut-upsuser] NUT v2.8.2, the Easter Egg Edition

2024-04-19 Thread Jim Klimov via Nut-upsuser
Errata coming up for NUT v2.8.2: * it was discovered that the nut-driver-enumerator (NDE) script had a regression which caused it to not reload nut-driver instances (systemd, SMF) when `ups.conf` edits happened. * on a related note, it may be possible that "live" driver reloading (at least on

Re: [Nut-upsuser] NUT v2.8.2, the Easter Egg Edition

2024-04-07 Thread Jim Klimov via Nut-upsuser
Just the sig file. On Sun, Apr 7, 2024, 15:45 Greg Troxel via Nut-upsuser < nut-upsuser@alioth-lists.debian.net> wrote: > Jim Klimov via Nut-upsuser writes: > > > A hiccup was reported about validating the tarball signature on some > > systems, so it was reissued

Re: [Nut-upsuser] NUT v2.8.2, the Easter Egg Edition

2024-04-07 Thread Jim Klimov via Nut-upsuser
A hiccup was reported about validating the tarball signature on some systems, so it was reissued from another workstation. Please don't worry :) Jim Klimov On Tue, Apr 2, 2024, 01:06 Jim Klimov wrote: > Hello all, > > After a prolonged labour with a few re-issues of the tag and many pushes >

Re: [Nut-upsuser] CyberPower PR3000LCDRTXL2U — battery date reset?

2024-04-02 Thread Jim Klimov via Nut-upsuser
Well, for a bit of devil's advocate - if the battery swelled, it might hace leaked or fumed, contaminating the device and contacts. The safe approach (for their liability, and for end-users' fire hazard really) is to not claim the device is safe to use anymore. Jim On Tue, Apr 2, 2024, 07:11

Re: [Nut-upsuser] Language of entities in HomeAssistant

2024-04-02 Thread Jim Klimov via Nut-upsuser
I suppose you have to ask on HA (or NUT plugin) forums. NUT itself is not localized. Jim On Tue, Apr 2, 2024, 03:19 Roland Scheffer via Nut-upsuser < nut-upsuser@alioth-lists.debian.net> wrote: > Hello, > > based on >

[Nut-upsuser] NUT v2.8.2, the Easter Egg Edition

2024-04-01 Thread Jim Klimov via Nut-upsuser
Hello all, After a prolonged labour with a few re-issues of the tag and many pushes during the day, NUT v2.8.2 was found in a strange egg by a bunny hopping away from the April fools. All that - blessed under the shine of Polar lights in the middle of the icy North Ocean. A python module was

Re: [Nut-upsuser] Je ne parviens pas à faire communiquer mon UPS avec HomeAssistant

2024-03-28 Thread Jim Klimov via Nut-upsuser
Cursorily, your two LISTEN directives for same IP address can be conflicting (one grabs the port another one wants)... And/or some service dependencies (After/Wants/Requires in systemd) in your package are not set up to start nut-server after surely having passed the network-online milestone and

Re: [Nut-upsuser] There is no voltage information

2024-03-25 Thread Jim Klimov via Nut-upsuser
Hello all, I think I've found the "regression" in Belkin/Liebert USB HID support which worked for NUT v2.7.4 and reports zero voltages in 2.8.0 -- it was actually caused by a bug fix: practically the only functional difference per `git diff v2.7.4..v2.8.0 drivers/belkin-hid.c` is a change from

Re: [Nut-upsuser] There is no voltage information

2024-03-25 Thread Jim Klimov via Nut-upsuser
Hi, FYI: I'll be away from computers (and possibly internet) for a couple of weeks. As for the logs, they are not "the same": the first one (with NUT 2.8.x) failed to connect to the device it liked -- "failed to claim USB device: Resource busy" (probably another program holds it, maybe a

Re: [Nut-upsuser] There is no voltage information

2024-03-21 Thread Jim Klimov via Nut-upsuser
Thanks again. So one more bit (other than indeed different libusb versions) that could potentially come into play is bitness - armv7l builds are 32-bit, right? One idea from here is to have you run the driver programs directly with high debug verbosity, e.g. `usbhid-ups -DD -s Liebert`

Re: [Nut-upsuser] There is no voltage information

2024-03-20 Thread Jim Klimov via Nut-upsuser
Thanks. Can you please also check (e.g. with ldd `which usbhid-ups`) which `libusb` variant (1.0 or 0.1) was the 2.7.4 version of the driver running with? I wonder if the two generations of that library got something differently?.. The commit I mentioned -

Re: [Nut-upsuser] There is no voltage information

2024-03-20 Thread Jim Klimov via Nut-upsuser
Hello, For clarity: what changed with the move from NUT v2.7.4 to 2.8.0 - the warnings "became reported", or the highlighted values became zeroes (and were valid non-zero numbers with older NUT - so a regression)? It seems the message is specific to the subdriver and comes from commit

[Nut-upsuser] Considering a release

2024-03-11 Thread Jim Klimov via Nut-upsuser
Hello all, By some criteria (like known squashed bugs and regressions, or added features) it is always high time to cut a NUT release, even if backlog and pending nice-to-haves are looming well over horison. Missed 29.2. "the neverday issue", but upcoming 3.14. "pi day" also looks like a fun

Re: [Nut-upsuser] NUT 2.8.1 build from source - upssched missing

2024-03-03 Thread Jim Klimov via Nut-upsuser
That is odd. I suppose you ran not quite "autogen.sh, make, make install" but "autogen.sh, *configure*, make, make install", with the "configure" part taking a ton of options to tune for your system. There are no particular options for `upssched`, or put another way, at least it would get built

Re: [Nut-upsuser] NUT help request

2024-02-28 Thread Jim Klimov via Nut-upsuser
To me, this line is suspect: libusb1: Could not open any HID devices: insufficient permissions on everything it seems like USB permissions on the host do not allow the NUT run-time user (nutty?) to own the device filesystem node. Check the upower/udev/... settings relevant there. According to

Re: [Nut-upsuser] System keeps going into FSD mode after power on

2024-02-22 Thread Jim Klimov via Nut-upsuser
Hello, Hard to say for sure, devices are all different. But from general experience, some thoughts may be relevant: 1) I've seen some UPSes return different battery charge levels or remaining runtimes when they are running off wall power or just after switching to battery. It may be that some

Re: [Nut-upsuser] Compile/Package / Config/Run 2.8.1 / Raspberry / UPS

2024-02-19 Thread Jim Klimov via Nut-upsuser
Hello, and thanks for the detailed report. Regarding /var/run/nut - I think `systemd-tmpfiles --create` should have taken care of this. Can you check if your tarball "package" actually shipped a /usr/lib/tmpfiles.d/nut-common-tmpfiles.conf file, and does it list (/var)/run/nut among the items

Re: [Nut-upsuser] Keeping the traffis on or off the list ?

2024-02-17 Thread Jim Klimov via Nut-upsuser
I sometimes get replies that are directed only to me. Oftentimes it is a sender "error" to not have used Reply to All, so I direct my response back to the list. Rarely it is about something the senders deem confidential, where a pointed reply seems to make sense (overriding would be bad). Other

Re: [Nut-upsuser] Can't claim USB device: Invalid parameter

2024-02-07 Thread Jim Klimov via Nut-upsuser
Hello, thanks for the details although I too am not sure about the "invalid parameter" - got neither reasons nor solutions at the moment. Regarding the "device: unknown", there was an issue in the USB matcher code that did not let the driver "remember" the value it saw from libusb (and so it

Re: [Nut-upsuser] Can't claim USB device: Invalid parameter

2024-02-07 Thread Jim Klimov via Nut-upsuser
Hello and welcome! My guess would be that a nut-driver service unit (or instances thereof since NUT v2.8.0, monolithic before) have started and captured the devices, so your attempts with another copy of the driver started from CLI fail at that. Normally drivers detect an older sibling running

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-20 Thread Jim Klimov via Nut-upsuser
[D2] Device matches >>0.418416 [D2] Reading first configuration descriptor >>0.418456 [D2] failed to claim USB device: Resource busy >>0.418487 [D2] Kernel driver already detached >>0.418512 [D2] failed to claim USB device: Resource busy >>0.418546 [D2]

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-20 Thread Jim Klimov via Nut-upsuser
Well, at least per issue tracker, they can be finicky especially regarding reconnects (in many models, the USB controller tends to fall into power-saving at the wrong times, so polling rates should be increased). More on the Wiki and in github search/labels :) As for Eatons, I've had experience

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-19 Thread Jim Klimov via Nut-upsuser
One more idea, inspired by messages systemd sometimes gives: * Select to "Copy" the timestamps of when e.g. your `nut-server.service` stopped/restarted; * As root(!) run `journalctl -xl` for a detailed log with service state changes and reasons, and other details, piped into `less` by default *

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-19 Thread Jim Klimov via Nut-upsuser
> 1) How do I make the nut-server and nut-monitor find the right pid files? They are there but it seems they can't be opened. Permissions are nut/nut. Actually, if the preceding lifetime of the service was a graceful stop, the exiting daemon should have removed its PID files. Then the newly

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-19 Thread Jim Klimov via Nut-upsuser
e. Can you recommend a small UPS (1 > > >Server) that is guaranteed to work flawlessly with NUT? > > > > perhaps Eaton Ellipse would be fine. > > > > The message above does not look like a problem of the UPS. > > Was there anything other in the logs, before the

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-19 Thread Jim Klimov via Nut-upsuser
n 19, 2024 at 9:36 AM Matus UHLAR - fantomas wrote: > On 19.01.24 09:00, Jim Klimov via Nut-upsuser wrote: > >Well, from your logs it seems that at 05:17:03 your nut-server (upsd) > >restarted, so an upsmon reconnection attempt at 05:17:09 had an issue with > >that (config

Re: [Nut-upsuser] NUT and Eaton UPS produce a lot of error messages

2024-01-19 Thread Jim Klimov via Nut-upsuser
Well, from your logs it seems that at 05:17:03 your nut-server (upsd) restarted, so an upsmon reconnection attempt at 05:17:09 had an issue with that (config not all applied? strange a bit) but since 05:17:14 it is okay. Maybe a few too many banners shown from upsmon, while its same uptime seems

Re: [Nut-upsuser] Windows NUT Client - Settings description somewhere ?

2024-01-12 Thread Jim Klimov via Nut-upsuser
I haven't used that package with Windows (haven't used that for a while) so can't say directly. However I can't find, neither in sources nor in the files stored in the MSI, the GUI program you've sent the screenshot from and particularly the localization strings it uses. Are you sure it was not a

[Nut-upsuser] Happy New Year 2024

2023-12-31 Thread Jim Klimov via Nut-upsuser
Cheers all, I would like to take a moment to wish everyone a happier New Year than the few we've seen before, and hope for peace, quiet and joy for everyone. We have had some good collaborations here, with new people and old guard being engaged, more platforms confirmed and upkept by NUT CI

Re: [Nut-upsuser] Help with CGI upsstats.cgi giving "file not found"

2023-12-21 Thread Jim Klimov via Nut-upsuser
Well, it seems both apache and bash literally say they did not find an executable there; it is not about NUT configs. Is the file present? (is "spivey" same as "pi2" in "screenshots" posted?) Does it have the exec bit set? Are all directories at least "executable" by apache user? Jim On Thu,

Re: [Nut-upsuser] Looking for a UPS Driver

2023-12-10 Thread Jim Klimov via Nut-upsuser
Hello, Did you acquaint yourself with the NUT project? There are quite a few architecture and installation documents and README's (maybe a few too many for people just getting started, pull requests for simple entry points are welcome) :) In short, you would either have it installed via

Re: [Nut-upsuser] Can not Access the Web GUI

2023-12-10 Thread Jim Klimov via Nut-upsuser
Hello, Hard to say from your "screenshot" but it seems like you're typing the URL into command-line. Does your OS handle starting a browser for that? Otherwise, you should run one manually and enter the URL there. For that matter, did you follow the documentation on setting up the NUT CGI

Re: [Nut-upsuser] Looking for a UPS Driver

2023-12-10 Thread Jim Klimov via Nut-upsuser
Cheers, The current situation is a bit of a moving target - for USB devices you'd need to custom build a `libmodbus` and then NUT against it. For more details, see https://github.com/networkupstools/nut/wiki/APC-UPS-with-Modbus-protocol Hope this helps, Jim Klimov On Sun, Dec 10, 2023 at 3:01 

[Nut-upsuser] PR to change logging of OL+DISCHRG UPS state combo

2023-12-06 Thread Jim Klimov via Nut-upsuser
Hello all, as users of certain (primarily CyberPower and APC) devices know, some firmwares report both "online" and "discharging" in some situations. These depend on the device, vendor and firmware, but cases seen in practice include: * calibration (APC), * being on-battery (CPS), * having

Re: [Nut-upsuser] OMV + NUT + TrippLite OMNIVSX850

2023-12-04 Thread Jim Klimov via Nut-upsuser
>could not detach kernel driver from interface 0: Operation not permitted Does that system have something like udev, upower, devd or some such in charge of assigning filesystem permissions to USB device nodes - should get owned by NUT run-time user? Alternatively, try adding `user=root` line to

Re: [Nut-upsuser] Liebert UPS driver

2023-12-04 Thread Jim Klimov via Nut-upsuser
Cheers, Looking at the `vendorid=0x10af` -- the usbhid-ups subdriver `belkin-hid` has the best chance here (being the only one to mention it). The `productid=0x0002` is indeed not mentioned in `drivers/belkin-hid.c` so probably nobody encountered it before and/or tested a hotfix to PR it

Re: [Nut-upsuser] NUT 'upsstats' Battery Meter Question

2023-11-30 Thread Jim Klimov via Nut-upsuser
Hello Jeff, `upsstats` by itself only relays and renders the information provided by a NUT data server (upsd) and the NUT driver for the device. So you can revise the specific reported values with e.g. `upsc` command-line client to be sure. What I think happens here is that the driver uses a

[Nut-upsuser] Sponsorship from DigitalOcean

2023-11-29 Thread Jim Klimov via Nut-upsuser
Cheers all, you may have seen related preparatory news on the NUT website or in the README changes, but now the next step is official: The fine folks at DigitalOcean approved FOSS sponsoring credits to re-host the custom-built multi-platform non-regression NUT CI farm, which builds several

Re: [Nut-upsuser] APC Modbus support is finally here!

2023-11-27 Thread Jim Klimov via Nut-upsuser
Thanks again, Great to see confirmations of more and more things working! > I wonder what's the fastest method to test the function (previously I setup the ups and unplug the utility from the ups for testing). > is "upsrw driver.flag.allow_killpower=1" then "upscmd driver.killpower" the

Re: [Nut-upsuser] APC Modbus support is finally here!

2023-11-24 Thread Jim Klimov via Nut-upsuser
ver author can address the > nits (forwarding now...) > > Jim > > On Wed, Nov 22, 2023, 15:05 d tbsky wrote: > >> Jim Klimov via Nut-upsuser >> > >> > Got an update for APC Modbus users: a new PR is waiting for real-life >> testing for settable vari

Re: [Nut-upsuser] APC Modbus support is finally here!

2023-11-22 Thread Jim Klimov via Nut-upsuser
Great! Thanks for the info, and hope the driver author can address the nits (forwarding now...) Jim On Wed, Nov 22, 2023, 15:05 d tbsky wrote: > Jim Klimov via Nut-upsuser > > > > Got an update for APC Modbus users: a new PR is waiting for real-life > testing for

Re: [Nut-upsuser] APC Modbus support is finally here!

2023-11-18 Thread Jim Klimov via Nut-upsuser
Got an update for APC Modbus users: a new PR is waiting for real-life testing for settable variables and instant commands support. https://github.com/networkupstools/nut/pull/2184 As before, a custom build of libmodbus may be needed for USB support (detailed in the earlier PR), but Serial and

Re: [Nut-upsuser] NUT v2.8.1 is released

2023-11-09 Thread Jim Klimov via Nut-upsuser
NOTE for packagers (and other builders of NUT release tarball): Got an ERRATA to NUT v2.8.1: * https://github.com/networkupstools/nut/pull/2155/commits/2842201db26468a1eb1bf579e8b2fbf7538c5076 Probably should have a short cycle before a NUT v2.8.2 with smaller scope than originally anticipated

[Nut-upsuser] Should upsd abort if one if LISTEN addresses is not available?

2023-11-04 Thread Jim Klimov via Nut-upsuser
Cheers all, Issue https://github.com/networkupstools/nut/issues/723 was brought up recently, and I've re-verified it with the current codebase that it still happens. The crux of it is that if upsd can LISTEN to some but not all addresses, it aborts because "no listening interface available"

[Nut-upsuser] NUT v2.8.1 is released

2023-10-31 Thread Jim Klimov via Nut-upsuser
...it was almost midnight, Cinderella became a pumpkin, and NUT was released!.. Trick or treat?! ___ Nut-upsuser mailing list Nut-upsuser@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] FSD sequence: Waiting for bigger and slower clients before cutting power

2023-10-31 Thread Jim Klimov via Nut-upsuser
Hello again :) > Aren't the drivers daemonized and isn't it the drivers that kill power already? Historically, a mixed bag: they are daemonized while monitoring, then they exit (or are killed) as part of shutdown, and then a late-shutdown script (historically a patch to rc.halt or similar

Re: [Nut-upsuser] [Nut-upsdev] release?

2023-10-30 Thread Jim Klimov via Nut-upsuser
Hello all, Thanks to everyone who chimed in with tests, ideas and even freshly confirmed regressions introduced by NUT v2.8.0 release compared to v2.7.4 (yes, there were after all a few eggs broken to make that omelette, with all the code clean-up that went into it), so now I feel more

Re: [Nut-upsuser] usbhid-ups not loading with Arduino Leonardo on Ubuntu 23.10

2023-10-29 Thread Jim Klimov via Nut-upsuser
OTOH: I wonder whether, when it says "Claimed interface 2 successfully" it got the right number of the correct (HID) one of many interfaces you likely have there?.. :\ Jim On Mon, Oct 30, 2023, 00:04 Kelly Byrd wrote: > > > Apologies for the long post. I'm trying to include what I hope are

Re: [Nut-upsuser] Spammy notification-tech diagnostic message

2023-10-29 Thread Jim Klimov via Nut-upsuser
Would this help? https://github.com/networkupstools/nut/pull/2136 Jim On Sun, Oct 29, 2023 at 5:04 PM Vojtěch Hurčík wrote: > Thanks for the reply, it's only reported once per spawned process and what > you say makes perfect sense in this light. A configuration toggle or > environment

Re: [Nut-upsuser] Spammy notification-tech diagnostic message

2023-10-29 Thread Jim Klimov via Nut-upsuser
Thanks for your concern. Technically, it is not about just systemd - other systems where launched processes that have ways to interact with some OS framework (like SMF, upstart, Windows services, docker/kubernetes, whatever) *and* such framework offers ways for services to inform they have

Re: [Nut-upsuser] My Back-UPS RS 1000 went haywire, any ideas?

2023-10-28 Thread Jim Klimov via Nut-upsuser
Is the battery old? PbAc ones usually last for 2-3 years and then degrade. Should be a field-replaceable part. Some 20 years ago I had an APC BackUPS become a glorified power strip every few years, so when the wall power disappeared - load went down immediately. It was also beeping about battery

Re: [Nut-upsuser] FSD sequence: Waiting for bigger and slower clients before cutting power

2023-10-27 Thread Jim Klimov via Nut-upsuser
Check it out now, my NUT project braza!.. https://github.com/networkupstools/nut/pull/2133 https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests Jim On Fri, Oct 27, 2023 at 8:07 PM Jim Klimov wrote: > Hi, this does sound like a

Re: [Nut-upsuser] [Nut-upsdev] release?

2023-10-27 Thread Jim Klimov via Nut-upsuser
Hello, fellow NUTs! This October proved to be a rather productive month, with several developments wrapped up, as well as some issues with master codebase behavior created, reported, fixed and tested :) While we were not part of some official Hacktoberfest this year, it pretty much felt like

Re: [Nut-upsuser] FSD sequence: Waiting for bigger and slower clients before cutting power

2023-10-27 Thread Jim Klimov via Nut-upsuser
Hi, this does sound like a useful idea - although for the principle of least surprise and for variation in deployments, I'd rather have it as a (non-default state of a) configuration toggle that can be set via `upsmon.conf`: whether this particular client exits after processing FSD or not. The

[Nut-upsuser] APC Modbus support is finally here!

2023-10-21 Thread Jim Klimov via Nut-upsuser
Hello fellow NUTs :) It is my great pleasure to get a bit of sunshine from other people's work, and announce that the initial pull request for `apc_modbus` NUT driver has recently been merged to the main NUT codebase, so it would be part of an eventual 2.8.1 release. Great thanks go to Axel

Re: [Nut-upsuser] URL upsstats.cgi DOES not show UPS

2023-10-11 Thread Jim Klimov via Nut-upsuser
Glad it worked out! > I have not made ANY changes to hosts.conf in my server. So was this in the end a wrong assumption on your side, or was some error in the file shipped by packaging (or even NUT upstream sources)? Jim On Wed, Oct 11, 2023 at 5:25 AM S K wrote: > Can close the thread! Had

Re: [Nut-upsuser] URL upsstats.cgi DOES not show UPS

2023-10-10 Thread Jim Klimov via Nut-upsuser
Well... one troubleshooting idea is to use a sniffer (ngrep, tcpdump, etc.) to see the dialogue between the web server and upsd data server ( 192.168.0.20:3493), to check if anything looks fishy there. Maybe some firewalls, SELinux after an update, etc. tempered up and there is no network chatter

Re: [Nut-upsuser] New Tool: nut2mqtt

2023-10-03 Thread Jim Klimov via Nut-upsuser
Thanks, updated. Should get published soon. Jim On Tue, Oct 3, 2023 at 3:05 AM Raymond Burkholder wrote: > Hello, > > On the page https://networkupstools.org/projects.html, I didn't see a > general purpose Nut to MQTT client. > > I've written one in C++. Source can be found at: >

Re: [Nut-upsuser] EATON device.model 5E 1500i

2023-09-21 Thread Jim Klimov via Nut-upsuser
Kinda forgot about this aspect, thanks for reminding. More technical and historical detail here: https://github.com/networkupstools/nut/issues/630 ... referring to one's own earlier post - how typical of internet these days! ;) Jim On Thu, Sep 21, 2023, 16:17 Eyal Lebedinsky wrote: > > On

[Nut-upsuser] Heads-up: now it will be possible to manually select `subdriver` in `usbhid-ups`, and... looking at a release!

2023-09-17 Thread Jim Klimov via Nut-upsuser
Hello all, Over the past years there have been several cases where I wished we could specify an USB HID subdriver as easily as a subdriver/protocol combo in nutdrv_qx or blazer drivers, or a MIB in snmp-ups driver. But never got around to implementing that (nor convinced somebody else to do

Re: [Nut-upsuser] Info for decoding report from UPS

2023-09-14 Thread Jim Klimov via Nut-upsuser
One tool for one job :) You can have another protocol client with GUI. NUT includes a python (qt5 or gtk) set of UI clients. On Thu, Sep 14, 2023, 17:06 Alessandro Mandelli wrote: > It works, but I got an allergy for CLI > > > > PS C:\Program Files (x86)\NUT\bin> .\upsc.exe UPS > > device.mfr:

Re: [Nut-upsuser] Info for decoding report from UPS

2023-09-14 Thread Jim Klimov via Nut-upsuser
Ah, I see. My take is that using or adapting something that exists is easier than starting from scratch - but to each their own. Surely you'll learn a lot :) Still, just to clarify: after the NUT v2.8.0 release I began a slow revival of old NUT for Windows effort (abandoned a decade ago at

Re: [Nut-upsuser] Info for decoding report from UPS

2023-09-14 Thread Jim Klimov via Nut-upsuser
So, do you plan to write some new program for that UPS instead of trying to use NUT? (Note there are also regular Windows builds on CI - with some caveats so far). I'm commuting now so can't find links easily, but can suggest you to peruse the issue/PR tracker, there's a discussion about an SMS

Re: [Nut-upsuser] Info for decoding report from UPS

2023-09-14 Thread Jim Klimov via Nut-upsuser
Seems like recent work on nutdrv_qx subdriver armac (merged to master last month) could handle it, or some older QX drivers like richcomm if it is a different brew of a loosely similar product. Try following

Re: [Nut-upsuser] PR to test for users of Qx devices (blazer and nutdrv_qx)

2023-09-13 Thread Jim Klimov via Nut-upsuser
Thanks! So, comparing this with the January report -- there are no substantial changes in device discovery process and the collected info. However, the 10K seems to actually report most of the data which we have to "guesstimate" in other cases. Hoping somebody else with QX devices would

Re: [Nut-upsuser] Multiple battery levels to trigger actions?

2023-09-13 Thread Jim Klimov via Nut-upsuser
Hello, I think this should be possible, probably with dummy-ups or clone* drivers and respective override.* definitions in the "secondary drivers" So if something does not work here, I'm ready to consider it a bug. Can you post samples of config and logs (are there any errors?) One thing

Re: [Nut-upsuser] Eaton 3s 550 and testing

2023-09-04 Thread Jim Klimov via Nut-upsuser
I don't think they have variables attached (maybe some for known verdicts after a test). The tests and other available ops should be among `upscmd -l`. Jim On Mon, Sep 4, 2023, 11:12 Łukasz Michalski via Nut-upsuser < nut-upsuser@alioth-lists.debian.net> wrote: > Hi, > > I have Eaton 3S 700

Re: [Nut-upsuser] [Nut-upsdev] Setting up charge/voltage based shutdowns

2023-08-06 Thread Jim Klimov via Nut-upsuser
eters for initiating the > shutdown, one can decide something like: > > - VMware will shutdown at 20% battery left OR 15min of runtime left > - NAS will shutdown at 10% ou 8min left > > Another approach is to attempt to define a way to sync secondaries… but > that’s much more co

Re: [Nut-upsuser] Setting up charge/voltage based shutdowns

2023-08-06 Thread Jim Klimov via Nut-upsuser
left > - NAS will shutdown at 10% ou 8min left > > Another approach is to attempt to define a way to sync secondaries… but > that’s much more complex. > > Arnaldo. > > On Aug 6, 2023, at 12:39 PM, Jim Klimov via Nut-upsuser < > nut-upsuser@alioth-lists.debian.net> wr

[Nut-upsuser] Setting up charge/voltage based shutdowns

2023-08-06 Thread Jim Klimov via Nut-upsuser
Hello all again, While looking at https://github.com/networkupstools/nut/issues/2014 I understood that I am not sure if currently NUT has a standard way of triggering a shutdown based on remaining charge or runtime, if a device/driver lacks a `battery.charge.low` setting but has readings for

Re: [Nut-upsuser] Question on simultaneous IPv4 and IPv6 "any address" listening

2023-08-06 Thread Jim Klimov via Nut-upsuser
gs that this happens. Jim Klimov On Sat, Aug 5, 2023 at 2:24 PM Greg Troxel wrote: > Jim Klimov via Nut-upsuser writes: > > > I've recently found that at least on my test box the `LISTEN *` line > had > > only set up an IPv4 `0.0.0.0` listener but not an IPv6 `::0` listener

[Nut-upsuser] Question on simultaneous IPv4 and IPv6 "any address" listening

2023-08-05 Thread Jim Klimov via Nut-upsuser
Cheers all, TL;DR version: I've recently found that at least on my test box the `LISTEN *` line had only set up an IPv4 `0.0.0.0` listener but not an IPv6 `::0` listener for `upsd`. In fact, at least on a "dual-stack" system, it seems impossible to bind to both - so depending on binding order

[Nut-upsuser] Android client capable of NUT monitoring, exists and can be made better

2023-08-05 Thread Jim Klimov via Nut-upsuser
Hello all, A recent issue discussion pointed me to an Android app called "apcupsd-monitor", which is in fact *also* capable of NUT and Eaton IPM (via XML/HTTP?) protocols, and looks quite neat for a mobile dashboard: * https://github.com/networkupstools/nut/wiki/Android-clients *

Re: [Nut-upsuser] Powering off the big stuff first

2023-07-16 Thread Jim Klimov via Nut-upsuser
I think the client should be able to do that with `upssched` as long as the `upsmon` calls it to trigger the events. Thinking of it, the common use-case is indeed time (e.g. 5 minutes after on-battery, certain systems begin their shutdown), or the primary upsmon telling others to FSD ASAP. Maybe

Re: [Nut-upsuser] NUT start service problem

2023-07-16 Thread Jim Klimov via Nut-upsuser
Hello, interesting to hear. What version of NUT, what way of installation on Windows, what sort of UPS (USB or some other)? Asking because this info is lacking and currently there are a few variants to consider: * an MSI package based on NUT v2.6.5 (last released about 9 years ago as "2.6.5-6"),

Re: [Nut-upsuser] failed after upgrade - upscode2: Missing UPCL after UPCL

2023-07-05 Thread Jim Klimov via Nut-upsuser
Yes, the bug was about conversion of `upsdebugx()` and friends to macros, so actual methods (and their parameter evaluations) only waste CPU cycles when the verbosity level is high enough. Otherwise lots of logic was executed to prepare method arguments only for it to bail out in the first line.

Re: [Nut-upsuser] failed after upgrade - upscode2: Missing UPCL after UPCL

2023-07-05 Thread Jim Klimov via Nut-upsuser
Ah, I thought you missed in my earlier reply the part about a bug with debug printouts in 2.8.0 (fixed on master since), did not comment on that when you replied with quoting... So, for now options are to bump debugging to 3+ or to build your own in one of many ways possible :\ On Wed, Jul 5,

Re: [Nut-upsuser] failed after upgrade - upscode2: Missing UPCL after UPCL

2023-07-04 Thread Jim Klimov via Nut-upsuser
Normally yes - enable and start the target and the particular services relevant to your setup. For the binary you have from packaging (if not rebuilt as suggested earlier), set debug_min=3 in ups.conf section for upscode2, to currently trade driver viability for some storage traffic with more

Re: [Nut-upsuser] failed after upgrade - upscode2: Missing UPCL after UPCL

2023-07-04 Thread Jim Klimov via Nut-upsuser
Hello, thanks for the report and trying to wrap my head around it. On a side note, it seems you've reported the same(?) UPS a couple of decades ago? ;) https://networkupstools.org/networkupstools-master.github.io/ddl/Exide/NetUPS_SE_PRC2400a.html =>

[Nut-upsuser] NUT, Linux and libusb

2023-06-29 Thread Jim Klimov via Nut-upsuser
Cheers, Trying to wrap my head around an issue discussed in https://github.com/networkupstools/nut/issues/1925 The gist of it is that despite the usbhid-ups driver running as `root` and seeing most of the regular run-time info, in the initial device search it fails to find basic matching

Re: [Nut-upsuser] Controlling outlets

2023-06-15 Thread Jim Klimov via Nut-upsuser
Unfortunately it is vague, at least on the NUT side, since it really depends on capabilities of particular hardware (and then on who coded what in NUT drivers and mapping tables). Often this level of precision is not available or manageable externally at all, NUT or not (e.g. WebUI of an UPS might

Re: [Nut-upsuser] Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)

2023-06-14 Thread Jim Klimov via Nut-upsuser
Not fully true about example configs in docs: man pages for CGI bits have some :) https://github.com/networkupstools/nut/blob/master/docs/man/upsset.conf.txt https://github.com/networkupstools/nut/blob/master/docs/man/upsstats.cgi.txt

Re: [Nut-upsuser] Upssched 100% CPU after updating Debian 12

2023-06-13 Thread Jim Klimov via Nut-upsuser
Thanks for the feedback. Just the bit about "when provided by Debian" concerns me - we have a slow-ish cadence of releases, and then distros take another year to ship them :\ You might be reasonably served by a custom build (in-place or even package). YMMV... Jim On Tue, Jun 13, 2023, 18:38

Re: [Nut-upsuser] Upssched 100% CPU after updating Debian 12

2023-06-13 Thread Jim Klimov via Nut-upsuser
After launching the command several times, with debug (posted by new code in a new branch for the investigation) confirming that the same daemon handles operations from the new client instances, its strace now has numerous FDs to report after select() - so I guess it is a problem of detecting an

Re: [Nut-upsuser] Upssched 100% CPU after updating Debian 12

2023-06-13 Thread Jim Klimov via Nut-upsuser
So, got some good news: I hear(*) I managed to reproduce the problem with current NUT master and an adapted copy of your posted configs and script :D Experimental debugging now sounds possible. (*) PC under the desk wails with all its cooling fans as soon as I started the client which spawned a

  1   2   3   >