Dear Experts,
I am new to LibreNMS and loved it’s features.
I have create several rules where Port Utilization is more important for us.
I have created below rule but it’s giving me either wrong values or may be I have not created rule in proper way / values.
So Let me share you my Rule, Template and the message which i Got.
I have created rule to give me alert when port utilization exceeds or equal 80% and I got the value as well but my port is 10G so maximum it can be 100% but not more then that.
I got alert of 107% usage, how is that possible ?
Am I triggering a wrong value somewhere in Rule or Alert Template ?
Below is the Alert Template
{{ $alert->title }}
Switch Name: {{$alert->display}}
Switch IP: {{$alert->ip}}
Severity: {{ $alert->severity }}
Timestamp: {{ $alert->timestamp }}
Unique-ID: {{ $alert->uid }}
@foreach ($alert->faults as $key => $value)
Interface: {{ $value[‘ifName’] }}
Description: {{ $value[‘ifAlias’] }}
Interface Speed: {{ number_format(($value[‘ifSpeed’]/1000000000), 2) }} Gbps
Inbound Utilization: {{ number_format((($value[‘ifInOctets_rate’]*8)/$value[‘ifSpeed’])*100, 2) }} %
Outbound Utilization: {{ number_format((($value[‘ifOutOctets_rate’]*8)/$value[‘ifSpeed’])*100, 2) }} %
@endforeach
And below is the alert which i Got.
Guys, Please help on this to get this sorted.
Thanks