Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
the automatic timespan selection in the cactiquery does not work, because in the graph.php in line 97 there is hardcoded the timespan of 1 hour.
I changed it to:
Pumpi wrote:Will be there a solution integrated with cigamit's grear plugin architecture ??
Actually, I have been thinking of making a quick port of this myself, as I have been working on something along these lines already (not near as complete). No promises on how fast it will go, as I currently already have a fairly full plate.
I am running CACTIQUERY in a Windows environment and - at first - it didnt work for me either. After some debugging i found that this was caused by line 538 in rrd.php:
sg wrote:I really like cactiquery; it's funcationality I need from Cacti.
Some issues/suggestions/requests:
1) I can't download the data -- the filename is always "/path/to/csvdir/-.csv" and the file is always empty
2) I have many combined graphs; I need all the datasources, not just the first one
3) Suggest that AVERAGE/MIN/MAX/LAST variable on line 524 of rrd.php be changed to either a setting (as with the csv export directory) or something you can pick on the export screen
Thanks,
sg
Sorry for the late reply
1) Hmm i have to check this, filenames are parsed from the graph title.
2) Combined graphs is something i will try to work on (implement cdef functions) it is a bit of trouble...but we are going to try our best
3) Yap i was planning to add this in this release...but i forgot...i will do so in the next release
Regarding the filename, there is a bug present in CACTIQUERY. The filename is derived from the hostname and graph_template, but these
variables are not always defined. It is perfectly possible to create a graph based on "None" as host and "None" as graph template.
In this case you get an invalid filename........... (see lines 661-670 of rrd.php)
A possible workaround for the filename issue is to use the graph title as filename if no host or template is defined:
$if_host = @eregi_replace('[-:\/]',"",$host);
$if_stat = @eregi_replace('[" "-:\/]',"",$stat_name);
if(!$host or !stat_name)
{ $file = get_graph_title($local_graph_id).".csv";
} else {
$file = $if_host."-".$if_stat.".csv";
}
if(!$file)
{
//We could not determine proper information falling back...
return;
However, still one bug is present, because the file remains empty and i still receive one error:
Notice: Undefined offset: 2 in C:\Inetpub\wwwroot\cacti-0.8.6g\lib\rrd.php on line 919
will this feature "QUERY" go into the official release?
Everytime a new version is pushed out I must change the cacti-files.
Torsten
Hi pestilence,
since cigamit develop the plugin arch, and he is the official developer now, any possible to integrate your plugin into plugin arch 0.27, from a user's point of view, that would be the best result.
We can do as a plugin, but I have wanted to get this "Integrated" into the zoom view for some time. There are issues though due some miscellaneous issues. The largest issue being getting this feature up on my priorities list.
So, I guess a plugin is good for now.
TheWitness
True understanding begins only when we realize how little we truly understand...
TheWitness wrote:We can do as a plugin, but I have wanted to get this "Integrated" into the zoom view for some time. There are issues though due some miscellaneous issues. The largest issue being getting this feature up on my priorities list.
So, I guess a plugin is good for now.
TheWitness
Hmm, why not utilize the mysql to store the current data when cmd.php polling the target?
PRTG have been implement this feature, It might be utilize the plain txt file. http://www.paessler.com/prtg
I am not developer, it is just a suggestion.
It does, but for only 1 cycle. The idea is to move all the information into the Round Robin Database format post polling. The reason that the query data is not supported because of certain development issues. I just don't have time to implement to be 100% transparent to the user.
TheWitness
True understanding begins only when we realize how little we truly understand...
Here's the patch for 0.8.6h with the plugin arch installed (tested on the CactiEZ cd).
You will need to put the graph_query.png file in your images directory.