Hey Simon,
I believe adam is working on something like this - see my thread on Custom Math function - will this work for you?
I am thinking you might be able to do something like:
(/1024)*1000
?
Sent from my iPhone
On 25/09/2018, at 01:42, Simon Mousey Smith simonsmith5521@gmail.com wrote:
Hi All
Im trying to find out if its possible to change the conversion rate being used in the CustomOID ?
When I SNMPGET a value from our storage system its returning a value and observium is then doing the conversion wrong…
This is the reply I received from there support team after hours of me trying to work out why observium was showing 416.5GB and they was showing 387.9GB
The command you are using shows result in bytes. At the same time "vstorage stat" command shows result in Gibibites not Gigabytes.
Just for reference: 1 Gibibyte = 230 Byte = 1,073,741,824 Byte 1 Gigabyte = 109 Byte = 1,000,000,000 Byte #snmpget -v2c -cpublic 10.10.10.254 .1.3.6.1.4.1.8072.161.1.1.3.0 NET-SNMP-MIB::netSnmp.161.1.1.3.0 = Counter64: 416509057132 Here are output from your cluster: vstorage -c hestor stat | head -n 10 connected to MDS#11 Cluster 'hestor': healthy Space: [OK] allocatable 636.0GB (+2.28TB unlicensed) of 3.74TB, free 636.0GB of 1TB MDS nodes: 7 of 7, epoch uptime: 2d 22h, cluster version: 126 CS nodes: 7 of 7 (7 avail, 0 inactive, 0 offline), storage version: 126 License: [Error] License not loaded, capacity limited to 1024Gb Replication: 1 norm, 1 limit Chunks: [OK] 1767 (100%) healthy, 0 (0%) standby, 0 (0%) degraded, 0 (0%) urgent, 0 (0%) blocked, 0 (0%) pending, 0 (0%) offline, 0 (0%) replicating, 0 (0%) overcommitted, 0 (0%) deleting, 0 (0%) void FS: 387.9GB in 541 files, 541 inodes, 235 file maps, 1767 chunks, 3621 chunk replicas 416509057132/(1024*3) = 387.9 GB which is exactly the same as in "stats"
Just for reference: 1 Gibibyte = 230 Byte = 1,073,741,824 Byte 1 Gigabyte = 109 Byte = 1,000,000,000 Byte
Regards
Simon _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium