Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
Nuno Pereira wrote: Resending to the list... Instead of snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4 $input snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.16.4 $output try input = `snmpget -Oqv -v2c -c BAW_R 172.16.200.11

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread Erik de Mare
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset=UTF-8

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
When i do the 'echo', i have the result : #sh test_script.sh 77134772:461597000 but not in my rrd file: #rrdtool fetch switch.rrd AVERAGE the result is: nan nan -- View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1125660.html Sent from the RRDtool

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
There is a progress: #rrdtool update switch.rrd 1222690800:77134772:461597000 # rrdtool fetch switch.rrd AVERAGE --start 1222690400 input output 1222690500: nan nan 1222690800: 0.00e+00 0.00e+00 I try the update manually, why there is

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread Andy Riebs
Fixing your original script... --- #!/bin/sh a=0 while [ $a != 0 ]; do in=`snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4` out=`snmpwalk -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.16.4` # I can use N as a replacement for the current time rrdtool update

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
So, this is the final script which is running : #!/bin/sh a=0 while [ $a!=0 ]; do input=$(snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4) output=$(snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.16.4) echo $input:$output # I can use N as a replacement

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread Andy Riebs
OK, A few more problems here... 1. It's a good bet that the following isn't doing what you think it is: a=0 while [ $a!=0 ]; do You probably meant to do a=1 while [ $a -ne 0 ]; do Though I will concede that the following would also work: a=1

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
You're right Andy, I decrease the intervale and i change the port of the switch. I explain, i tested the traffic on the port 4 (choose at random) but after test, the traffic on this port is constant, it's explain the value 0. I test on a other port and the result is better!! :-D Thank you

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread Nuno Pereira
1. It's a good bet that the following isn't doing what you think it is: a=0 while [ $a!=0 ]; do You probably meant to do a=1 while [ $a -ne 0 ]; do Though I will concede that the following would also work: a=1 while [ $a != 0 ]; do

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
In fact, i don't really understood can you explain to me the signification please :-D a=1 while [ $a -ne 0 ]; do particularly this parts : [ $a -ne 0 ] -- View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1127008.html Sent from the RRDtool Users

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread Nuno Pereira
In fact, i don't really understood can you explain to me the signification please :-D a=1 while [ $a -ne 0 ]; do particularly this parts : [ $a -ne 0 ] This is a Conditional Expression (see the man section for more info) that you can use in sh to test if arg1 is not qual to arg2.

Re: [rrd-users] I need help with my rrd file

2008-09-29 Thread alucard95
thanks you Nuno Pereira, you're right, this method is better. I'm going to change my script =) -- View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1127158.html Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

[rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
Hello!! I need some help with my rrd file. I want to do graphs of input and output traffic of my network. I create the follow rrd file: rrdtool create switch.rrd \ DS:input:COUNTER:600:U:U \ DS:output:COUNTER:600:U:U \ RRA:AVERAGE:0.5:1:600 \

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Andreas Maus
On Fri, Sep 26, 2008 at 01:50:13AM -0700, alucard95 wrote: Hello!! Hi. I need some help with my rrd file. I want to do graphs of input and output traffic of my network. [... snipp ...] next i create a script to upload my rrd file : #!/bin/sh a=0 while [ $a != 0 ]; do snmpwalk -v2c

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
First thank you for help me!! Show us the output of your snmpget command. I guess it looks like this: [EMAIL PROTECTED]:~$ snmpwalk -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 = Counter32: 262658353 Yes, the output is : IF-MIB::ifOutOctets.4 = Counter32:

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Rene Fritzsche
Hi, Show us the output of your snmpget command. I guess it looks like this: [EMAIL PROTECTED]:~$ snmpwalk -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 = Counter32: 262658353 Yes, the output is : IF-MIB::ifOutOctets.4 = Counter32: 461597000 as Alexander

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Rene Fritzsche
little typo (sorry): snmpwalk ... 1.3.6.1.2.1.2.2.1.16.4 | sed 's/^.*: \([0-9]*\)$/\1/' $out Rene. Pt! Schon vom neuen WEB.DE MultiMessenger gehört? Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Andreas Maus
On Fri, Sep 26, 2008 at 01:45:35PM +0200, Rene Fritzsche wrote: Hi, Show us the output of your snmpget command. I guess it looks like this: [EMAIL PROTECTED]:~$ snmpwalk -v2c -c public 192.168.1.222 1.3.6.1.2.1.2.2.1.16.4 IF-MIB::ifOutOctets.4 = Counter32: 262658353 Yes, the

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
ok, i progress, The problem in my command was whis the end because when i execute : rrdtool update switch.rrd 1222430700:77134872:461597800 and next : rrdtool fetch switch.rrd AVERAGE --start 1222430400 --end 1222431000 the result is : input output

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Erik de Mare
or use snmpwalk -Oqv -c public localhost no parsing needed rrdtool update file.rrd N:`snmpwalk -Oqv -c public localhost 1.3.6.1.2.1.2.2.1.16.4`:`snmpwalk -Oqv -c public localhost 1.3.6.1.2.1.2.2.1.16.4` and you only need to graph it On Fri, 26 Sep 2008 13:58:20 +0200, Andreas Maus [EMAIL

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
ok, thank you for this! But i have an other question, why when i execute manually this command : rrdtool update switch.rrd N:77134772:461597000 and next when i want to see the result : rrdtool fetch switch.rrd AVERAGE --start N --end N the output is : input

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Andy Riebs
Hi, I think the confusion here is that rrdtool generally works with changes rates of change; by specifying the same time for the start and end of the period, no change can be calculated. HTH! /andy On Friday 26 September 2008 08:14:51 am alucard95 wrote: ok, i progress, The problem in my

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
Thank you for all your answers!! Now i modifie my script like this : #!/bin/sh a=0 while [ $a != 0 ]; do snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.10.4 $in snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.16.4 $out # I can use N as a

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread jeffrey.j.petter
Of alucard95 Sent: Friday, September 26, 2008 9:07 AM To: rrd-users@lists.oetiker.ch Subject: Re: [rrd-users] I need help with my rrd file Thank you for all your answers!! Now i modifie my script like this : #!/bin/sh a=0 while [ $a != 0 ]; do snmpget -Oqv -v2c -c public xxx.xxx.xxx.xxx

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
I modified my script and named my variables names $input and $output. The result is the same, how can i verify that my script is running?? -- View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1120979.html Sent from the RRDtool Users Mailinglist mailing

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
I think the problem is with my script. So, i create a new script like this : #!/bin/sh snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4 $input snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.16.4 $output # I can use N as a replacement for the current

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Andy Riebs
You have to assign values to $input and $output! /andy On Friday 26 September 2008 10:28:18 am alucard95 wrote: I think the problem is with my script. So, i create a new script like this : #!/bin/sh snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4 $input snmpget -Oqv

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
Normally, the result of this command snmpget -Oqv -v2c -c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.10.4 is assign to $input and the same for $output isn't it?? -- View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1121065.html Sent from the RRDtool Users

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Nuno Pereira
-c BAW_R 172.16.200.11 1.3.6.1.2.1.2.2.1.16.4` Nuno Pereira -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de alucard95 Enviada: sexta-feira, 26 de Setembro de 2008 15:28 Para: rrd-users@lists.oetiker.ch Assunto: Re: [rrd-users] I need help with my rrd file I

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread alucard95
Ok, i'm going to try this on monday because i can't acceed to the server the week end ;-) However thank you very much for all your answers and i'll give you the result the faster possible! -- View this message in context: http://n2.nabble.com/I-need-help-with-my-rrd-file-tp1120359p1121370.html

Re: [rrd-users] I need help with my rrd file

2008-09-26 Thread Joshua Keroes
For infinite loops in sh, I prefer the following: while : do rrdtool ... sleep 300 done ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users