IPsec tunnel status by snmp

Hi!

Do somebody know how I can check status of my IPsec tunnel in VyOS by snmpwalk? Tried to search in internet but haven’t found anything that could work.

Thanks you!

you could use the presence or absence of a KERNEL route to determine if the IPSEC tunnel is up. you can find routing destinations via .1.3.6.1.2.1.4.21.1.1

It weird because routing table doesn’t change even if I disconnect the IPSEC tunnel, so that IT doesn’t change the OID neither