[rrd-users] Re: No data man

NAIL, THOMAS (SBIS) nthomas at sbis.sbc.com
Thu Aug 17 21:51:51 MEST 2000


Thanks for the timely response, Tobi. The data I'm parsing is simply a
colon-separated list of  values. Here is an example:

someplc:switched:43
thisplc:switched:142
anothplc:switched:25
notaplc:dedicated:12
nearaplc:dedicated:8
bytheplc:dedicated:11

also, I have attached a portion of the truss output (truss-file.txt). I hope
you can get more out of it than I did...

Thanks again,

Tom Nail

-----Original Message-----
From: Tobias Oetiker [mailto:oetiker at ee.ethz.ch]
Sent: Thursday, August 17, 2000 2:25 PM
To: NAIL, THOMAS (SBIS)
Subject: Re: [rrd-users] No data man


Today you sent me mail regarding [rrd-users] No data man:

*> 
*> Tobi, et al.
*> thanks for designing this wonderful tool...but (you knew it was coming,
*> right?) I'm having some problems. I'm trying to graph some data and it
isn't
*> showing up. Admittedly, Im a newbie and am probably missing something
*> simple, so I'll try to include as much information as I can. Sorry if
it's a
*> long post.
*> 
*> I'm using a simple perl script to get values from a current logfile and
*> update an rrd with the specific data. The script runs fine and I
encounter
*> no errors at that end, but the data doesn't appear in the rrd. I just
keep
*> getting "NaN". The script updates only once a day (thus the large values
for
*> the --step and heartbeat variables) and a "truss -fa" of the script shows
*> that it is indeed passing the correct variables from the parsing it has
*> done. I'm totally at a loss.
*> 

the program looks fine, but it would be interesting to see the
numbers you are feeding to rrdtool update ...

cheers
tobi
*> Here is the script:
*> Running on Solaris 2.6 x86 using Perl 5.005_03/RRDTool 1.0.17
*> _____________________________________
*> #!/usr/local/bin/perl -w
*> #perlscript for parsing files for PRIs
*> 
*> while (<>) {
*> if (/switched/) {
*>     chomp($_);
*>     @pris = split(/:/,$_);
*>         #print "$pris[0].rrd $pris[2]\n"
*>         if ( -e "/scripts/rrdt/data/PRIs/$pris[0].pri.rrd" ) {
*>                 system("/opt/bin/rrdtool update
*> /scripts/rrdt/data/PRIs/$pris[0].pri.rrd N:$pris[2]");
*>         }
*>         else {
*>                 system("/opt/bin/rrdtool create
*> /scripts/rrdt/data/PRIs/$pris[0].pri.rrd  --step 86400
*> DS:pris:GAUGE:100000:0:U RRA:MAX:0.5:1:750");
*>                 system("/opt/bin/rrdtool update
*> /scripts/rrdt/data/PRIs/$pris[0].pri.rrd N:$pris[2]");
*>         }
*> }
*> }
*> ______________________________________
*> 
*> ...and the output from a "fetch" command:
*> 
*> $-->rrdtool fetch PRIs/bobstx.pri.rrd MAX
*>                     pris
*> 
*>  966384000: -NaN
*>  966470400: -NaN
*>  966556800: -NaN
*> 
*> Any help would be appreciated.
*> 
*> Thanks,
*> 
*> Tom Nail
*> 
*> --
*> 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
*> 
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker




-- Attached file removed by Listar and put at URL below --
-- Type: text/plain
-- Size: 3k (3631 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/truss-file.txt


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