Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cactiquery-Cactistoric Release
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
Guest






PostPosted: Wed May 26, 2004 4:19 pm    Post subject: Re: error Reply with quote

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
Back to top
karunesh



Joined: 02 Feb 2004
Posts: 15
Location: India

PostPosted: Thu May 27, 2004 11:27 pm    Post subject: Reply with quote

After I almost gone mad with this, finally I got the solution and now things are working

Quote:

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.

Quote:

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.

Quote:

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.
Quote:

drwxrwxr-- 2 user1 users 4096 May 19 11:55 csv-export
Back to top
karunesh



Joined: 02 Feb 2004
Posts: 15
Location: India

PostPosted: Fri May 28, 2004 1:56 am    Post subject: Reply with quote

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.
Back to top
Bookmarc



Joined: 07 May 2004
Posts: 18

PostPosted: Fri May 28, 2004 1:16 pm    Post subject: Reply with quote

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:
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
Back to top
pestilence
Cacti User


Joined: 25 Jul 2003
Posts: 207
Location: Athens/Greece

PostPosted: Tue Jun 01, 2004 1:22 pm    Post subject: Reply with quote

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
Back to top
paddy



Joined: 15 Jul 2004
Posts: 13
Location: Stockholm, Sweden

PostPosted: Fri Jul 16, 2004 10:51 am    Post subject: Reply with quote

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:

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:

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!
Back to top
sg



Joined: 01 Jun 2004
Posts: 30

PostPosted: Mon Jul 19, 2004 2:47 pm    Post subject: problem exporting multiple columns with cactiquery Reply with quote

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

I only get one column (of three):
Code:
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:
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?
Back to top
pestilence
Cacti User


Joined: 25 Jul 2003
Posts: 207
Location: Athens/Greece

PostPosted: Thu Aug 19, 2004 2:23 am    Post subject: Reply with quote

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.
Back to top
sg



Joined: 01 Jun 2004
Posts: 30

PostPosted: Thu Aug 19, 2004 8:37 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group