Ad Widget

Collapse

Read the temperature of the processor using Zabbix Agent on docker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miki3421
    Junior Member
    • Feb 2021
    • 5

    #1

    Read the temperature of the processor using Zabbix Agent on docker

    Hello,

    with the version OS of zabbix agent I'm able to read the temperature of the processor in a Raspberry Pi4 with out issue launching the below command as user parameter in the zabbix agent configuration

    sensors | grep "temp1" | awk '{print $ 2}' | cut -c 2-3

    I was wondering if is possibile also on docker, because if I'm executing this command inside of the container I'm receiving this error.

    OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: "sensors": executable file not found in $PATH": unknown

    Or if there is another way to do eventually

    Thanks for the support

    Miki
Working...