[rrd-users] Re: blank data

Nate Johnson natejohn at indiana.edu
Wed Jan 15 17:18:00 MET 2003


Thanks so much for the reply.  I had definately already confirmend with
the "echo" debugging trick that my script was generating the correct
integers. Here's what you were asking about:

 #./test.sh
 rrdtool update connections.rrd N:15:12:25

What I don't quite understand yet is the syntax of rrdtool.  I was hoping
someone might glance over the steps I took here and see if something was
out of place.  I get what you mentioned in the other note that ones and
zeros aren't blank, I guess what I meant was missing data.  Should I
expect to see the simple integers when I "rrdtool fetch" to look at the
last 10 minutes?  That's what I was expecting.

For reference, here again is how I created my database:

 rrdtool create \
 connections.rrd --step 60 \
 DS:ftpsessions:GAUGE:120:0:U \
 DS:sftpsessions:GAUGE:120:0:U \
 DS:logins:GAUGE:120:0:U \
 RRA:AVERAGE:0.5:1:50400 \
 RRA:AVERAGE:0.5:60:43800

Here is how I am updating my database every 60 seconds:

 rrdtool update connections.rrd N:${ftpsessions}:${sftpsessions}:${logins}

with the results looking like this, for example:

  rrdtool update connections.rrd N:15:12:25

And here is a sample of the last 10 minutes:

 #rrdtool fetch connections.rrd AVERAGE -s -600
               ftpsessions  sftpsessions        logins

 1042582260: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582320: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582380: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582440: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582500: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582560: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582620: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582680: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582740: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582800: 1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
 1042582860: NaNQ NaNQ NaNQ
 1042582920: NaNQ NaNQ NaNQ

On Wed, 15 Jan 2003, Alex van den Bogaerdt wrote:

> On Tue, Jan 14, 2003 at 05:31:20PM -0500, Nate Johnson wrote:
> 
> >  rrdtool update connections.rrd N:${ftpsessions}:${sftpsessions}:${logins}
> 
> > I am generating the integers with a shell script, and then pluging them in
> 
> So you *think* ${ftpsessions} is a number other than 1.
> Don't assume this is true.  Be sure it is.
> 
> For instance: copy the line "rrdtool update "...  and insert "echo"
> in front to get "echo rrdtool update conne"...
> 
> This shows you what's happening and it gives you output to show
> us (the list, not me) what is happening if still necessary.
> 
> Always break down the problem into multiple parts.  Currently you
> don't know if you need to debug your shell script, rrdtool or the
> interaction between the two.
> 
> Just a hint:  If rrdtool would fail on a simple line like
> "rrdtool update connections.rrd N:21:23:25" then it wouldn't
> be such a success.  Therefore it is probably something outside
> RRDtool that's failing...  "${ftpsessions}:${sftpsessions}:${logins}"
> isn't substituted with "21:23:25"
> 
> Alex
> -- 
> Much of what looks like rudeness in hacker circles is not intended to give
> offence. Rather, it's the product of the direct, cut-through-the-bullshit
> communications style that is natural to people who are more concerned about
> solving problems than making others feel warm and fuzzy.
> 
> http://www.tuxedo.org/~esr/faqs/smart-questions.html
> 
> --
> 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
> 
> 
> 

-- 
* Nate Johnson, UITS SysAdmin
* natejohn at indiana.edu



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