Proper alerts status language

I have connected my clients Mikrotick devices to Librnms and some of the alerts am getting are not a readable or good language to understand for some of the workmates. I want to set very good readable alerts in Librnms.

Below is someone of the example of alerts I get when the devices (Mikrotik) on the client’s sides come up on line. Or a device is connected to it.

Alert for device vtk-gem-chapel-cpe-rt.vtechnology.net.gh. - Port status Up got worse

Alert for device [vtk-gem-chapel-cpe. - Port status Up got worse
Severity: ok
Timestamp: 2020-08-28 16:00:55
Unique-ID: 164842
Rule: Port status Up Faults:
#1: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5983; ifDescr = ether2;
#2: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5984; ifDescr = ether1;
#3: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5985; ifDescr = Trunk;
#4: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5986; ifDescr = bridge-local-lan;
#5: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5987; ifDescr = WAN;
#6: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5988; ifDescr = Vlan5;
#7: sysObjectID = .1.3.6.1.4.1.14988.1; sysDescr = RouterOS RB951Ui-2nD; location_id = 31; port_id = 5989; ifDescr = wlan1;
Alert sent to:
admin

Please can anyone help me ASAP?

What info do you want in the notification?

I want to know what actually happening in a particular device.
Example:

  1. Like when the particular device is off. The language should be like. Device is down. (Vise versa)
  2. When a ports goes off. It should say port down. (Vise versa )

Ok. So your main issue is you dont understand how templates works https://docs.librenms.org/Alerting/Templates/

In one hand you have alerts rules and, in the other, you have templates. You have to attach rules to templates or they will use the default one.

You have to create as many templates as different ways of showing the info for each rule you want.

For example, this is my port up/down rule (formatted for Telegram):

{{ $alert->title }}
` Host     : {{ $alert->hostname }}`
` Fecha    : {{ $alert->timestamp }}`
` Estado   : @if ($alert->state == 0)✅ @endif @if ($alert->state == 1)⚠ Warning @endif`
` Regla    : @if ($alert->name){{ $alert->name }} @else {{ $alert->rule }} @endif `
@if ($alert->state == 0)⏳ Time elapsed:  {{ $alert->elapsed }} @endif 
@if ($alert->faults)
Puerto(s):
@foreach ($alert->faults as $key => $value)
`   ⭗ {{ $value['ifName'] }}`
`   Descripción: {{ $value['ifAlias'] }}`
`   Estado     : {{ $value['ifOperStatus'] }}`
@endforeach 
@endif 
@if ($alert->alert_notes)
✍ *Notas:* 
{{$alert->alert_notes}}
@endif
http://librenms.tld/device/{{ $alert->device_id }}

And this is what I get when a port goes down


Port down
Host : my.device.host
Fecha : 2020-08-22 12:09:52
Estado : :warning: Warning
Regla : Port status up/down

Puerto(s):
⭗ Ethernet46
Descripción: A MA5600T - 2
Estado : down

http://librenms.tld/device/device/105

Okay. Thanks. Please are you available. I want you to connect to my PC and check it for me.

There is no need to connect to your PC.

Just say what you need and me or someone will try to explain you. In the moment you learn how templates works you will see it very easy and will do your own customizations.