From: crankshaft <cra...@oc...> - 2012-01-06 13:37:22
|
Hi, I'm having trouble pulling the values (mainly temperature) from a Sentry CDU power distro unit and storing in a rrd file for graphing. I've got two temp sensors plugged in (intake and exhaust) but it appears these two sensors use the same OID (enterprises.1718.3.2.5.1.6), but the first sensor has index / instance? number of 1.1, and the second one has 1.2 . I can get the values to display on the status page of the devmon test as a table, and can get them from snmpget. I did have them inputting into .rrd and was able to graph the data, but whenever the temperature changed it seemed to generate another .rrd, the result being multiple graphs showing "flatline" dot / dash values of the temps at 22, 22.5, 23 etc. Is it possible to simply give the two sensors different mnenomics in the template/oids file such as: intakeTemp : enterprises.1718.3.2.5.1.6.1.1 : ???????? exhaustTemp : enterprises.1718.3.2.5.1.6.1.2 : ???????? to use them in the message file to generate the.rrd and if so, what do I put in the ???????? section? I've tried branch and leaf, but get the 'No snmp data for oid' error in devmon.log and devmon-scan.log with branch and 'oid is a non-repeater' error with leaf. The docs Transform section says something about the INDEX transform but doesn't give an example of its usage. The .rrd generator in templates/message is (off the top of my head): <!-- DEVMON RRD temperature 00 DS:TempValue:temperature(.*):GAUGE:600:0:U --> where TempValue is the result of a MATH transform of /10:1 on tempHumidSensorTempValue (which is enterprises.1718.3.2.5.1.6). The graph definition is the [temp] one in hobbitgraph.cfg, with the .rrd and ds0 substituted with temperature and TempValue. thanks in advance, Geoff |