[rrd-users] Re: perhaps a dummy question, but i got hang up ...

Chris Marlow marlowc at us.ibm.com
Thu Feb 22 17:42:06 MET 2001


Do you run this as a perl script?  If so, sometimes perl will interpret the
":" between the numbers incorrectly.

As a fix, assign your command to a variable first....
     $Command = '/usr/local/rrdtool update cisco.rrd N:' . $in . ':' .
$out;
     @ReturnString = `$Command`;

(Note the single quotes in the first line, and backticks in the second)

Also, check to make sure that $in and $out don't have newlines attached to
the end of them from the
return string.  Use:
     chomp($in);
     chomp($out);

Let me know if this helps.

-Chris

-----
Christopher S. Marlow
AIX Infrastructure / 24x7 Security
Burlington, VT
Phone: 802-769-3253
Tie line: 446-3253
e-mail: marlowc at us.ibm.com


MERZKIRCH FRANK <Frank.Merzkirch at siemens.lu>@list.ee.ethz.ch on 02/22/2001
10:46:17 AM

Sent by:  rrd-users-bounce at list.ee.ethz.ch


To:   "'rrd'" <rrd-users at list.ee.ethz.ch>
cc:
Subject:  [rrd-users] perhaps a dummy question, but i got hang up ...




well,

i read the tutorial to get familiar with rrd (i used to work with mrtg
before).
all right till now, but as i tryed to do the "real world example" i ran
into chaos...

ok, i built the rrd database, and i am familiar with SNMP, so it was no
problem to find the right oids for my router.

snmpget ...... => $in
snmpget ...... => $out

but when i try to update my newly created rrd database i get this error.

rrdtool update cisco.rrd N:$in:$out

ERROR: expected 2 data source readings (got 1) from N: ...

i`am shure there is someone who can help me...

btw.: i am searching for some examples or tutorials which describe how
to manage or to analyse a network with active devices (router, switch...)
using rrd and/or mrtg (rrd prefered) perhaps with the help of some perl
scripts

Thanx beforehand
Frank


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