[rrd-users] Parameter problem - was: LAST always returning zero

Wes wespvp at msg.bt.com
Sun Mar 9 23:49:39 CET 2008


On 3/9/08 11:27 AM, "Alex van den Bogaerdt" <alex at ergens.op.het.net> wrote:

> You say you get 0 or 1 in queue, and you want the opposite.
> Why not simply do
>  CDEF:queue1N=1,queue1,-

That's an excellent suggestion, but I'm using the same logic on the more
complex graphs as I am on this one.

The above certainly is preferable to the IF, and eliminates the immediate
issue we've been discussing by eliminating the IF.  However, I can't then
use that on the more complex graphs.

I have another graph that sums 'queue<n>' over all systems.  The reported
number is the total number of systems that have that queue disabled.  If I
add 1 + nan + 1, I get nan.  I have to add the IF back in to normalize the
nan to something (or is there another way?)  I also have a graph that sums
all queues on a given system - displays the total number of queues disabled
on each system.  Again I have the problem of adding a nan - there are cases
where a queue may not be in use on all systems and so may not have any data
defined.

Wes




More information about the rrd-users mailing list