Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Apr 27, 2017 5:45 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: Thu Nov 02, 2006 11:08 am 
Offline

Joined: Thu Feb 16, 2006 12:49 pm
Posts: 42
I am also seeing the "Notice: Undefined index: dataquery.php:query in /var/www/html/lib/functions.php on line 1420" message after installing dataquery. This is running on CactiEZ CD v0.2 Beta with version 1.0 of the plugin architecture. Beyond that, when I perform a data query, the output seems offset as shown in the image below.

Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 02, 2006 2:50 pm 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Thanks for the feedback everyone, i will be checking the problems tomorrow.

_________________
/* * 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);


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 8:07 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
New updated release posted today (0.1.3a):

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);


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 8:54 am 
Offline

Joined: Thu Feb 16, 2006 12:49 pm
Posts: 42
Thanks for such a quick fix pestilence. Just put the new version in place and everything is working perfectly.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 9:02 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
There is going to be a new version as well just got a report for a small minor bugs again. :(

_________________
/* * 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);


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 10:04 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
New version (0.1.4a) uploaded.

_________________
/* * 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);


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 10:06 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
Quick question..

Should the dataquery follow the Associated RRAs (daily, weekly, etc) as the graphs do?

It shows the timestamp when the rrd file was created and times from 8:05 am to 9:05am regardless of which graph I click on

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 10:07 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
egarnel wrote:
Quick question..

Should the dataquery follow the Associated RRAs (daily, weekly, etc) as the graphs do?

It shows the timestamp when the rrd file was created and times from 8:05 am to 9:05am regardless of which graph I click on



Damn, you are a faster typer than I am... I just read your latest post right after I submitted mine.. :lol:

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 10:58 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

I had the same error... See this thread : http://cactiusers.org/forums/viewtopic.php?p=2258#2258

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 13, 2006 12:32 pm 
Offline

Joined: Fri May 19, 2006 1:17 pm
Posts: 16
Location: Lake St Louis, MO USA
In the pre-plugin version the CSV download link would work even if your cacti directory was not under DocumentRoot.

For example, I have cacti installed in /opt/cacti and my DocumentRoot is /var/www/html. The download link links to the full filesystem path of /opt/cacti/plugins/dataquery/csv/filename.csv rather than /cacti/plugins/dataquery/csv/filename.csv

Here is a patch against 0.1.4a to restore that feature. Great plugin!

Code:
--- view/queryview.php  2006-11-13 12:14:45.000000000 -0500
+++ view/queryview.php.wlr      2006-11-13 12:27:48.000000000 -0500
@@ -166,10 +166,11 @@ class QueryView
        {
                global $config;
                $filename = basename($this->queryObj->filename);
-               $csv_path = read_config_option('path_csv_export');
-               $root_dir = $_SERVER{'DOCUMENT_ROOT'};
-               $dir = str_replace($root_dir, "", $csv_path);
-               $filename = $dir . $filename;
+               $dw_path = read_config_option("path_csv_export");
+               preg_match("/(.+)\/(.+)$/",$dw_path,$matches);
+               $dw_path = $matches[2];
+               $file_dw = basename($filename);
+               $filename = $dw_path."/".$file_dw;
                print '<table class="dump_link" align="center">';
                print '<tr class="download_link_tr">';
                print '<td class="download_link_header" align="center">File download link:</td>';


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 5:04 am 
Offline

Joined: Mon Feb 13, 2006 7:51 am
Posts: 11
Hi !

I have a small problem on the plugin :
I found this error message when i try to make a query :

Notice: Undefined index: data in E:\wwwroot\cacti\plugins\dataquery\view\queryview.php on line 61

The debug mode is activated but i don't know where to find the result :(

Greetings.
Boris


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 5:19 am 
Offline
Cacti User

Joined: Tue Apr 05, 2005 9:52 am
Posts: 367
Location: Munich, Germany
this helps:
http://forums.cacti.net/viewtopic.php?p=83633#83613


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 5:41 am 
Offline

Joined: Mon Feb 13, 2006 7:51 am
Posts: 11
Thans for the speed answer but i don't get it !
Need i to modify the setup.php ?

Greetings
Boris


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 6:02 am 
Offline
Cacti User

Joined: Tue Apr 05, 2005 9:52 am
Posts: 367
Location: Munich, Germany
blackakashi wrote:
Thans for the speed answer but i don't get it !
Need i to modify the setup.php ?

Greetings
Boris


yes - you need to add the return-statement into the mentioned function.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 8:27 am 
Offline

Joined: Mon Feb 13, 2006 7:51 am
Posts: 11
I've found 'nav' but there is already a returng function :
Need i to add an another one?
Can you explain a litte bit, i don't really get it ?
Sorry..

[code]
"}

function dataquery_draw_navigation_text ($nav) {
$nav["dataquery.php"] = array("title" => "Dataquery |current_graph_title|", "mapping" => "index.php:", "url" => "dataquery.php", "level" => "1");
$nav["dataquery.php:query"] = array("title" => "Dataquery |current_graph_title|", "mapping" => "index.php:", "url" => "dataquery.php", "level" => "1");
$nav["dataquery.php:dump"] = array("title" => "Dataquery dumping |current_graph_title|", "mapping" => "index.php:", "url" => "dataquery.php", "level" => "1");
$nav["dataquery.php:clean"] = array("title" => "Dataquery Clean", "mapping" => "index.php:", "url" => "dataquery.php", "level" => "1");
return $nav
}
[code][/code][code][/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group