[rrd-users] Re: blank data

Nate Johnson natejohn at indiana.edu
Wed Jan 15 20:47:14 MET 2003


More info...

It seems that rrdupdate and/or "rrdtool update" hangs[1].  When it is
executed, never returning to the prompt.  I have built and installed
rrdtool on Tru64 4.0g running on an alphaserver 1000A.  The create, fetch
and graph arguments have no trouble at all.  Has anyone else had any
issues with rrdtool on alpha, maybe?  I also built rrdtool on a linux
workstation, set up the same rrd and scripts, and everything works fine
on that box.

On the alpha, there don't seem to be any failed dependencies, or
unresolved symbol references:

 #ldd rrdupdate

      Main  => rrdupdate
      libm.so  => /usr/shlib/libm.so
      libc.so  => /usr/shlib/libc.so

TIA, nate

[1] Here is the output my shell script when the script interpereter
    (bourne) is called with the -x argument:

 $./update_rrd.sh
 + wc -l
 + ps -ef
 + grep ftpd
 + grep -v root
 + expr 21 + 0
 ftpsessions=21
 + wc -l
 + ps -ef
 + grep sftp-server
 + grep -v tcsh
 + grep -v grep
 + expr 16 + 0
 sftpsessions=16
 + wc -l
 + w
 + expr 33 - 2
 logins=31
 + rrdtool update connections.rrd N:21:16:31
It just hangs right here forever ^^^^

On Wed, 15 Jan 2003, Nate Johnson wrote:

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

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