Dude - how to log interface status

Hi,

I can’t seem to find a way to log the status of an ethernet interface status. I’m trying to have a record of when this ethernet port goes up & down. (see screen shot below). I’m having issues with the device plugged into it.

Screenshot 2024-01-25 090707.png
Thanks for your help.

We probably may consider to use at least 3 sources for that

  1. SNMP - set a probe using SNMP in Dude
  2. ROS - set a probe using a ROS script in Dude
  3. Logs - Send logs to external Syslog and then notifications about specific event
    Screenshot 2024-01-26 at 09.03.47.png
    Screenshot 2024-01-26 at 09.01.44.png

And … in DUDE you can create datasets, that will collect (and compress over time) the collected data.


Datasets are made with SNMP OID and some functions in DUDE to round-subtract-average-convert the collected data.
I have no exemple for up-down collection (that is in the DUDE syslog as LOG records) , but follow traffic that way.

eg code like :

(round(diff32(oid_raw("1.3.6.1.2.1.2.2.1.10.6", 0, 0, "192.168.90.1", "v1-public")))+round(diff32(oid_raw("1.3.6.1.2.1.2.2.1.16.6", 0, 0, "192.168.90.1", "v1-public"))))/1000000

Klembord-2.jpg

Thanks everyone. I’ll dig into this and see how it works.

One thing to note: Dude works by polling… so it records an instantance reading of something. It does NOT do “traps” or events… so its may not capture if up/down perfectly, but close (and closer if you shorten the polling intervals).

This polling usually happens via probes on a device, which also create “data sources”. But you can “shortcut” the probe, by directly using the data sources as @bpwl shows

While you can also send logs from RouterOS device via Dude’s syslog server – which save the logs, but it does NOT let you query/alarm logs.

Local logging → action “remote” ->Dude syslog → ROS logging as topic “dude” → logging action “e-mail”

Long difficult path for push notifications. Logging will be there. But no SNMP trap handler in DUDE. Need something else to handle the SNMP trap sent when interface changes state.
http://forum.mikrotik.com/t/snmp-traps-to-a-syslog-log-file/159874/1