That's some sort of rrd problem - either that or you really do have weird
data - 600K of traffic per second with no other data and almost no
variation.
In plugins/rrdPlugin.c, look at graphSummary() - you'll see there's no
setting of axis values. rrdtool decides this for itself, which is supposed
to be based on the data it sees.
In fact, if you enable the DEBUG lines there (look for the #if 0 and make
the printf's into traceEvent()), you can see in the log the actual
parameters fed into rrdtool:
for(i=0; i<argc; i++)
traceEvent(CONST_TRACE_NOISY, "RRD_DEBUG: [%d][%s]", i, argv[i]);
Gives you:
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [0][rrd_graph]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG:
[1][/usr/share/ntop/rrd/graphics/now-12h-4.png]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [2][--lazy]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [3][--imgformat]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [4][PNG]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [5][--vertical-label]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [6][]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [7][--start]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [8][now-12h]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [9][--end]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [10][now]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG:
[11][DEF:ctr0=/usr/share/ntop/rrd/interfaces/eth1/IP_WebBytes.rrd:counter:AV
ERAGE]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [12][AREA:ctr0#1E90FF:Web
]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG:
[13][DEF:ctr1=/usr/share/ntop/rrd/interfaces/eth1/IP_DNSBytes.rrd:counter:AV
ERAGE]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [14][STACK:ctr1#FFFF00:DNS
]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG:
[15][DEF:ctr2=/usr/share/ntop/rrd/interfaces/eth1/IP_MailBytes.rrd:counter:A
VERAGE]
Jan 17 08:05:46 tigger ntop[21613]: RRD_DEBUG: [16][STACK:ctr2#FF0000:Mail
(etc.)
If you have rrdtool installed, you can use this to create the same graph
manually:
rrdtool graph out.png --lazy --imgformat PNG --vertical-label "" --start
now-12h --end now
DEF:ctr0=/usr/share/ntop/rrd/interfaces/eth1/IP_WebBytes.rrd:counter:AVERAGE
AREA:ctr0#1E90FF:
DEF:ctr1=/usr/share/ntop/rrd/interfaces/eth1/IP_DNSBytes.rrd:counter:AVERAGE
STACK:ctr1#FFFF00:DNS
Doing this manually with just a few rrds may show the expected value.
-----Burton
> _____________________________________________
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Sunday, January 16, 2005 6:22 PM
> To: [email protected]
> Subject: [Ntop] ntop 3.1 stacked graphs not working? (sol9 INTEL)
>
> Hi,
> Installed latest 3.1
>
> The stacked graphs on the rrd plugin for interface iprb0.
>
> They appear, but I do not get a 'stacked graph' - I just get a 'block'.
> See attached.
>
> Any Ideas?
>
> Rgds
> Dave Callaghan
> << OLE Object: Picture (Device Independent Bitmap) >> << File:
> ATT00025.txt >>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop