Monitor Linux Tun interface

Anyone have a good rule on to monitor if the Tun0 interface on a Ubuntu Linux box. If it changes ip address or goes up and down?

Seems like there are alot of Tun0 interfaces but on the linux side it only shows 1
±-------+
| ifName |
±-------+
| lo |
| ens160 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
| tun0 |
±-------+

that seems odd. Pastebin output of ./discovery.php -d -m ports

Hi Kevin,
I have attached a pastebin
https://pastebin.com/N0STwuR5
Thank You

Discovery only see one tun0

maybe you need to re-discover your device.

Hi Yeah, I noticed that too. I just ran a redescover and seems to still have all the tun0 in the database. On the actual ports tab it only shows those 3.
I have the paste of the ports section
https://pastebin.com/BUcJfzrV

I can’t seem to find a unique identifier to monitor the specific port.

I’ve got the same problem on a proxmox hypervisor. Everytime I reboot or restart a VM/container, the port number changes and a new graph is made marking the old port as deleted.
Don’t have a solution to this but would like to see one.

@HomeServ code contribution is welcomed :slight_smile:

I’ve checked the code yesterday and changed the SNMP Port Association Mode to ifName (in the GUI).
Last night I’ve rebooted my proxmox hypervisor and the ports won’t be deleted anymore.