Port creat for Sensor information

This image is from When i am using Observium.
But Now when i used LibreNMS there is option to get these types of Alerts.In this Alert i got the Full Information of Port sensor Data in dBm and also i got the sensor graph also…

Can u help me How to make these types of informational alerts in LibreNMS…

Have you done any checking on how to achieve this? That’s all possible within LibreNMS with alert templates. If you’ve tried, show us what your template looks like rendered and the template itself

{{ $alert->title }}
Device Name: {{ $alert->hostname }}
Severity: {{ $alert->severity }}
@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif
Timestamp: {{ $alert->timestamp }}
Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif
@foreach ($alert->faults as $key => $value)

Physical Interface: {{ $value[‘ifDescr’] }}
Interface Description: {{ $value[‘ifAlias’] }}
Interface Speed: {{ ($value[‘ifSpeed’]/1000000000) }} Gbs
Inbound Utilization: {{ (($value[‘ifInOctets_rate’]*8)/$value[‘ifSpeed’])*100 }}
Outbound Utilization: {{ (($value[‘ifOutOctets_rate’]*8)/$value[‘ifSpeed’])*100 }}

DBm: {{ $value[‘sensor_dbm’].$unit }}
Previous: {{ $value[‘sensor_prev’].$unit }}
Limit: {{ $value[‘sensor_limit’].$unit }}
Over Limit: {{ round($value[‘sensor_dbm’]-$value[‘sensor_limit’], 2).$unit }}

It would be good to show how that’s rendering for you but what is the actual issue you’re having?

My actual issue is am not getting full sensor information when i got a alert regarding sensor.

You need to expand on that, what does full sensor information mean to you? You’ve got the current and previous value including the limit info. What more do you want?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.