CDEF: comparing Strings

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
andrecamargo
Posts: 1
Joined: Thu Nov 03, 2011 1:59 pm

CDEF: comparing Strings

Post by andrecamargo »

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,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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: CDEF: comparing Strings

Post by TheWitness »

Check the rrdtool website and users list. http://www.rrdtool.org
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests