Cactiquery-Cactistoric Release

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Guest

Re: error

Post by Guest »

pestilence wrote:
karunesh wrote:Pestilence.

I upgraded cacti from 0.8.4 to 0.8.5a and installed cactiquery as per the instruction.Now when I click the [Zoom] or [Query] button on interface. I get the following error.

Zoom
------
Parse error: parse error, unexpected $ in /var/www/html/cacti/cactistoric.php on line 265

Query
------
Parse error: parse error, unexpected $ in /var/www/html/cacti/cactiquery.php on line 245

Any clue..

Karunesh
Thats wierd that lines mark the EOF of each file. Gonna check it again tonight...
I am facing the same problem. Any solution to this?

Thanks
karunesh
Posts: 15
Joined: Mon Feb 02, 2004 1:25 pm
Location: India

Post by karunesh »

After I almost gone mad with this, finally I got the solution and now things are working :lol:
I upgraded cacti from 0.8.4 to 0.8.5a and installed cactiquery as per the instruction.Now when I click the [Zoom] or [Query] button on interface. I get the following error.

Zoom
------
Parse error: parse error, unexpected $ in /var/www/html/cacti/cactistoric.php on line 265

Query
------
Parse error: parse error, unexpected $ in /var/www/html/cacti/cactiquery.php on line 245

Any clue..
Actually this is something releated to PHP, in both the php files "cactistoric.php" & "cactiquery.php", short php tags(<?....?>) are used, and these short tags are disabled by default. So we need to enable the short tags in "php.ini".Although this is not recommended by php community.
Change the follwoing

From
short_open_tag = Off

To
short_open_tag = On
Any way..now still I am not able to dump CSV, so I need to check that :(.
It gives me error.
Error opening file: /var/www/html/cacti/csv-export/192.168.4.30-.csv for writting!
Writting to file: /var/www/html/cacti/csv-export/192.168.4.30-.csv
Here are the permissions of csv-export directory.
drwxrwxr-- 2 user1 users 4096 May 19 11:55 csv-export
__Kårunesh__
karunesh
Posts: 15
Joined: Mon Feb 02, 2004 1:25 pm
Location: India

Post by karunesh »

karunesh wrote:
Any way..now still I am not able to dump CSV, so I need to check that :(.
It gives me error.

Error opening file: /var/www/html/cacti/csv-export/192.168.4.30-.csv for writting!
Writting to file: /var/www/html/cacti/csv-export/192.168.4.30-.csv

Here are the permissions of csv-export directory.
drwxrwxr-- 2 user1 users 4096 May 19 11:55 csv-export
Finally everything is working smooth.Actually need to change the user and owner of "csv_export" directory as apache/apache.
:P
__Kårunesh__
Bookmarc
Posts: 18
Joined: Fri May 07, 2004 12:02 pm

Post by Bookmarc »

Hi all,

I've merged the Cactistoric-Cactiquery "plugin" but now all my graph with 95th percentile or Total Bandwidth are broken ..?!

Anyone else experiencing this ?

I'm using Cacti 0.8.5a and cactiquery-cactistoric-0[1][1].8.5-0.02-en.tar

I get the following error when I click on 'Source' :

Code: Select all

Notice: Undefined offset: 2 in C:\APPLS\cacti-0.8.5a\lib\rrd.php on line 697

Warning: usort(): The argument should be an array in C:\APPLS\cacti-0.8.5a\lib\rrd.php on line 700
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

Sorry took long enough to check the M/B as i am really bussy i will check the issue tomorrow and respond back to this thread :)
/* * 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);
paddy
Posts: 14
Joined: Thu Jul 15, 2004 9:34 am
Location: Stockholm, Sweden

Post by paddy »

I'm having the same problem as Bookmarc altho it doesnt seem to affect how things work.. still annoying and probably does something I cant see..

Code: Select all

PHP Notice:  Undefined offset:  2 in /usr/local/share/cacti/lib/rrd.php on line 697, referer: http://<snip>/graph.php?local_graph_id=6&rra_id=all&type=tree

Code: Select all

PHP Warning:  usort(): The argument should be an array in /usr/local/share/cacti/lib/rrd.php on line 700, referer: http://<snip>/graph.php?local_graph_id=6&rra_id=all&type=tree
This is on a FreeBSD box with Apache2 and PHP4.8.3.

Another thing.. I think I read somewhere about the 95percentil stuff not being calculated with this plugin.. and it doesnt.. any ideas for fixes or so ?..

It works wonderful over those few things :)
Thanks a bunch for it couse it really saves some headace!
sg
Posts: 30
Joined: Tue Jun 01, 2004 12:55 pm

problem exporting multiple columns with cactiquery

Post by sg »

Hi, I'm having a problem with my CSV export of a CPU utilization graph (attached)

I only get one column (of three):

Code: Select all

Timestamp	cpu_system
19/Jul/2004 09:40:00	0
19/Jul/2004 09:45:00	0
19/Jul/2004 09:50:00	0
19/Jul/2004 09:55:00	0
19/Jul/2004 10:00:00	0
19/Jul/2004 10:05:00	0
19/Jul/2004 10:10:00	0
19/Jul/2004 10:15:00	0
19/Jul/2004 10:20:00	0
19/Jul/2004 10:25:00	0
19/Jul/2004 10:30:00	0
19/Jul/2004 10:35:00	0
19/Jul/2004 10:40:00	0
19/Jul/2004 10:45:00	0
19/Jul/2004 10:50:00	0
19/Jul/2004 10:55:00	0
19/Jul/2004 11:00:00	1
19/Jul/2004 11:05:00	1
19/Jul/2004 11:10:00	0
19/Jul/2004 11:15:00	1
19/Jul/2004 11:20:00	1
19/Jul/2004 11:25:00	1
19/Jul/2004 11:30:00	0
When I go furthrer and dump to CSV, the same problem appears:

Code: Select all

Title: Shiraz - Node 1 - CPU Usage
Timestamp;cpu_system
19/Jul/2004 09:40:00;       0
19/Jul/2004 09:45:00;       0
19/Jul/2004 09:50:00;       0
19/Jul/2004 09:55:00;       0
19/Jul/2004 10:00:00;       0
19/Jul/2004 10:05:00;       0
19/Jul/2004 10:10:00;       0
19/Jul/2004 10:15:00;       0
19/Jul/2004 10:20:00;       0
19/Jul/2004 10:25:00;       0
19/Jul/2004 10:30:00;       0
19/Jul/2004 10:35:00;       0
19/Jul/2004 10:40:00;       0
19/Jul/2004 10:45:00;       0
19/Jul/2004 10:50:00;       0
19/Jul/2004 10:55:00;       0
19/Jul/2004 11:00:00;       1
19/Jul/2004 11:05:00;       1
19/Jul/2004 11:10:00;       0
19/Jul/2004 11:15:00;       1
19/Jul/2004 11:20:00;       1
19/Jul/2004 11:25:00;       1
19/Jul/2004 11:30:00;       0
19/Jul/2004 11:35:00;       0
19/Jul/2004 11:40:00;       0
19/Jul/2004 11:45:00;       5
What I am doing wrong?
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

Unfortunately cactistoric supports only 1 data source per query at the moment, thus combined graphs will not return any results.
I am working on it (slowly though due to my limited free time) and once i have something new i will surely share it with all of you.
/* * 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);
sg
Posts: 30
Joined: Tue Jun 01, 2004 12:55 pm

Post by sg »

That would be great, Pestilence.

It may be worth talking to TheWitness to make sure that you aren't working on Parallel paths (TheWitness has expressed an intent to add CSV exporting to 0.8.6).

sg
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests