Receiving Alerts on Interfaces that are Shut

I did a Google search and didn’t find the answer in the first four pages. Maybe my Google-fu sucks. I’ve asked about this in Discord before, but that’s not really good for non-realtime communication. Maybe someone answered and I didn’t see it.

I have an interface that started generating sensor under or over limit alerts. That happened because that circuit was decommissioned. I shut the interface after the alerts started. The alerts continue. I thought I modified the rules so they’d only alert on enabled interfaces, but perhaps not? Here are the rules I’m using.

%sensors.sensor_current > %sensors.sensor_limit && %sensors.sensor_alert = 1

%sensors.sensor_current < %sensors.sensor_limit_low && %sensors.sensor_alert = 1

root@indy-librenms:/opt/librenms# ./validate.php

Component Version
LibreNMS 1.50-47-gd5ea3d42b
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0
MySQL 10.0.32-MariaDB-0+deb8u1
RRDTool 1.6.0


[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

how is the interface related to the sensor? The rules you wrote don’t mention a port…

SFP modules DDM information.

Stock rule, added the second bit at the recommendation of Discord or the community or some such at one point to stop alarming over stuff that was disabled.

why not add a check if port is shutdown?

may be a bit tricker than that
you have to relate the sensor to the port

How would I relate the sensor to the port?