Hello,
Glances is publishing my docker containers but there is no value for the count of the running ones. I could either count the number of topics in glances/server/55ee9907d6e6/containers or count the number of status=running messages with wildcard: glances/server/55ee9907d6e6/containers/+/status
Happy to be proved wrong, but I don’t think that’s possible within HA: the information simply isn’t available. You’d need something external like mosquitto to count up the topics; or easier, a command line sensor to query the docker host.
Thank you, then it is no wonder I could not make it.
So I created an ssh key and placed it in my server for authorized_keys. I can ssh into my server from home assistant without authorization now.
I have checked the command line docs and created the below entry in my config:
If it looks like a number, you’re fine. My script returns some data that needs manipulating.
Are there any errors in the logs? Try removing the unit of measurement until you’re getting a number back.
I haven’t used the add-on (I’m running HA in a container), but I’m still not convinced that your SSH session in the screenshot is running in the HA container as opposed to the host. What do you get back if you execute ps at that prompt?
This is what I get from a console attached to my HA container: