Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Bredi



Andreas Maus wrote:
 
 'b' is the name of your DS I guess.
 
 

That's it!

So ist it possible to suppress the name of the DS and the timestamp?
I would like to have only the value!

Best regards, Bredi!
-- 
View this message in context: 
http://www.nabble.com/rrdtool-fetch%3A-Where-does-the-%27b%27-come-from--tp23277664p23291490.html
Sent from the RRDTool - User mailing list archive at Nabble.com.

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


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Tobias Oetiker
Hi Bredi,

Yesterday Bredi wrote:




 Andreas Maus wrote:
 
  'b' is the name of your DS I guess.
 
 

 That's it!

 So ist it possible to suppress the name of the DS and the timestamp?
 I would like to have only the value!

how about | tail -1 | awk '{print $2}'

cheers
tobi


 Best regards, Bredi!


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900

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


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Andreas Maus
On Tue, Apr 28, 2009 at 11:48:02PM -0700, Bredi wrote:
 That's it!
 
 So ist it possible to suppress the name of the DS and the timestamp?
 I would like to have only the value!
Hi.

Use tail or just plain and simple grep.

e.g. rrdtool fetch youre parameters | grep '^[0-9]'

HTH,

Andreas.

-- 
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


pgpeu8I2bI1Ln.pgp
Description: PGP signature
___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Bredi



Tobias Oetiker-3 wrote:
 
 So ist it possible to suppress the name of the DS and the timestamp?
 I would like to have only the value!
 
 how about | tail -1 | awk '{print $2}'
 

I don't have a console/shell. It would be nice to get this with the librrd
in Ansi C.

Best regards, Bredi.
-- 
View this message in context: 
http://www.nabble.com/rrdtool-fetch%3A-Where-does-the-%27b%27-come-from--tp23277664p23291963.html
Sent from the RRDTool - User mailing list archive at Nabble.com.

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


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Tobias Oetiker
Today Bredi wrote:




 Tobias Oetiker-3 wrote:
 
  So ist it possible to suppress the name of the DS and the timestamp?
  I would like to have only the value!
 
  how about | tail -1 | awk '{print $2}'
 

 I don't have a console/shell. It would be nice to get this with the librrd
 in Ansi C.

but librrd does not format the rrd_fetch output, the formatting is
only done for console output if you are calling the library
functions directly, you get the numbers and you should be all set.

cheers
tobi


 Best regards, Bredi.


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900

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


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Bredi



Tobias Oetiker-3 wrote:
 
 but librrd does not format the rrd_fetch output, the formatting is
 only done for console output if you are calling the library
 functions directly, you get the numbers and you should be all set.
 

It works but not with the last update time.
I have to use the last update time minus the step interval for the start and
end time to get the last average values.
BUT dumping the database shows the same value at the correct last update
time.
Why is that?

Best regards, Bredi
-- 
View this message in context: 
http://www.nabble.com/rrdtool-fetch%3A-Where-does-the-%27b%27-come-from--tp23277664p23295873.html
Sent from the RRDTool - User mailing list archive at Nabble.com.

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


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-29 Thread Tobias Oetiker
Today Bredi wrote:




 Tobias Oetiker-3 wrote:
 
  but librrd does not format the rrd_fetch output, the formatting is
  only done for console output if you are calling the library
  functions directly, you get the numbers and you should be all set.
 

 It works but not with the last update time.
 I have to use the last update time minus the step interval for the start and
 end time to get the last average values.
 BUT dumping the database shows the same value at the correct last update
 time.
 Why is that?

Hi Bredi,

sorry I am not quite sure what you are doing ... but have a look
at rrdtool.c to see what is going on ...

cheers
tobi



 Best regards, Bredi


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900

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


[rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-28 Thread Bredi

HI!

I'm using the fetch command on the command line with the same start and
endtime.
I'm getting something like this:

  b 
   
1250702520: 1.00e+02

What about the 'b' charackter?

Best regards, bredi.
-- 
View this message in context: 
http://www.nabble.com/rrdtool-fetch%3A-Where-does-the-%27b%27-come-from--tp23277664p23277664.html
Sent from the RRDTool - User mailing list archive at Nabble.com.

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


Re: [rrd-users] rrdtool fetch: Where does the 'b' come from?

2009-04-28 Thread Andreas Maus
On Tue, Apr 28, 2009 at 06:58:33AM -0700, Bredi wrote:
 HI!
 
 I'm using the fetch command on the command line with the same start and
 endtime.
 I'm getting something like this:
 
   b   
  
 1250702520: 1.00e+02
 
 What about the 'b' charackter?
Hi.

'b' is the name of your DS I guess.

HTH,

Andreas.

-- 
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


pgp9rOHYqppjU.pgp
Description: PGP signature
___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users