Hello
How can I get information about sfp-tx-power and sfp-rx-power from a Mikrotik device and put this in some LibreNMS entity and then create an alert rule?
Assuming the device detects and you get the SFP basic information on the right hand panel?
Are you wanting to know when there is a link loss or just some degredation of the power? Link loss will be detected and can be alerted using this existing collection rule - it works on all the SFP interfaces on my Mikrotiks:
If the sensor has a limit defined and captured (there isn’t on my Mikrotiks it seems) these two existing rules from the collection will flag it - it’s more common for temperatures:
Hi Rhinoau, it has been very helpful, thank you very much in advance.
Now I have a new problem, the alert reports the correct value but at the same time it repeats it and shows in all the sfp-sfpplus interfaces, how can I make it only show the sensor_current value together with the sfpplus interface associated with it?
Do you know any solution ?
I just alert on interface state as I mentioned, but I made a test rule from the linked post and seems to work normally for me - this device has spf11 at -11.2 and it doesn’t alert:
I looked in the sensors table to see what exactly to use for the desc/class etc. It may also help to have an Rx and Tx rule separately.
For a test, if you you set sensors.sensor_current less or equal to something in the middle of your numbers such as -13.5 - does it get rid of the lower values after a few minutes?
May take someone who actual does this to compare to assist if still no good. Can you share the exact rule you’ve created?