[rrd-users] faking a datasource on the fly

Daniele Sluijters d.sluijters at betterbe.com
Wed Jul 27 14:53:19 CEST 2011


Turns out multiplying with UNKN does exactly what I need it to do .

-- 
Daniele Sluijters
e: d.sluijters at betterbe.com
w: http://www.betterbe.com

On Jul 27, 2011, at 14:18 , Daniele Sluijters wrote:

> Hello guys,
> 
> This one might sound familiar to some. MRTG has the (nasty) limitation that it needs to fetch pairs of data, it can't just fetch 1 or 3 values, they must always be grouped in logical pairs.
> 
> This presented a problem when 1.3.6.1.4.1.2021.4.13.0 (ucdavis.memory.memShared) had to be fetched because that value isn't populated anymore. Instead however of returning 0 (which would be inaccurate) or Unknown (accurate) "Snmp no such object" is returned. This apparently confuses MRTG so much that even if the other OID which makes up the pair .1.3.6.1.4.1.2021.4.11.0 does respond with sane values an RRD is created with two datasource's which just always return NaN.
> 
> Since this is completely useless I decided to fetch .1.3.6.1.4.1.2021.4.11.0 twice, as to make a pair so MRTG can handle it. Now, that works but of course I'm now graphing two identical values which is both stupid and incorrect.
> 
> I was wondering if anyone had a quick and simple way of rewriting ds0 on the fly (RPN expression) as to, regardless of what the RRD says, always return Unknown. That would allow me to create a sensible graph which corresponds to reality. Any other solution one can come up with is welcome too which preferably doesn't involve altering the rrd-file itself.
> 
> -- 
> Daniele Sluijters
> e: d.sluijters at betterbe.com
> w: http://www.betterbe.com
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list