Hello!
I noticed that port up/down alerts interface status always returns down.
The default template is Port Status: {{ $value[‘message’] }}
I tried changing it to ifOperStatus, but they both report down for both the alert and the recovery email.
The alert is fine as the port is down, but why is recovered message still shows interface down?
We are monitoring Juniper devices.
2021-02-26 04:32:02 Issued recovery for rule ‘Port status up/down’ to transport ‘mail’
2021-02-26 04:32:02 Issued recovery for rule ‘Port status up/down’ to transport ‘mail’
2021-02-26 04:31:54 ge-0/2/0 ifOperStatus: down -> up
2021-02-26 04:31:54 ge-0/2/0.0 ifOperStatus: lowerLayerDown -> up
2021-02-26 02:14:02 Issued critical alert for rule ‘Port status up/down’ to transport ‘mail’
2021-02-26 02:14:02 Issued critical alert for rule ‘Port status up/down’ to transport ‘mail’
2021-02-26 02:11:53 ge-0/2/0 ifOperStatus: up -> down
2021-02-26 02:11:53 ge-0/2/0.0 ifOperStatus: up -> lowerLayerDown
Alert for device XXXXXXXX - Port status up/down
Device Name: XXXXXXXX
Severity: critical
Timestamp: 2021-02-26 02:11:55
Rule: Port status up/down
Physical Interface: ge-0/2/0
Interface Status: down
[“ifOperStatus”]=> string(4) “down”
[“ifOperStatus_prev”]=> string(2) “up”
Device XXXXXXXX recovered from Port status up/down
$value[‘message’] or $value[‘ifOperStatus’] shows down
[“ifOperStatus”]=> string(4) “down”
[“ifOperStatus_prev”]=> string(2) “up”
====================================
Component | Version
--------- | -------
LibreNMS | 21.2.0
DB Schema | 2021_02_09_084318_remove_perf_times (199)
PHP | 7.4.3
Python | 3.8.5
MySQL | 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool | 1.7.2
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 2.0.11
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct