Re: [rrd-users] Noobe needs some adviceing (on rrd and FreeBSD)

This is a discussion on Re: [rrd-users] Noobe needs some adviceing (on rrd and FreeBSD) within the RRD Users forums, part of the Networking and Network Related category; --===============0354692454== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PMKcwNXkopx7sVjc" Content-Disposition: ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2008
Andreas Maus
 
Posts: n/a
Default Re: [rrd-users] Noobe needs some adviceing (on rrd and FreeBSD)


--===============0354692454==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="PMKcwNXkopx7sVjc"
Content-Disposition: inline


--PMKcwNXkopx7sVjc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 22, 2008 at 05:34:21PM +0300, X Y wrote:
> Hello all! =20

Hi.

> Im a noobe at bouth BSD and RRD, hope some one will help me understand an=

d find, a solution to my Errors. Pardon me for any missprints or misstakes.=
=20
Don't worry ;)

> Then i did some reading on man and googling for solutions (without need t=

o mess with Mysql or Apache). =20
> =20
> Did create sh file =20
> =20
> #!/bin/sh =20
> =20
> rrdtool create /usr/local/rrdtool-1.2.27/db/network_usage.rrd? --start no=

w --step 300\ =20
> DS:mail_input:COUNTER:600:U:U \ =20
> DS:mail_output:COUNTER:600:U:U \ =20
> DS:html_traf:COUNTER:600:U:U \ =20
> DS:shtml_traf:COUNTER:600:U:U \ =20
> DS:ftp_traf:COUNTER:600:U:U \ =20
> DS:all:COUNTER:600:U:U \ =20
> RRA:AVERAGE:0.5:1:600 \ =20
> RRA:AVERAGE:0.5:6:700 \ =20
> RRA:AVERAGE:0.5:24:775 \ =20
> RRA:AVERAGE:0.5:288:797 \ =20
> RRA:MAX:0.5:1:600 \ =20
> RRA:MAX:0.5:6:700 \ =20
> RRA:MAX:0.5:24:775 \ =20
> RRA:MAX:0.5:288:797 \ =20
> =20
> It creates fine. =20
> =20
> Next i try to update existing data base with counter data from ipfw =20
> manualy cheched ipfw rules and counders do count ok. =20
> =20
> #!/bin/sh =20
> mail_input=3D`ipfw show 80 | awk '{print $3}'` =20
> mail_output=3D`ipfw show 81 | awk '{print $3}'` =20
> http_traf=3D`ipfw show 82 | awk '{print $3}'` =20
> shttp_traf=3D`ipfw show 83 | awk '{print $3}'` =20
> ftp_traf=3D`ipfw show 84 | awk '{print $3}'` =20
> all=3D`ipfw show 85 | awk '{print $3}'` =20
> =20
> rrdtool update /usr/local/rrdtool-1.2.27/db/network_usage.rrd \ =20
> ?N:$mail_input:$mail_output:$http_traf:$shttp_traf :$ftp_traf:$all =20

*aeh* whats that '?' before N:... ?
Is this an error of your mailclient or is it indeed in your command?
Can you attach the script (to avoid error due copy and paste)?

> *Here i stumbled on first error. =20
> =20
> ERROR: expected timestamp not found in data source from =20
> N:2991935:6312:44368311:5850271:1302:318461263: not found =20

Well maybe the magic '?' in the command is _really_ in the command.
This error indicates that you called:
rrdtool update ... _AND_ then ?N:$mail_input:$...

(These are two errors. "expected timestamp" from rrdtool and "18461263: not=
found" from the shell).

> It says it doesnt know what N is! Mkay, i write another line dates=3D`dat=

e +%s | awk '{print $1}'` =20
> and add $dates instead of N. =20
> Ok no Errors. =20
> =20
> Next i try to graph it all. With following sh file =20
> =20
> #!/bin/sh =20
> WWWPREFIX=3D/home/alp/hosting/!default/rrdtool/images =20
> RRDPREFIX=3D/usr/local/rrdtool-1.2.27/db =20
> =20
> rrdtool graph $WWWPREFIX/network.png \ =20
> ?--width 500 --height 500 --imgformat PNG \ =20
> ?--start -43200 \ =20

[... snipp ...]
See the mystic '?' again !
I guess thats really the reason your commands failed.

HTH,

Andreas.

--=20
Dipl.-Ing. Andreas Maus science+computing ag
System Administration Hagellocher Weg 73
tel.: +49 7071 9457 671 72070 Tuebingen, Germany
fax: +49 7071 9457 411 www.science-computing.de

--PMKcwNXkopx7sVjc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFIDf/H2zOxANjhrOARAtqGAJ9vS/yOhWaimeHdrHYkJ8gTXW7LzACggDRK
TwF8xVFpLag4RB1yPt5MYJE=
=+M3T
-----END PGP SIGNATURE-----

--PMKcwNXkopx7sVjc--


--===============0354692454==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

--===============0354692454==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0