Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jul 17, 2019 10:09 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Cactiquery-Cactistoric Problem. Please help!
PostPosted: Thu May 06, 2004 10:43 am 
Hello,
After installing cactiquery-cactistoric, I am unable to get graphs for traffic on my interfaces.
Cacti - 0.8.5a
Win 2K server
IIS5
Perl 5.8
Mysql
PHP

Errors: From the "source link":
Notice: Undefined offset: 2 in C:\Inetpub\wwwroot\cacti-0.8.5a\lib\rrd.php on line 735

Notice: Undefined offset: 2 in C:\Inetpub\wwwroot\cacti-0.8.5a\lib\rrd.php on line 739

Notice: Undefined offset: 2 in C:\Inetpub\wwwroot\cacti-0.8.5a\lib\rrd.php on line 743

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=end-86400 \
--end=1083714093 \
COMMENT:"From 2004-05-03 19:41:33 to 2004-05-04 19:41:33\c" \
COMMENT:"Graph Generated at 2004-05-04 19:41:33\c" \
--title="Cisco3640 - Traffic - Se0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="C\:\Inetpub\wwwroot\cacti-0.8.5a/rra/cisco3640_traffic_in_42.rrd":traffic_in:AVERAGE \
DEF:b="C\:\Inetpub\wwwroot\cacti-0.8.5a/rra/cisco3640_traffic_in_42.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"

What is wrong here? I have changed the rows for all the .rrd files. Infact I deleted my old .rrd files and started off brand new.
----------------------------------------------------------------------------
2. I tried to use the cactiquery on other graph that I was getting but the query did not give any data. I saw the post by "fmangeant" where he said adding the line "$type = "AVERAGE"; solved the problem. It did not for me. Could some one please tell me where to add the line? Or "pestilence" is it possible for you to send me the php file with the menu that let users choose what values they wanted to - min, max, average or last?


Thank you in advance for any help

Take care
Deepak


Top
  
 
 Post subject: Re: Cactiquery-Cactistoric Problem. Please help!
PostPosted: Fri May 07, 2004 1:49 am 
Offline
Cacti User
User avatar

Joined: Fri Jul 25, 2003 10:37 am
Posts: 207
Location: Athens/Greece
Deepak wrote:

2. I tried to use the cactiquery on other graph that I was getting but the query did not give any data. I saw the post by "fmangeant" where he said adding the line "$type = "AVERAGE"; solved the problem. It did not for me. Could some one please tell me where to add the line? Or "pestilence" is it possible for you to send me the php file with the menu that let users choose what values they wanted to - min, max, average or last?


The average was added by fmangeant because he used data sources that did not include the "LAST" cdef only AVERAGE.
The menu will be added in the new release of cactiquery please be patient, i expect this to be ready after this weekend.
The lines that you say have problems are lines that belong to bandwidth summation, i have not altered that section but i will try to find out what is wrong with it.

_________________
/* * 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: Mon May 10, 2004 8:06 am 
Thank you pestilence. I am waiting for it!


Top
  
 
 Post subject:
PostPosted: Mon May 10, 2004 8:06 am 
Thank you pestilence. I am waiting for it!


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

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