Is it possible to take a result from 1 sensor (an integer) to create a dynamic OID?

Say the result from Sensor 1 = 1345

So, in a new sensor, (Sensor 2) to pull the appropriate data for the device, I would need an oid with a variable, perhaps like this:

1.3.6.1.2.1.10.127.1.3.3.1.13.[$Channel (2049,0)]

where [$Channel (2049,0)] is the raw result from Sensor 1.

Then Sensor 1 and 2 would be listed under a parent device, but the result from Sensor 2 needs to be displayed under the child device, so Sensor 3 would be a Sensor Factory, on the child device, reading/formatting the result from Sensor 2.

Reason being is that the result from Sensor 1 might change when the child device reboots.

Is this possible?


Article Comments

Hello,

this is most likely better realized in a custom script altogether with netsnmp or a similar tool. Request the first sensor result and then use a bit of scripting to use this result in the OID for the 2nd result.

Best Regards.


Feb, 2011 - Permalink

I'm a bit of a noob when it comes to snmp, prtg and linux, how would I get a result from netsnmp running on my linux box to prtg on my windows box?


Feb, 2011 - Permalink

Netsnmp should also be available for Windows.


Feb, 2011 - Permalink