diff --git a/doc/Alerting/Templates.md b/doc/Alerting/Templates.md index 4de5fd41d7..9e7d65e966 100644 --- a/doc/Alerting/Templates.md +++ b/doc/Alerting/Templates.md @@ -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