[rrd-users] CDEF: comparing Strings

Steve Shipway s.shipway at auckland.ac.nz
Mon Nov 7 22:05:55 CET 2011


The RPN calculations work only with numbers.  Since the RRD can only hold
numbers anyway, there is no need for it to handle strings.

 

Steve

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 

 

 

From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Andre Luis
Sent: Tuesday, 8 November 2011 12:45 a.m.
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] CDEF: comparing Strings

 

hello, I'm new into cacti and I would like to know it there's a way to
compare strings with CDEF ...

I did some tests using numbers and it worked, but when I try with strings,
it gives an error.."ERROR: invalid rpn expression in:"

for example..
assuming a=10;
a,10,EQ,1,0,IF ..
it works...returns 1 ...

but with strings:
assuming a="test"
a,test,EQ,1,0,IF ..
it gives me the error message above...

I guess I should use another boolean function .. different than EQ .. but I
don't know how..
is there any way?

thanks


 

-- 
Att,

 

Image removed by sender.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20111107/29795e03/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 823 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20111107/29795e03/attachment-0001.jpeg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4928 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20111107/29795e03/attachment-0001.bin 


More information about the rrd-users mailing list