[Nut-upsuser] What does this message notify message mean?
Jim Klimov
jimklimov+nut at gmail.com
Sat Nov 16 03:15:33 GMT 2024
Actually just today I had a PR
https://github.com/networkupstools/nut/pull/2678 to replace those numeric
codes in messages with slightly more meaningful text.
There is indeed little immediate practical impact (as in, nothing gets
broken), but rather a moderate strategic one:
* if you run NUT in a systemd distro (eventually maybe SMF or other such
frameworks), where notifications are possible and useful to e.g. report
that a driver's service has started only after it completes the first data
walk of a device, these messages help you see you are missing out on that
(either NUT built without support for the framework, or running not under
its wing - intentionally during testing or not). In your case this goal was
reached - detected that the package was not built sufficiently feature-full
:)
* if you run NUT in a distro without such framework, or do not plan to use
one for whatever reasons even if available, your init-script (or even
systemd unit) may be missing out on `export NUT_QUIET_INIT_UPSNOTIFY=true`
to hush those messages.
More details in https://github.com/networkupstools/nut/issues/1590,
https://github.com/networkupstools/nut/pull/1777 and
https://github.com/networkupstools/nut/pull/2136
Jim
On Sat, Nov 16, 2024 at 12:30 AM Orion Poplawski via Nut-upsuser <
nut-upsuser at alioth-lists.debian.net> wrote:
> On 11/15/24 15:57, Orion Poplawski wrote:
> > This is on EL9 with 2.8.2:
> >
> > nut-monitor[150988]: upsnotify: failed to notify about state 2: no
> > notification tech defined, will not spam more about it
> >
> > I have no idea what this really means. I think it has something to do
> about
> > systemd startup notification, but I'm not really sure. Can someone
> enlighten me?
> >
> > Is this something that anyone should care about?
> >
>
> So, it appears to be because the nut package is being built without
> systemd-devel and its notification support. If I build nut with that, I
> now get:
>
> nut-monitor[153720]: upsnotify: logged the systemd watchdog situation once,
> will not spam more about it
>
> which I will assume to be completely informational and not anything that
> anyone should care about. Right?
>
> --
> Orion Poplawski
> he/him/his - surely the least important thing about me
> Manager of IT Systems 720-772-5637
> NWRA, Boulder Office FAX: 303-415-9702
> 3380 Mitchell Lane orion at nwra.com
> Boulder, CO 80301 https://www.nwra.com/
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20241116/b9310222/attachment.htm>
More information about the Nut-upsuser
mailing list