I try to monitor wireguard tunnel by snmp. Does it possible?
I tried to monitor route for wireguard tunnel... For example:
root@niyamamon:~ # snmpwalk -v 2c -c MySNMPCommunity routeripaddress .1.3.6.1.2.1.4.24.4.1.16
...
IP-FORWARD-MIB::ipCidrRouteStatus.172.20.0.0.255.255.255.0.0.172.20.254.253 = INTEGER: active(1)
IP-FORWARD-MIB::ipCidrRouteStatus.172.20.22.0.255.255.255.0.0.0.0.0.0 = INTEGER: active(1)
IP-FORWARD-MIB::ipCidrRouteStatus.172.20.254.0.255.255.255.0.0.0.0.0.0 = INTEGER: active(1)
IP-FORWARD-MIB::ipCidrRouteStatus.192.168.0.0.255.255.0.0.0.10.20.0.254 = INTEGER: active(1)
IP-FORWARD-MIB::ipCidrRouteStatus.192.168.200.0.255.255.255.0.0.0.0.0.0 = INTEGER: active(1)
but, when I try to:
snmpget -v 2c -Oe -c MySNMPCommunity routeripaddress .1.3.6.1.2.1.4.24.4.1.16.172.20.0.0.255.255.255.0.0.172.20.254.253
there an error:
IP-FORWARD-MIB::ipCidrRouteStatus.172.20.0.0.255.255.255.0.0.172.20.254.253 = No Such Object available on this agent at this OID
What's wrong? Can I get result by snmpget in such way?