[Apcupsd-users] [PATCHv2] Conf: new SELFTESTGRACEPERIOD option to prevent self test shutdowns
Brought to you by:
adk0212
|
From: Jan P. <po...@fn...> - 2023-11-03 19:46:50
|
Hola,
Jan Pokorný píše v Pá 20. 10. 2023 v 15:37 +0200:
> On that front, the patch is deployed locally, as mentioned, will
> report back, but if anyone spots any logical gaps or anything,
> as well as patch inclusion blockers, please let me know.
so, as expected, this Wednesday marked the 14 days (plus about
3 hours and 20 minutes in addition [*]) period and indeed, self-test
triggered. And to my delight, the patch literally did not let
me down, indeed!
So I am happy this is a problem solved on my part, and I am attaching
just a slightly updated (previously weak wording at the new directive's
comment in the configuration file) v2 of the patch, and also the
respective log from about this self-test's round, obtained with
purposefully increased verbose using `-d 80`, and in two forms
actually:
- selfcheck-log-colorful.ansi:
colorful output as formatted natively with journalctl(1) when output
going directly to terminal, suitable for viewing with, e.g.,
less(1) combined with `-R` switch (as customary on Linux platform)
- selfcheck-log-annotated.txt:
ex-post manually edited, plain-text only version of the same,
prefixed with respective severities to discern messages easily,
note that no prefix implies `INFO`, and my lowercase `info` is
only to highlight new low-prio messages my patch adds, since
I though it might be interesting, in case of expressly increased
verbosity -- as I've done here -- to also observe the `ups->Status`
state value)
I am receptive should there be any complaints regarding excessive
rate of repeated messages (one could make a point that in such
a relatively rare and strictly time-boxed & short period, it does
not matter that much, though), just as to any other feedback.
Just remember to Cc me to your on-list responses, please, since
I am NOT subscribed and not keen on polling the archives.
[*] previous offset, this time measured from the actual intermittent
blackout (as it apparently resets the self-test timer), was
14 days and only 50 minutes, so there appear to be a slight
variability (unfortunately, don't have a long term stats,
only now I am becoming curious)
Cheers,
-- poki
|