[rrd-users] Re: RRDtool for dummies

eddie eddie at maxis.net.my
Mon Jul 24 09:56:11 MEST 2000


AW: [rrd-users] RRDtool for dummiesHi Uli,


1.  Create the pop1conx.rrd

./rrdtool create pop1conx.rrd   \
        DS:pop1conx:COUNTER:600:U:U     \
        RRA:AVERAGE:0:5:1:600   \
        RRA:AVERAGE:0:5:6:600   \
        RRA:AVERAGE:0:5:24:700  \
        RRA:AVERAGE:0:5:288:797 \
        RRA:MAX:0.5:1:600       \
        RRA:MAX:0.5:6:700       \
        RRA:MAX:0.5:24:775      \
        RRA:MAX:0.5:288:797

2.  Script to update the db to pop1conx.rrd
#!/usr/bin/perl
$pop1conx = `snmpget 202.75.130.115 dingo .1.3.6.1.4.1.311.1.7.8.1.9.0`;
@cmd="/usr/local/rrdtool-1.0.24/bin/rrdtool update pop1conx.rrd N:$pop1conx";
system(@cmd);
3.  After run the script I'm still getting the following error.

ERROR: expected 1 data source readings (got 0) from =:...

Pls help.



  ----- Original Message ----- 
  From: Tehrani, Ulrich 
  To: 'eddie' 
  Sent: Monday, July 24, 2000 3:50 PM
  Subject: AW: [rrd-users] RRDtool for dummies


  Hi 
  i found two mistakes in your script: 
  1: You update the db webconx.rrd, first you create pop1conx.rrd 
  2: You have to extract only the Value from the return of the snmpget command by using e.g. the perl split command. 

  hope this helps 

  uli 

  -----Ursprüngliche Nachricht----- 
  Von: eddie [mailto:eddie at maxis.net.my] 
  Gesendet am: Montag, 24. Juli 2000 09:00 
  An: rrd-users at list.ee.ethz.ch 
  Betreff: [rrd-users] RRDtool for dummies 



  Are there any reference for non-programmer.  I have no problem with MRTG to 
  get any counters I want as long as it support SNMP.  However, when I tried 
  on RRDtool am totally lost.  I've tried many times but no success.  I know 
  RRDTools is the only software that can provide multiple counters in single 
  graph whereas MRTG can only have two.  Anyway, this is how I create the 
  RRDtools: 

  I think the problem is on 

  1.  Create the rrd file 
  ./rrdtool create pop1conx.rrd    \ 
          DS:pop1conx:COUNTER:600:U:U     \ 
          RRA:AVERAGE:0:5:1:600   \ 
          RRA:AVERAGE:0:5:6:600   \ 
          RRA:AVERAGE:0:5:24:700  \ 
          RRA:AVERAGE:0:5:288:797 \ 
          RRA:MAX:0.5:1:600       \ 
          RRA:MAX:0.5:6:700       \ 
          RRA:MAX:0.5:24:775      \ 
          RRA:MAX:0.5:288:797 

  2.  Script to get the counter.  I got stucked here. 

  #!/usr/bin/perl 
  $pop1conx = `snmpget 202.75.130.115 dingo ..1.3.6.1.4.1.311.1.7.8.1.9.0`; 
  @cmd="/usr/local/rrdtool-1.0.24/bin/rrdtool update webconx.rrd N:$pop1conx"; 
  system(@cmd); 

  The script returns with the following error: 

  RROR: expected 1 data source readings (got 0) from =:... 

  I think the snmpget doesn't get the single result.  If I use snmpget to the 
  server, I got this result instead of the value 12: 

  [root at eddx bin]# snmpget 202.75.130.115 dingo ..1.3.6.1.4.1.311.1.7.8.1.9.0 
  enterprises.311.1.7.8.1.9.0 = 12 

  3.  Due to the above error, my below graph appears to be counterless. 

  Would appreciate help. 

  Regards, 






  -- 
  Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe 
  Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help 
  Archive     http://www.ee.ethz.ch/~slist/rrd-users 
  WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list