Max number of graph items?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
geekman
Posts: 16
Joined: Fri Sep 22, 2006 2:10 pm
Location: Helena MT

Max number of graph items?

Post by geekman »

Hello, I am just wondering how many items I should be able to add to a graph.

I am creating one for a fairly large router (about 30 sub interfaces) and have added 60 total items to the graph ( 15 sub interfaces + 15*3 for each description current, average, max). if i try to add any more the graph stops displaying.

here is my rrdtool debug for it. (with names removed)

Code: Select all


c:/rrdtool/rrdtool/release/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Total DSL In" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_157.rrd":traffic_in:AVERAGE \
DEF:b="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_163.rrd":traffic_in:AVERAGE \
DEF:c="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_165.rrd":traffic_in:AVERAGE \
DEF:d="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_167.rrd":traffic_in:AVERAGE \
DEF:e="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_169.rrd":traffic_in:AVERAGE \
DEF:f="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_159.rrd":traffic_in:AVERAGE \
DEF:g="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_171.rrd":traffic_in:AVERAGE \
DEF:h="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_175.rrd":traffic_in:AVERAGE \
DEF:i="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_177.rrd":traffic_in:AVERAGE \
DEF:j="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_179.rrd":traffic_in:AVERAGE \
DEF:ba="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_181.rrd":traffic_in:AVERAGE \
DEF:bb="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_183.rrd":traffic_in:AVERAGE \
DEF:bc="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_185.rrd":traffic_in:AVERAGE \
DEF:bd="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_187.rrd":traffic_in:AVERAGE \
DEF:be="c\:/easyphp/www/cacti/rra/dsl_router_traffic_in_189.rrd":traffic_in:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=c,8,* \
CDEF:cdefbc=d,8,* \
CDEF:cdefbg=e,8,* \
CDEF:cdefca=f,8,* \
CDEF:cdefce=g,8,* \
CDEF:cdefci=h,8,* \
CDEF:cdefdc=i,8,* \
CDEF:cdefdg=j,8,* \
CDEF:cdefea=ba,8,* \
CDEF:cdefee=bb,8,* \
CDEF:cdefei=bc,8,* \
CDEF:cdeffc=bd,8,* \
CDEF:cdeffg=be,8,* \
AREA:cdefa#FFF200:"**********"  \
GPRINT:cdefa:LAST:"            Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefe#000000:"**********":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefi#FF7D00:"**********":STACK \
GPRINT:c:LAST:"   Current\:%8.2lf%s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:c:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefbc#8D00BA:"**********":STACK \
GPRINT:d:LAST:"  Current\:%8.2lf%s"  \
GPRINT:d:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:d:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefbg#FF00FF:"**********":STACK \
GPRINT:e:LAST:"    Current\:%8.2lf%s"  \
GPRINT:e:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:e:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefca#96E78A:"**********e":STACK \
GPRINT:f:LAST:"   Current\:%8.2lf%s"  \
GPRINT:f:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:f:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefce#837C04:"**********":STACK \
GPRINT:g:LAST:"       Current\:%8.2lf%s"  \
GPRINT:g:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:g:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefci#00A348:"**********":STACK \
GPRINT:h:LAST:" Current\:%8.2lf%s"  \
GPRINT:h:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:h:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefdc#FF0000:"**********":STACK \
GPRINT:i:LAST:"  Current\:%8.2lf%s"  \
GPRINT:i:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:i:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefdg#00234B:"**********":STACK \
GPRINT:cdefdg:LAST:"    Current\:%8.2lf%s"  \
GPRINT:cdefdg:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefdg:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefea#FF00FF:"**********":STACK \
GPRINT:ba:LAST:"    Current\:%8.2lf%s"  \
GPRINT:ba:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:ba:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefee#35962B:"**********":STACK \
GPRINT:bb:LAST:"       Current\:%8.2lf%s"  \
GPRINT:bb:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:bb:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefei#FF4105:"**********":STACK \
GPRINT:bc:LAST:"      Current\:%8.2lf%s"  \
GPRINT:bc:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:bc:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdeffc#D2D8F9:"**********":STACK \
GPRINT:bd:LAST:"  Current\:%8.2lf%s"  \
GPRINT:bd:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:bd:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdeffg#8D00BA:"**********":STACK \
GPRINT:be:LAST:"   Current\:%8.2lf%s"  \
GPRINT:be:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:be:MAX:"Maximum\:%8.2lf%s\n" 

if i remove the last 4 lines (last entry + descriptions) then the graph will display again, but with it there it doesn't even give me a broken image.

Thanks for any help

GeeKman.

[edit]

Ok in internet explorer it does give me a broken image box, but not in firefox :/

[/edit]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The limit is accually related to the size of the command line allowed on your system.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
geekman
Posts: 16
Joined: Fri Sep 22, 2006 2:10 pm
Location: Helena MT

Post by geekman »

hmm ok, the box is windows server 2k. running apache+php+mysql...

just shortened the titles in the legend to Cur: Ave: Max: to allow more room :)


thanks :D
geekman
Posts: 16
Joined: Fri Sep 22, 2006 2:10 pm
Location: Helena MT

Post by geekman »

ok, is there a way to show how long the current string would be?

i found that server 2000 has a max length of 2047 chars, XP has 8197

I may end up just using the cactiEZ linux CD so i can eliminate this problem.


thanks again
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Problem still exists in unix... But I think the limit is 65k.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
geekman
Posts: 16
Joined: Fri Sep 22, 2006 2:10 pm
Location: Helena MT

Post by geekman »

hehe i realize but 2047 is a far cry from 65k :D


we might also just goto a xp box (4x longer strings) but we could end up just delaying the inevitable... could end up with bigger graphs then current one and once current one is done it will probably be about 3700 - 4k chars


thanks again :)
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I think unix is 8k as well.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Depends on the execution shell
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
geekman
Posts: 16
Joined: Fri Sep 22, 2006 2:10 pm
Location: Helena MT

Post by geekman »

this just came to me,

Would it be possible to run the command over cygwin instead of the windows shell? right now im just using the windows task manager to run the poller.php

any pointers on how i might be able to set this up?

(installed it for cactid)
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cygwin does support a Crontab. How bout' that!!!

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests