[rrd-users] R: Re: RRD-Performance Issue - Need Help

2006-06-20 Thread Simone Felici
Wow! My problem is I'm not so good programming in perl, should read a little bit and learn ;) Removing command not needed, some checks (i.e. switch uptime) it's MUCH better. I've used some tricks sent to me too, thank's all! Do you have a perl example? Ok, I know, I should try myself ;) Anyway t

[rrd-users] Re: RRD-Performance Issue - Need Help

2006-06-20 Thread Fabien Wernli
On Tue, Jun 20, 2006 at 11:57:59AM +0200, Simone Felici wrote: > The snmpwalk is fast, but the cicle with all grep, awk, rrdtool update needs > minimum 7 minutes on first router and 20 minutes on second router!! I divided the serverload by at least 20 by using perl and RRDs instead of shell/awk/se

[rrd-users] Re: RRD-Performance Issue - Need Help

2006-06-20 Thread Alex van den Bogaerdt
On Tue, Jun 20, 2006 at 12:28:26PM +0200, Fabien Wernli wrote: > On Tue, Jun 20, 2006 at 12:23:28PM +0200, Alex van den Bogaerdt wrote: > > >>> < in.txt grep whatever | awk '{print $2}' > > hmmm make it > > | awk '/whatever/{print $2}' in.txt How is this different from my: > and remove

[rrd-users] Re: RRD-Performance Issue - Need Help

2006-06-20 Thread Fabien Wernli
On Tue, Jun 20, 2006 at 12:23:28PM +0200, Alex van den Bogaerdt wrote: > >>> < in.txt grep whatever | awk '{print $2}' hmmm make it | awk '/whatever/{print $2}' in.txt to save another cycle or use perl :o) -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archiv

[rrd-users] Re: RRD-Performance Issue - Need Help

2006-06-20 Thread Alex van den Bogaerdt
On Tue, Jun 20, 2006 at 11:57:59AM +0200, Simone Felici wrote: > 6. determinate InCounter32 (cat in.txt | grep line | awk blablabla) > 7. determinate OutCounter32 (cat out.txt | grep line | awk blablabla) Ever heard of the useless use of cat award ? You could probably save some cycles by changi

[rrd-users] RRD-Performance Issue - Need Help

2006-06-20 Thread Simone Felici
Hello to all! I've a little problem with our server and update rrd-files. We have 5300 rrd-files updated every 5 minutes. 4000 rrd-files of them are collected from two devices. These are two DSL routers. In there are configured all xDSL lines of our customers. I've made a script do the following:

[rrd-users] Re: I am trying to work with rrd_* functions in PHP but the my PHP5.1.2 is giving Segementation Fault

2006-06-20 Thread Michael Bunk
Hi TR, On Tuesday 20 June 2006 09:23, Thati Ravi wrote: > Hai evrybody, > (System Details: > OS : FedoraCore2 > PHP: 5.1.2 > php4rrdtool module is configured. > rrdtool is 1.0.49) Which version of the php bindings for rrdtool do you use now? The old ones that fit only for php4 or the new ones f

[rrd-users] I am trying to work with rrd_* functions in PHP but the my PHP5.1.2 is giving Segementation Fault

2006-06-20 Thread Thati Ravi
Hai evrybody, (System Details: OS : FedoraCore2 PHP: 5.1.2 php4rrdtool module is configured. rrdtool is 1.0.49) I am trying to call the rrd_create() in my php script like this:(very simple) $opts=array("--step","300","DS:testing:GAUGE:300:U:U","RRA:MIN:0.5:2:200"); $file="/home/ravit/test.rrd";

[rrd-users] [rrd-users]

2006-06-20 Thread Laura Jarvis
Hi, We're really impressed with RRD. Just trying to get rid of a couple of error log messages tho ~ I've spent the last couple of days solidly trolling through the web and rrd-users logs trying to eliminate these but no luck. Does anyone know where I'm going wrong? I'm currently using php 4.3.2 (