Additional debug output

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
jeffm
Posts: 24
Joined: Sun Aug 29, 2004 12:37 pm
Location: Northern Virginia
Contact:

Additional debug output

Post by jeffm »

Would be nice if there was some additional debug output from both cactid and cmd.php for script based data sources.

Right now, we see something like this:

Code: Select all

11/18/2004 01:35:12 PM - CACTID: Poller[0] Host[4] WARNING: Result from SCRIPT not valid. Partial Result: change_db:438010 del...
It would be nice if we could see something more like this:

Code: Select all

11/18/2004 01:35:12 PM - CACTID: Poller[0] HOST [4] WARNING: Result from SCRIPT not valid. Partial Result: change_db:438010 del...
11/18/2004 01:35:12 PM - CACTID: DEBUG HOST[4] INFO: SCRIPT did not retun all values. Got change_db:43800 delete:4110. Expected change_db:XXX, delete:XXX, this:XXX, that:XXX
Or something similiar. It's awfully difficult to figure out what's going wrong with scripts in most cases since the log doesn't output complete information as to what went wrong.
-Jeff
-----------------------------------------------------
If you try to fail, and you succeed, what did you just do?
------------------------------------------------------
User avatar
TheWitness
Developer
Posts: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Jeff,

You need to get rid of the spaces between VariableA:ResultA VariableB:ResultB

Spaces between the Variable and the Result. Then you will be fine.

Larry
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?
Guest

Post by Guest »

TheWitness wrote:Jeff,

You need to get rid of the spaces between VariableA:ResultA VariableB:ResultB

Spaces between the Variable and the Result. Then you will be fine.

Larry
Actually, the spaces between the fields were OK, it was an extra one at the end of the output that screwed things up..

in that poller.c file for Cactid, it's checking to see if 1+ the number of spaces found in script output == # of field:value pairs, makes sense the way it's working too. Just wish it woulda said "number of spaces != number of field:value pairs! must be an extra space in there somewhere"

-j
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests