Hi! Not really. I’ve done that part but it doesn’t give info on monitoring specific processes. Since it’s a different machine, I cannot use system monitor. The glances documentation isn’t very good for their API. I only discovered the above when playing around with it.
If there was a way to make a template sensor that would Curl -X GET that info then maybe scan for “status: R” in the output. If it found it, home assistant would list as “online.” If it didn’t, home assistant would say it was off line.
If you are running glances 2.1.1, there is pretty good documentation located in /usr/share/doc/glances/glances-doc.html. It does tell you how to monitor specific processes.
If you are running glances 2.7.1 you also need to install glances-doc
How does this work if there are multiple outputs? (like querying docker containers, and there are 4 or more docker containers). I see the [0] in there assuming that is the first result.
I guess my actual question is how do you manage the results if you don’t know how many results there are? can you get it to list ALL the containers.[*].name and their state?