Overheat alert

Tags: #<Tag:0x00007fec8747ef48>

i’m trying to set up email alert when my switches reach high chassis temp.
but i dont recieve any email, even if the temp treshold is reachead.

here is a screenshot of my rules.
and here is the result of validate.php:


Component Version
LibreNMS 1.52-70-gf3ba8947f
DB Schema 2019_05_30_225937_device_groups_rewrite (135)
PHP 7.2.19-0ubuntu0.18.04.2
MySQL 10.1.41-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0


[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.

thanks for help!

I run two temperature alert rules: one for devices which have a high temperature alert limit, and a second for those which also have a (lower) high temperature warning limit:

sensors.sensor_current > sensors.sensor_limit AND sensors.sensor_class = "temperature"


sensors.sensor_current > sensors.sensor_limit_warn AND sensors.sensor_current <= sensors.sensor_limit AND sensors.sensor_class = "temperature"

The first applies globally, the second only to devices in a group defined by:

sensors.sensor_limit_warn != "NULL"


i will try this.
thanks for your help

i finally managed with this:

sensors.sensor_current > 35 AND sensors.sensor_class = “temperature” AND sensors.sensor_descr LIKE ‘%chassis%’

and here is the mail i recieve:

Alert for device 192.168.xxx.yyy - ******
Device Name: 192.168.xxx.yyy
Severity: critical
Timestamp: 2019-10-22 12:40:28
Uptime: 1y 234d 18h 8m 43s

Temperature Chassis 1: 18 °C
High Temperature Limit: 39 °C

Temperature Chassis 2: 19 °C
High Temperature Limit: 40 °C

Temperature Chassis 3: 19 °C
High Temperature Limit: 41 °C

thanks for your help!


Can you post your alert template. Not the rule but the template?

sure. here you go:

{{ $alert->title }}

<br>Hostname: {{ $alert->sysName }}
<br>Severity: {{ $alert->severity }}
<br>Timestamp: {{ $alert->timestamp }}
<br>Uptime: {{ $alert->uptime_short }}
<br>@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif

<!--<br>Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif-->
<!--<br>@if ($alert->faults) Faults:-->
<br>@foreach ($alert->faults as $key => $value)
<br>Temperature Chassis {{ $key }}: {{ $value['sensor_current'] }} °C
<!--<br>** @php echo ($value['sensor_current']-$value['sensor_limit']); @endphp°C over limit-->
<br>High Temperature Limit: {{ $value['sensor_limit'] }} °C
1 Like

Nice! thank you!