How to override one OID in SNMP?
My company is using a product called Orion from Solar Winds, and I've been tasked with making it work.
It's trying to get ssCpuIdle (OID 1.3.6.1.4.1.2021.11.11.0 ), which net-snmp (version 5.1.2, as provided in Red Hat EL 4) doesn't provide. (They provide the OID, but the value never changes.)
I want to override that OID - and ONLY that OID - with my own stuff.
I can't use sh, because it puts the results in a different OID.
I can kinda sorta use pass, but pass hands control over to my routine for the rest of the query, and my script isn't designed to come up with all the rest of the values. Also, I can't have more than one "pass" statement in my config file that way - it would hand things over to the first one it came to, expecting it to handle everything after, and I expect to have to do this for several OIDs.
I could use "override", but it doesn't seem set up for dynamic data, only for fixed stuff.
SNMP proxies and AgentX stuff looks to be beyond my skills. I can probably figure it out eventually, but I have better things to do with the next two or three months than pick apart the innards of SNMP.
In case the above wasn't entirely clear, I want to:
1) Write a simple script to provide a value that Orion is looking for, and net-snmp doesn't provide.
2) Tell net-snmp to ignore its own stuff for that one specific OID, and to use my script instead.
3) Then, net-snmp should go back to handling everything else itself.
Any light you can shed on this problem will be appreciated.
|