-
-
Notifications
You must be signed in to change notification settings - Fork 379
dstate/dummy-ups: ALARM status does not clear after dirty entrance into state #2928
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
Comments
On first (quick) glance this seems to result from the alarm getting set in the Lines 1797 to 1809 in 72fbc58
Lines 1872 to 1881 in 72fbc58
After setting
After clearing
From a "good to be safe" perspective respecting the sloppy driver coding makes sense, as described here: Lines 1851 to 1870 in 72fbc58
Just wondering if we should also clear such a sloppy status by calling the proper dstate alarm functions (to clear) after it disappears without proper cleanup, for sake of completeness. Maybe with a timeout or waiting X status cycles for proper cleanup to occur after the status disappears, if not - clear the alarm state? As for |
Stumbled upon this with
dummy-ups
and the 2.8.3 release version:Setting
ups.status
toOL ALARM
correctly registers the alarm state. (Note: I did not exposeups.alarm
hence asN/A
)Apr 29 14:44:59 TowerOLD upsmon[3362741]: UPS ups@127.0.0.1: one or more active alarms: [[N/A]]
Setting
ups.status
back toOL
does not clear the alarm state,upsc
(still) reportsups.status: ALARM OL
Setting
ups.status
toOL TRIM
in an attempt to clear the alarm state,upsc
now reportsups.status: ALARM OL TRIM
Apr 29 14:48:49 TowerOLD upsmon[3362741]: UPS ups@127.0.0.1: trimming incoming voltage
(nothing else)Setting
ups.status
back toOL
in another attempt to clear both states,upsc
now reportsups.status: ALARM OL
Apr 29 14:52:34 TowerOLD upsmon[3362741]: UPS ups@127.0.0.1: no longer trimming incoming voltage
(nothing else)I'm not sure if this is limited to
dummy-ups
, I haven't had time to investigate further so far.The text was updated successfully, but these errors were encountered: