I'm attempting to graph performance numbers from Ethernet radios and hitting a bit of a wall. It all boils down to this:
snmpgetnext -v 2c -c public 192.168.10.168 .1.3.6.1.4.1.10728.2.10.2.2.8.1.4
iso.3.6.1.4.1.10728.2.10.2.2.8.1.4.11.44580 = INTEGER: -65
That works and the -65 is the number I want to graph.
snmpget -v 2c -c public 192.168.10.168 .1.3.6.1.4.1.10728.2.10.2.2.8.1.4
iso.3.6.1.4.1.10728.2.10.2.2.8.1.4 = No Such Instance currently exists at this OID
That doesn't work.
I'm assuming this is because the radio is storing a table of these values which is why I need to issue the GETNEXT instead of a simple GET. How do I tell Cacti to do that?
Most likely insanely newbie GET vs GETNEXT question
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Most likely insanely newbie GET vs GETNEXT question
GETNEXT gets you the next OID after the one you asked for. If you look, the reply isn't for the same OID that you requested!
So iso.3.6.1.4.1.10728.2.10.2.2.8.1.4.11.44580 is what you should try to use with snmpget
So iso.3.6.1.4.1.10728.2.10.2.2.8.1.4.11.44580 is what you should try to use with snmpget
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Re: Most likely insanely newbie GET vs GETNEXT question
I was thinking that I couldn't reference .1.3.6.1.4.1.10728.2.10.2.2.8.1.4
iso.3.6.1.4.1.10728.2.10.2.2.8.1.4.11.44580 because it was subject to change. Is that not true? If so, I can easily just change the OID.
iso.3.6.1.4.1.10728.2.10.2.2.8.1.4.11.44580 because it was subject to change. Is that not true? If so, I can easily just change the OID.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Most likely insanely newbie GET vs GETNEXT question
It depends on the MIB, but usually that last part will be something like the interface number, which won't change. It depends on what the manufacturer has defined though - people do some funny things.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Re: Most likely insanely newbie GET vs GETNEXT question
Unfortunately it changes.
snmpgetnext -v 2c -c public 192.168.10.168 .1.3.6.1.4.1.10728.2.10.2.2.8.1.2
iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44693 = INTEGER: -66
A few minutes later...
snmpget -v 2c -c public 192.168.10.168 iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44693
iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44693 = No Such Instance currently exists at this OID
Immediately after that...
snmpgetnext -v 2c -c public 192.168.10.168 .1.3.6.1.4.1.10728.2.10.2.2.8.1.2
iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44708 = INTEGER: -66
Is there a way to get Cacti to collect its data via an snmpnext instead of a snmpget so that it can follow this changing OID?
snmpgetnext -v 2c -c public 192.168.10.168 .1.3.6.1.4.1.10728.2.10.2.2.8.1.2
iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44693 = INTEGER: -66
A few minutes later...
snmpget -v 2c -c public 192.168.10.168 iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44693
iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44693 = No Such Instance currently exists at this OID
Immediately after that...
snmpgetnext -v 2c -c public 192.168.10.168 .1.3.6.1.4.1.10728.2.10.2.2.8.1.2
iso.3.6.1.4.1.10728.2.10.2.2.8.1.2.11.44708 = INTEGER: -66
Is there a way to get Cacti to collect its data via an snmpnext instead of a snmpget so that it can follow this changing OID?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Most likely insanely newbie GET vs GETNEXT question
If it's changing like that, it's probably because the thing you're monitoring is different. Check in the MIB to see what that data really is...
So if it's for an associated client which goes away, for example, you probably need to rethink your plan.
So if it's for an associated client which goes away, for example, you probably need to rethink your plan.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Re: Most likely insanely newbie GET vs GETNEXT question
It appears I was going after table data that the device was storing and continuously updating. the MIBs for those table cells were constantly changing. I found the raw data I needed elsewhere in static MIBs so a GET reliably works. Thanks for the input.
Who is online
Users browsing this forum: No registered users and 6 guests