unknowns in script input methods

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

Moderators: Developers, Moderators

Post Reply
zim
Posts: 5
Joined: Fri Jan 21, 2005 9:32 am

unknowns in script input methods

Post by zim »

I created a custom data input method that uses a perl script. In the event the host I'm polling does not respond, what should I have my script return to signal cacti/rrdtool that a value of unknown should be inserted into the rrd?

data like this may be good to toss into the documentation.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

My gut tells me that you need to return a "U", for an unknown value.

But I don't think the parser in the input checker will allow that. TheWitness (Larry) or Rax (Ian) can answer this question better than I can.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
zim
Posts: 5
Joined: Fri Jan 21, 2005 9:32 am

Post by zim »

agreed, for now i'm returning a U but i'd like confirmation that this is proper.
-thanks.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Correct. Any Non-Numeric return value will generate a "U".

TheWitness
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?
zim
Posts: 5
Joined: Fri Jan 21, 2005 9:32 am

Post by zim »

thank ye sir.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest