Dataquery (ex cactiquery) 1.0a released
Moderators: Developers, Moderators
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
Dataquery (ex cactiquery) 1.0a released
Its my joy to announce you the initial release of the dataquery plugin.
Dataquery is the predecesor of the old cactiquery addon, it has been ported to the plugin architecture for easy installation and troubleshooting.
Dataquery is the predecesor of the old cactiquery addon, it has been ported to the plugin architecture for easy installation and troubleshooting.
/* * 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:
Forgot to include the link:
http://cactiusers.org/forums/viewtopic.php?p=2215#2215
http://cactiusers.org/forums/viewtopic.php?p=2215#2215
/* * 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);
Cool, thanks for bringing this back. It is an awesome util
One quick fix, however:
In the file queryview.php under <cacti dir>/plugins/dataquery/view
Line 169 needs a trailing slash after csv
before:
after:
Took me a little bit to figure out how to use the plugin until I realized that there was a new icon next to the graphs
One quick fix, however:
In the file queryview.php under <cacti dir>/plugins/dataquery/view
Line 169 needs a trailing slash after csv
before:
Code: Select all
$filename = $config['url_path'] . 'plugins/dataquery/csv
Code: Select all
$filename = $config['url_path'] . 'plugins/dataquery/csv[b]/[/b]
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
Hi Pestilence. Thanks for your work on pluginizing cactiquery!
I have found it actually requires plugin architecture 1.0 : I had Plugin Architecture 0.9, and as soon as I enable dataquery in config.php, I have this little error showing up in each page of cacti :
which is
the part "graph.php:zoom" of the error change depending on the page I am browsing in Cacti, but the error is always located in this line 1357 of function.php. The tab "dataquery" next to the "misc" tab in the settings page was ok.
When upgraded to plugin arch 1.0, the error vanish and the little icon for querying graph appear I think you use one of the few hooks added between 0.9 and 1.0.
Well, it was time for to upgrade to 1.0 anyway
I have found it actually requires plugin architecture 1.0 : I had Plugin Architecture 0.9, and as soon as I enable dataquery in config.php, I have this little error showing up in each page of cacti :
Code: Select all
Notice: Undefined index: graph.php:zoom in /usr/share/cacti/site/lib/functions.php on line 1357
Code: Select all
/* find the current page in the big array */
$current_array = $nav{$current_page . ":" . $current_action};
When upgraded to plugin arch 1.0, the error vanish and the little icon for querying graph appear I think you use one of the few hooks added between 0.9 and 1.0.
Well, it was time for to upgrade to 1.0 anyway
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
Yes indeed the plugin makes use from one of the new hooks that where added to the graph pageExo7 wrote:Hi Pestilence. Thanks for your work on pluginizing cactiquery!
I have found it actually requires plugin architecture 1.0 : I had Plugin Architecture 0.9, and as soon as I enable dataquery in config.php, I have this little error showing up in each page of cacti :which isCode: Select all
Notice: Undefined index: graph.php:zoom in /usr/share/cacti/site/lib/functions.php on line 1357
the part "graph.php:zoom" of the error change depending on the page I am browsing in Cacti, but the error is always located in this line 1357 of function.php. The tab "dataquery" next to the "misc" tab in the settings page was ok.Code: Select all
/* find the current page in the big array */ $current_array = $nav{$current_page . ":" . $current_action};
When upgraded to plugin arch 1.0, the error vanish and the little icon for querying graph appear I think you use one of the few hooks added between 0.9 and 1.0.
Well, it was time for to upgrade to 1.0 anyway
/* * 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);
-
- Cacti User
- Posts: 367
- Joined: Tue Apr 05, 2005 9:52 am
- Location: Munich, Germany
Hi,
I have plugin arch V1. and the newest dataquery:
Error:
On the graph Page at the top:
Notice: Undefined index: graph_view.php:tree in /var/www/html/cacti/lib/functions.php on line 1420
"
1419 /* find the current page in the big array */
1420 $current_array = $nav{$current_page . ":" . $current_action};
1421 $current_mappings = split(",", $current_array["mapping"]);
1422 $current_nav = "";
"
and:
After clicking the arrow near the graph to get into the query, I get serveral times:
Notice: A non well formed numeric value encountered in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 226
"
225 $this->_set_date_format();
226 $timestamp = date($this->graph_date, $timestamp);
227 $data = ($matches[1][$j] * (pow(10,(float)$matches[2][$j])));
228 if (isset($timestamp)
"
But the query works.
Where can I configure the timerange the query is using?
Torsten
I have plugin arch V1. and the newest dataquery:
Error:
On the graph Page at the top:
Notice: Undefined index: graph_view.php:tree in /var/www/html/cacti/lib/functions.php on line 1420
"
1419 /* find the current page in the big array */
1420 $current_array = $nav{$current_page . ":" . $current_action};
1421 $current_mappings = split(",", $current_array["mapping"]);
1422 $current_nav = "";
"
and:
After clicking the arrow near the graph to get into the query, I get serveral times:
Notice: A non well formed numeric value encountered in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 226
"
225 $this->_set_date_format();
226 $timestamp = date($this->graph_date, $timestamp);
227 $data = ($matches[1][$j] * (pow(10,(float)$matches[2][$j])));
228 if (isset($timestamp)
"
But the query works.
Where can I configure the timerange the query is using?
Torsten
-
- Cacti User
- Posts: 367
- Joined: Tue Apr 05, 2005 9:52 am
- Location: Munich, Germany
Hi,
at the point to export to csv I get:
Notice: A non well formed numeric value encountered in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 226
class_cactiquery::_open_buffer: Could not open file: /var/www/html/cacti/csvdcimgt21-UnixProcesses.csv for writting
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 354
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 377
The CSV directory is empty.
Torsten
at the point to export to csv I get:
Notice: A non well formed numeric value encountered in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 226
class_cactiquery::_open_buffer: Could not open file: /var/www/html/cacti/csvdcimgt21-UnixProcesses.csv for writting
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 354
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 377
The CSV directory is empty.
Torsten
- pestilence
- Cacti User
- Posts: 207
- Joined: Fri Jul 25, 2003 10:37 am
- Location: Athens/Greece
- Contact:
This sounds like a permissions issue. your web user (apache, nobody,etc) should have ownership & group on the dir typically 755torstentfk wrote:Hi,
at the point to export to csv I get:
Notice: A non well formed numeric value encountered in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 226
class_cactiquery::_open_buffer: Could not open file: /var/www/html/cacti/csvdcimgt21-UnixProcesses.csv for writting
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 354
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/cacti/plugins/dataquery/class_cactiquery.php on line 377
The CSV directory is empty.
Torsten
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
-
- Cacti User
- Posts: 367
- Joined: Tue Apr 05, 2005 9:52 am
- Location: Munich, Germany
Hi,egarnel wrote:This sounds like a permissions issue. your web user (apache, nobody,etc) should have ownership & group on the dir typically 755torstentfk wrote:Hi,
....
The CSV directory is empty.
Torsten
ls -al
drwxrwxr-x 2 apache apache 4096 Nov 2 10:24 csv/
so the apache has all rights to do so.
Torsten
what are the perms for the dataquery above csv?torstentfk wrote:Hi,egarnel wrote:This sounds like a permissions issue. your web user (apache, nobody,etc) should have ownership & group on the dir typically 755torstentfk wrote:Hi,
....
The CSV directory is empty.
Torsten
ls -al
drwxrwxr-x 2 apache apache 4096 Nov 2 10:24 csv/
so the apache has all rights to do so.
Torsten
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Who is online
Users browsing this forum: No registered users and 0 guests