Summary: | net-analyzer/icinga2-2.12.1 with broken check-lmsensors | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | onkobu |
Component: | Current packages | Assignee: | Matthew Thode ( prometheanfire ) <prometheanfire> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
onkobu
2020-12-12 13:23:02 UTC
A sample service configuration (/etc/icinga2/conf.d/services.conf): apply Service "lmsensors" { import "generic-service" check_command = "lmsensors" # pick any sensor name from output of command sensors vars.lmsensors_sensor = "k10temp-pci-00c3,CPU" assign where host.name == NodeName } This binds the check command to the "object Host NodeName {…}" - definition from /etc/icinga2/conf.d/hosts. Do you have a link to the pull request? It's possible I could include it in a revbump of the existing package while waiting for upstream to merge it. I need to split it first since it suffers from two problems. Making argument order irrelevant is a cheap one. Filtering the value from sensors output is a bit harder. Output seems to differ between distributions, e.g. multi column instead of multi row. Feel free to incorporate the full blob if you're in a hurry. (I wouldn't be surprised if I'm the only one left using Icinga2 with such features.) https://github.com/jackbenny/check_temp/pull/7 |