Cactiquery 0.8.6e

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Cactiquery 0.8.6e

Post by pestilence »

Initial release for 0.8.6e version.
Tested and found working.

About Cactiquery:
Cactiquery is a query tool for cacti it will query graphs for raw values (formated in human readable format) and return them into columns, from there you can dump the results into a csv formated file which can be processed with a spreadsheet program.
Note that cactiquery does NOT SUPPORT cdef functions inside graphs, this means that you can query standalone graphs and get the proper values, combined graphs or graphs that make use of CDEF functions will not produce proper values since we don't parse yet CDEF functions.

Screenshot of the script follows
Attachments
cacti.jpg
cacti.jpg (80.85 KiB) Viewed 5422 times
cactiquery-0.8.6e.zip
Cactiquery 0.8.6e release
(44.63 KiB) Downloaded 394 times
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Pestilence,

I was thinking of suggesting to Ian and Tony to integrate cactiquery as a part of GraphZooming feature in 0.9. Are you okay with that?

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?
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

As per Readme :) i would love to see it integraded :)
Go ahead :)
I am currently working on finding a solution for implementing CDEF functions inside the query tool :)
If you can suggest any solutions for that i think we would be creating a perfect query tool.
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
FIacusso
Posts: 25
Joined: Fri Jun 17, 2005 11:33 am

Still can't quite get cactiquery to work...

Post by FIacusso »

Hello All,

Thanks for the heads up with the new release...but i am still struggling...

I modified the rrd.php to "AVERAGE" and i still get a blank screen with a link to dump to csv... here are my details:


Notice: Undefined variable: fp_index in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 886

Notice: Undefined variable: valine in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 886

Warning: fwrite(): supplied argument is not a valid stream resource in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 886

Notice: Undefined variable: fp_index in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 887

Warning: fclose(): supplied argument is not a valid stream resource in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 887


Any ideas?

Thanks a bunch!!

~Fab
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

New zip file uploaded i founded a line inside the rrd.php lib file that needed to change.
Attachments
cactiquery-0.8.6e-fix1.zip
(44.63 KiB) Downloaded 387 times
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Re: Still can't quite get cactiquery to work...

Post by pestilence »

FIacusso wrote: Notice: Undefined variable: fp_index in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 886

Notice: Undefined variable: valine in C:\apache\Apache2\htdocs\cacti\lib\rrd.php on line 886
It seems like nothing is passed to the function.
Could you paste the url and describe what kind of graph you are trying to query?
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
FIacusso
Posts: 25
Joined: Fri Jun 17, 2005 11:33 am

Post by FIacusso »

Still no luck... this time around errors on line 902...

I am graphing a 3Com Total Control Modem box which displays how many active users are on....

With this cacti-query... my graphs work for a few mins...then they will not load again, they just get stuck... so i have to reload the cacti software without the cacti-query to get back in business...

Thanks


--the only thing i havent tried is an updated rrd tool-- the only luck i've had is with 1.0x not the 1.2x ... --
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests