Lets start with the formatting. This is generally used for printing and graphing values stored in the RRD files. Full description can be found here: http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html

So you don't need to leave immediately:

* %#.#lf* - prints numbers like 12345.6789, with optional field width and precision.

So %5.2lf prints up to 5 charecters before the decimal point, and 2 characters after.

* %s* - place this after *%le*, *%lf* or *%lg*. This will be replaced by the appropriate SI magnitude unit and the value will be scaled accordingly (123456 -> 123.456 k).

Now you have a huge discrepancy between the returned value and what is recorded. I don't know whether the snmpget returning a string data type would account for the discrepancy, but since I have my temperature values returned through a command, which has no data type reference, it wouldn't seem that likely.

Out of curiosity, if you execute "rrdtool info /path/to/rrdfile.rrd", what gets returned?



NateBell wrote:
Wow! Thanks for the detailed post James. I'm a little lost but let me see if I 
can muddle along:

The last value collected by my custom data source according to the perf graph 
in Zenoss was 12.96 and according to rrdtool was 1192049100: 1.2960835560e+01

Here's what returns when I do an snmpget:

Code:
$ snmpget -c public -v2c orthanic 1.3.6.1.4.1.2021.8.1.101.1
UCD-SNMP-MIB::extOutput.1 = STRING: 74.41



The format for my data point is still set to: %5.2lf%s
I still haven't found any reference to what that syntax does.

The contents of 
$ZENHOME/Products/DataCollector/plugins/zenoss/snmp/HRFileSystemMap.py  is 
really interesting. I don't completely understand all the code there, but I 
think I get the general gist.

Does that give you any insight into what I need to do? If not, I'm happy to 
collect more data/evidence on my side. :)

Nate




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=11637#11637

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to