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:[email protected]> [email protected]

P Please consider the environment before printing this e-mail 

 

 

From: [email protected]
[mailto:[email protected]] On
Behalf Of Andre Luis
Sent: Tuesday, 8 November 2011 12:45 a.m.
To: [email protected]
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.

 

<<~WRD000.jpg>>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to