Skip to content
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

Introduce a simple PoC for NUT readings seen in FUSE file system #2592

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

jimklimov
Copy link
Member

@jimklimov jimklimov commented Aug 13, 2024

Take advantage of the simple option in #2591 RFE, with https://github.com/vi/execfuse ("shell FUSE binding" project) successfully used for a simple and inefficient wrapper around upsc.

Tested on Linux and MacOS

@jimklimov jimklimov added enhancement portability We want NUT to build and run everywhere possible labels Aug 13, 2024
@jimklimov jimklimov added this to the 2.8.3 milestone Aug 13, 2024
@clepple clepple removed their request for review August 14, 2024 01:17
@jimklimov jimklimov merged commit 822d04e into networkupstools:master Aug 14, 2024
27 of 30 checks passed
@aquette
Copy link
Member

aquette commented Aug 15, 2024

Interesting @jimklimov
But to me, the real disruptive next step is still smartnut, as detailed in the pieces of specs I've started, and as started decades ago with the HAL connector. Pure async / event based, direct connection to the consuming busses (dbus, mqtt for HA and others, ...), ...

@jimklimov
Copy link
Member Author

jimklimov commented Aug 15, 2024

Yeah, this one is in no way fit for production at least as far as computational efficiency goes, just was a fun thought experiment turned into a code experiment after I told people about FUSE during lunch same day. It does work though, so is a decent demo of FUSE and the inceptions of filesystems in the UNIX world :)

A client similar to upsmon (maybe an optional new facet of it?) that would cache the info efficiently etc. may be another matter, especially for people who currently have to parse upsc outputs themselves e.g. for good old MRTG graphing or snmpagent representation....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement portability We want NUT to build and run everywhere possible
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants