Xymon Mailing List Archive search

exclude devices from temp check?

5 messages in this thread

list Christoph Zechner · Mon, 30 Aug 2021 15:55:53 +0200 ·
Hi,

I've been using the "temp" check from xymon's plugins (on Debian) and wanted to ask if it was possible to excluce certain devices from the check. We have "problems" with an USB stick, which is permanently plugged into one of our machines and which does not have any temperature sensors or readings, but sometimes xymon decides it now has somewhere around 200 ?C, which is of course not possible.

Other checks like "libs" have dedicated yaml files which allow customisation, is there any such option for the "temp" check as well?

Thanks in advance!

Best regards
Christoph Zechner
list Jeremy Laidman · Tue, 31 Aug 2021 10:03:11 +1000 ·
Christoph

I'm not familiar with the xymon plugins you're referring to, having never
used Xymon on Debian-based systems, but Google tells me to look in
/usr/share/doc/hobbit-plugins/examples/temp.local.yaml for config
examples, and to make changes by modifying (or adding) the file
/etc/xymon/temp.local.yaml.

Cheers
Jeremy
quoted from Christoph Zechner

On Mon, 30 Aug 2021 at 23:56, Christoph Zechner <user-249716582ccc@xymon.invalid> wrote:
Hi,

I've been using the "temp" check from xymon's plugins (on Debian) and
wanted to ask if it was possible to excluce certain devices from the
check. We have "problems" with an USB stick, which is permanently
plugged into one of our machines and which does not have any temperature
sensors or readings, but sometimes xymon decides it now has somewhere
around 200 ?C, which is of course not possible.

Other checks like "libs" have dedicated yaml files which allow
customisation, is there any such option for the "temp" check as well?

Thanks in advance!

Best regards
Christoph Zechner

list Christoph Zechner · Tue, 31 Aug 2021 06:22:15 +0200 ·
Hi,


On 31/08/2021 02:03, Jeremy Laidman wrote:
Christoph

I'm not familiar with the xymon plugins you're referring to, having never used Xymon on Debian-based systems, but Google tells me to look in /usr/share/doc/hobbit-plugins/examples/temp.local.yaml for config examples,?and to make changes by modifying (or adding) the file /etc/xymon/temp.local.yaml.
You are correct, this file should in theory do, what I want, but as far as I understood it, it is only capable of excluding certain thermal zones, not whole drives/devices unfortunately. Thanks for the pointer though!

Cheers
Christoph
quoted from Jeremy Laidman
Cheers
Jeremy

On Mon, 30 Aug 2021 at 23:56, Christoph Zechner <user-249716582ccc@xymon.invalid <mailto:user-249716582ccc@xymon.invalid>> wrote:

    Hi,

    I've been using the "temp" check from xymon's plugins (on Debian) and
    wanted to ask if it was possible to excluce certain devices from the
    check. We have "problems" with an USB stick, which is permanently
    plugged into one of our machines and which does not have any
    temperature
    sensors or readings, but sometimes xymon decides it now has somewhere
    around 200 ?C, which is of course not possible.

    Other checks like "libs" have dedicated yaml files which allow
    customisation, is there any such option for the "temp" check as well?

    Thanks in advance!

    Best regards
    Christoph Zechner
    <
list Adam Thorn · Tue, 31 Aug 2021 16:31:09 +0100 ·
quoted from Christoph Zechner
On 30/08/2021 14:55, Christoph Zechner wrote:
Hi,

I've been using the "temp" check from xymon's plugins (on Debian) and wanted to ask if it was possible to excluce certain devices from the check. We have "problems" with an USB stick, which is permanently plugged into one of our machines and which does not have any temperature sensors or readings, but sometimes xymon decides it now has somewhere around 200 ?C, which is of course not possible.
It looks like the 'temp' script just parses the output of hddtemp to produce its report, so I think the approach is to make hddtemp ignore the drive. I think that, by default, hddtemp assumes that a drive temperature is reported by smart attribute 194. Running "hddtemp /dev/sda"  on a drive I know is supported, I'm told:

/dev/sda: ST500NM0011: 28?C

That drive model doesn't look to match any of the regexes defined in the first column of my /etc/hddtemp.db so if I add a line to that file:

"ST500NM0011" 0 C "ST500NM0011"

(where I think the first column is a regex matching the drive model, the fourth is any human-friendly description, and the 0 means "not supported") then when I run the 'temp' xymon script, the line for /dev/sda switches to clear rather than green and it's excluded from the rrd data.

(Or: maybe the problem is just that your drive uses something other than smart attribute 194 to record the temperature? If so change the "0" to whichever attribute number is the right one)

Adam
list Christoph Zechner · Thu, 2 Sep 2021 06:11:30 +0200 ·
Hi,
quoted from Adam Thorn

On 31/08/2021 17:31, Adam Thorn wrote:
On 30/08/2021 14:55, Christoph Zechner wrote:
Hi,

I've been using the "temp" check from xymon's plugins (on Debian) and wanted to ask if it was possible to excluce certain devices from the check. We have "problems" with an USB stick, which is permanently plugged into one of our machines and which does not have any temperature sensors or readings, but sometimes xymon decides it now has somewhere around 200 ?C, which is of course not possible.
It looks like the 'temp' script just parses the output of hddtemp to produce its report, so I think the approach is to make hddtemp ignore the drive. I think that, by default, hddtemp assumes that a drive temperature is reported by smart attribute 194. Running "hddtemp /dev/sda"? on a drive I know is supported, I'm told:

/dev/sda: ST500NM0011: 28?C

That drive model doesn't look to match any of the regexes defined in the first column of my /etc/hddtemp.db so if I add a line to that file:

"ST500NM0011" 0 C "ST500NM0011"

(where I think the first column is a regex matching the drive model, the fourth is any human-friendly description, and the 0 means "not supported") then when I run the 'temp' xymon script, the line for /dev/sda switches to clear rather than green and it's excluded from the rrd data.
Great approach, thank you. I entered my USB stick's data into the file and hope this changes things. By default, it shows up in xymon as

"drive supported, but it doesn't have a temperature sensor. (SanDisk)"

but every now and then it will trigger an error with temperatures above 150 ?C.
(Or: maybe the problem is just that your drive uses something other than smart attribute 194 to record the temperature? If so change the "0" to whichever attribute number is the right one)
Since it is a typical USB stick, it does not record temperature and all I get from hddtemp is

"SanDisk:  drive supported, but it doesn't have a temperature sensor."

Thanks again, I hope this solves my problem!

Cheers
Christoph
Adam