blind-oracle / zabbix-sensors

Zabbix template & scripts to discover & monitor Linux sensors
36 stars 15 forks source link

Resolve issues when nouveau is used and improve error handling #13

Closed alberts-s closed 4 months ago

alberts-s commented 4 months ago

This PR:

An example output of the script in case noveau is in use, but GPU is disabled:

{
...
  "hwmon4-nouveau": {
    "in0": {
      "input": 0,
      "label": "GPU core",
      "max": 1200,
      "min": 600,
      "sensor_type": "in"
    },
    "temp1": {
      "auto_point1_pwm": 100,
      "auto_point1_temp": 90000,
      "auto_point1_temp_hyst": 3000,
      "crit": 105000,
      "crit_hyst": 5000,
      "emergency": 135000,
      "emergency_hyst": 5000,
      "input": 0,
      "max": 95000,
      "max_hyst": 3000,
      "sensor_type": "temp"
    }
  }
}