mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
docs: Fix for alert template port utilization (#8175)
* docs: fix for alert template port utilization Alert Template for port utilization. Fix from jdtp ;) * changed to hostname
This commit is contained in:
committed by
Neil Lathwood
parent
8000e8a01a
commit
5384d1ca15
@@ -75,21 +75,18 @@ Alert sent to: {foreach %contacts}%value <%key> {/foreach}
|
||||
Ports Utilization Template:
|
||||
```text
|
||||
%title
|
||||
Device Name: %sysName
|
||||
Device Name: %hostname
|
||||
Severity: %severity
|
||||
{if %state == 0}Time elapsed: %elapsed{/if}
|
||||
Timestamp: %timestamp
|
||||
Rule: {if %name}%name{else}%rule{/if}
|
||||
{if %faults}
|
||||
{foreach %faults}
|
||||
Device: %value.sysname
|
||||
Physical Interface: %value.ifDescr
|
||||
Interface Description: %value.ifAlias
|
||||
Interface Speed in Bits: %value.ifSpeed
|
||||
Inbound Utilization: {calc (((%value.ifInOctets_rte8)/%value.ifSpeed)100)}%
|
||||
Outbound Utilization: {calc (((%value.ifOutOctets_rate8)/%value.ifSpeed)100)}%
|
||||
Interface Speed: {calc (%value.ifSpeed/1000000000)} Gbs
|
||||
Inbound Utilization: {calc ((%value.ifInOctets_rate*8)/%value.ifSpeed)*100}%
|
||||
Outbound Utilization: {calc ((%value.ifOutOctets_rate*8)/%value.ifSpeed)*100}%
|
||||
{/foreach}
|
||||
{/if}
|
||||
```
|
||||
|
||||
Storage:
|
||||
@@ -97,7 +94,7 @@ Storage:
|
||||
|
||||
%title
|
||||
|
||||
Device Name: %sysName
|
||||
Device Name: %hostname
|
||||
Severity: %severity
|
||||
Uptime: %uptime_short
|
||||
{if %state == 0}Time elapsed: %elapsed{/if}
|
||||
@@ -116,7 +113,7 @@ Temperature Sensors:
|
||||
|
||||
%title
|
||||
|
||||
Device Name: %sysName
|
||||
Device Name: %hostname
|
||||
Severity: %severity
|
||||
Timestamp: %timestamp
|
||||
Uptime: %uptime_short
|
||||
@@ -143,7 +140,7 @@ Value Sensors:
|
||||
|
||||
%title
|
||||
|
||||
Device Name: %sysName
|
||||
Device Name: %hostname
|
||||
Severity: %severity
|
||||
Timestamp: %timestamp
|
||||
Uptime: %uptime_short
|
||||
|
Reference in New Issue
Block a user