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
Cactiquery 0.8.6e
Moderators: Developers, Moderators
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
Cactiquery 0.8.6e
- Attachments
-
- cacti.jpg (80.85 KiB) Viewed 5424 times
-
- cactiquery-0.8.6e.zip
- Cactiquery 0.8.6e release
- (44.63 KiB) Downloaded 395 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);
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
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.
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);
Still can't quite get cactiquery to work...
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
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
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
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);
- 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...
It seems like nothing is passed to the function.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
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);
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 ... --
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 ... --
Who is online
Users browsing this forum: No registered users and 0 guests