Community discussions

MikroTik App
 
User avatar
BlackRat
Member Candidate
Member Candidate
Topic Author
Posts: 105
Joined: Sat Jul 21, 2012 8:37 am

snmpwalk = ok, snmpget = No Such Object available on this agent at this OID

Fri Aug 02, 2024 8:11 pm

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?