Label customization help needed

Is it possible to add if statement in a label of link to monitor for example interface speed or signal strength and if it goes below threshold to play sound?
For example: if interface.speed < 100 mbit turn label color to red and play sound?

Thanks in advance

Anyone? :frowning:

This is extra complicated since links are handled differently than devices.

Gsandul wrote a probe that could complain if a link went above a certain speed but each link probe had to be manually coded. You could easily use his example to make what you are looking for just use search and you will find it. Then you can add any notification to that probe that you like.

Lebowski

Thanks for a reply. But can you please provide me a link to that post since I could not find it?

Hello
you can create a probe that check snmp value of interface speed. I do it already to check autonegation speed between two routers.

On a RB1200, for example i check the interface 1:

SNMP OID 1.3.6.1.2.1.2.2.1.2.1 VALUE is ether1

SNMP OID: 1.3.6.1.2.1.2.2.1.5.1 VALUE is 1000000000 (1000000000 IS FOR 1gb)

So if the Probe check this value - you can do an alert on the speed of interface.

You misunderstood me. I need it on a label. That is ok for devices. On devices I do have

0 - [oid(“1.3.6.1.2.1.2.2.1.2.1”)]: [oid(“1.3.6.1.2.1.2.2.1.5.1”)/1000000] Mbit
1 - [oid(“1.3.6.1.2.1.2.2.1.2.2”)]: [oid(“1.3.6.1.2.1.2.2.1.5.2”)/1000000] Mbit
etc…

With a probe:

Oid: iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifSpeed.1
Oid Type: gauge
Compare Method: >= (more or equal)
Gauge Value: 100000000

So, I need something like this on a label, not a device. Problem is for example with ubiquity antennas that are behind a switch, signal strength between grooves, signal between ubiquity’s and wireless cards, traffic when goes over threshold… so this is needed on a label. And yes, this could be made on a device but I need a solution that could work on a label.

http://forum.mikrotik.com/t/norification-if-speed-on-a-link-drops/39246/13
Here gsandul shows how to generate a notification if a link drops below a certain speed.

And if you can’t use that for a template you can specify the IP address of the device in the OID.

[oid(“1.3.6.1.2.1.1.5.0”,“192.168.1.1”)]

Put the above on a label and it will show the system id of the device with ip address 192.168.1.1.

HTH,
Lebowski