[rrd-users] Re: don't know which datatype to choose

2005-09-05 Thread Alex Prinsier
first of all thanks all for the responses :)

I tried like you suggested, and I believe it works (well i got data and
a graph, i'm still testing to see if the data is indeed correct :)).

Still it makes little sense to me to first calculate the speed by which
packets go through the network, and then use that speed to calculate the
actual amount of data being transferred... i had that number from the
beginning... Perhaps my way would require a new kind of datatype.

Anyway I used those CDEF's like you suggested, and they seemed to work.
However suddenly (wouldn't know what triggered it) I get this error
message (twice) when creating a graph:

*** attempt to put segment in horiz list twice

What does it mean?

I'm executing this command:

$ /usr/local/rrdtool-1.2.11/bin/rrdtool graph
/home/aphex/public_html/xianc/output/teamspeak22.png --start 1125806400
--end 1125870681 --title teamspeak2 (9/4/2005-9/4/2005)
DEF:ts2in=/var/log/xianc/teamspeak2.rrd:ts2in:LAST
DEF:ts2out=/var/log/xianc/teamspeak2.rrd:ts2out:LAST
CDEF:ts2in2=ts2in,300,* CDEF:ts2out2=ts2out,300,*
AREA:ts2in2#FF:ts2in LINE1:ts2out2#00FF00:ts2out
*** attempt to put segment in horiz list twice
*** attempt to put segment in horiz list twice
481x179
$

Leaving out 'LINE1' makes the error messages disappear. What am I doing
wrong?

Thanks again,

Alex


Alex van den Bogaerdt wrote:
 On Sat, Sep 03, 2005 at 01:58:10AM +0200, Alex Prinsier wrote:
 
 
I want to create a rrd-db which I update with how much bytes have been
sent over the network. This counter doesn't reset when reading (like the
one from a router). In the end I want to know how much data has been
sent from one moment in time till another one.

I could use the COUNTER type, but then I would get the actual speed of
the data getting transmitted, not the amount.
 
 
 If data is transfered at x bytes per second, during y seconds,
 then there is x multiplied by y bytes transfered.
 
 This means you can get the average rate during an interval you want
 and multiply it by the amount of time.  Use CDEFs for this.
 
 Together with Tobi's answer this should get you started.
 
 cheers
 Alex
 
 --
 Unsubscribe mailto:[EMAIL PROTECTED]
 Helpmailto:[EMAIL PROTECTED]
 Archive http://lists.ee.ethz.ch/rrd-users
 WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi
 

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Re: Help on RRDTOO monitoring cpu loadavg needed!

2005-09-05 Thread CHEW YEW CHOONG
Firstly, thanks for help from others. I finally got it working by fixing the 
numbers input to rrdtool. 

Apparently, just need to remove the eol character from the source. This is how 
i do it,

  $line = qx/uptime/;
  # to chop the trailing newline
  chomp $line;



--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Re: don't know which datatype to choose

2005-09-05 Thread Alex van den Bogaerdt
On Mon, Sep 05, 2005 at 12:15:27AM +0200, Alex Prinsier wrote:

 Still it makes little sense to me to first calculate the speed by which
 packets go through the network, and then use that speed to calculate the
 actual amount of data being transferred...

No. The speed is almost 300,000,000 meter per second.

You are measuring the rate: the __amount__ of data _per_second_.

When you multiply by time, you cancel it out. You end up with
amount, just like you need.

Alex

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Re: RRDTOOL graph and windows 2000

2005-09-05 Thread Chris Wilson
Hi Alex,

 I try to use rrdtool graph but under windows, I get ERROR: failed to load
 c:windowsfontsarialn.ttf.
 Where RRDTool looks for fonts by default ? What do I need to install or to
 allow RRDTool to find fonts under windows ?

Try c:\\windows\\fonts\\arialn.ttf (double backslashes).

Cheers, Chris.
-- 
(aidworld) chris wilson | chief engineer ([EMAIL PROTECTED])

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Cannot see .png files

2005-09-05 Thread Timothy Murphy
I guess this is an apache issue,
but I am trying to follow the tutorial http://www.taedium.com//rrd-iptraf/,
and have copied the given file tcp_services.rcgi
to /var/www/cgi-bin/ on my desktop machine running httpd (apache).

When I go to this location with firefox on my laptop,
the require .png files are created in /var/www/cgi-bin
(on my desktop),
but all I get on the web-page are little triangles.

When I copy the .png files to /var/www/html/ I can see them perfectly well.

Do I need to add something to /etc/httpd/conf/httpd.conf on my desktop?
And if so what?

Or should I modify tcp_services.rcgi to write to another place?
And if so, how?

Any and all suggestions gratefully received.

To clarify matters, a portion of tcp_services.rcgi runs as follows:
--
pbssh/bbr/
RRD::GRAPH tcp_services-22-6hr.png --lazy
-s -6h5min -e -5min
-v 'Bits per second'
DEF:in=/var/log/iptraf/tcp_services.rrd:22_in:AVERAGE
DEF:out=/var/log/iptraf/tcp_services.rrd:22_out:AVERAGE
CDEF:out_bits=out,8,*
CDEF:in_bits=in,8,*
AREA:in_bits#00FF00
LINE1:out_bits#FF
/p
--


-- 
Timothy Murphy  
e-mail (80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi


[rrd-users] Re: Subscription confirmation for 'rrd-users'

2005-09-05 Thread kkraemer

Hello @ all,
I'm a rrd newbie and i try to install the rrdtool in order of this 
documantation:

http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdbuild.en.html

But I still get the following error if I try to install the rrdtool package 
finaly:

onfigure: WARNING:

* I could not find a working copy of cgilib. Check config.log for hints on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libcgi and its header files. If
  you have not installed cgilib, you can get it either from its original home on

 http://www.infodrom.org/projects/cgilib

  You can find also find an archive copy on

 http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs

  The last tested version of cgilib is 0.5.

   LIBS=-lz -lm
   LDFLAGS=
  CPPFLAGS=



configure: error: Please fix the library issues listed above and try again.


Are there some hints for me to get ist started?

Thanx @ all!

Karsten



--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://lists.ee.ethz.ch/rrd-users
WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi