networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.07k stars 351 forks source link

SHMFS support for reading dstate (simplify monitoring) #1703

Open jimklimov opened 1 year ago

jimklimov commented 1 year ago

Current monitoring integrations to represent NUT data points for SNMP scripted agents, MRTG collectors, etc. rely on running upsc in scripts, often once per data point. All this process forking comes at a cost.

We should consider exposing the readings (R/O at least, since they are public info for protocol-based tools without extra auth) in a shared-memory filesystem endpoint, similar to Linux use of /proc and /sys.

Challenges:

jimklimov commented 1 year ago

In case of separate client, another close match is upslog

See also http://bugs.debian.org/343530 about a version enhanced for rrdtool compatible logging.