rrdtool question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rrdtool question
# 1  
Old 01-27-2011
rrdtool question

Hi,

DEF:clients=cccam.rrd:kliensek:AVERAGE
DEF:activeclients=cccam_actclient.rrd:activeclients:AVERAGE
"LINE1:clients#0000FF:Connected clients" COMMENT:" \n"
"LINE2:activeclients#99FF00:Active clients" COMMENT:" \n"
GPRINT:clients:LAST:'Current'\%5.0lf%s COMMENT:" \n"
GPRINT:clients:MIN:'Min: '\%5.0lf%s COMMENT:" \n" GPRINT:clients:MAX:"Max:\:%5.0lf%s\n"
GPRINT:activeclients:LAST:'Current'\%5.0lf%s COMMENT:" \n"
GPRINT:activeclients:MIN:'Min: '\%5.0lf%s COMMENT:" \n"
GPRINT:activeclients:MAX:"Max:\:%5.0lf%s\n"

How I can place values, in this form, like this:

Image

Number under numbers, caption under captions..

Thank you very much
# 2  
Old 01-27-2011
If you have the values available in shell...
Code:
printf "Connected clients\tActive clients\n"
printf "LAST:\t%d\t\tCurrent\t%d\n" 45 5
printf "Min:\t%d\t\tMin:\t%d\n" 2 1
printf "Max:\t%d\t\tMax:\t%d\n" 8 22

# 3  
Old 01-27-2011
No, in rrdtools graph function.

---------- Post updated at 04:59 PM ---------- Previous update was at 10:17 AM ----------

Here is my current chart:

Image

Titles in right column are at wrong place, as you see on the image. Can anyone help me to correct?

rrdtool graph ...
Code:
COMMENT:' ' \
"LINE1:kliensek#0000FF:Csatlakozott kliensek száma" \
COMMENT:' ' \
"LINE2:aktivkliensek#99FF00:Aktív kliensek száma" \
COMMENT:"\n" \
GPRINT:kliensek:LAST:" Legutóbbi\:%7.0lf%s" \
COMMENT:" " \
GPRINT:aktivkliensek:LAST:"Legutóbbi\:%7.0lf%s\n" \
GPRINT:kliensek:MIN:" Minimum\:%9.0lf%s" \
COMMENT:" " \
GPRINT:kliensek:MIN:" Minimum\:%9.0lf%s\n" \
GPRINT:kliensek:MAX:" Maximum\:%9.0lf%s" \
GPRINT:aktivkliensek:MAX:"Maximum\:%9.0lf%s"

I can't positionate the last title in right column GPRINT:aktivkliensek:MAX:"Maximum\:%9.0lf%s" to left. Also in right column, the first title GPRINT:kliensek:LAST:" Legutóbbi\:%7.0lf%s" is at rong place by 1 pixel. The Minimum title only what is OK.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python-rrdtool try except rrdtool.error module object has no attribute error

I have this code that gives this error on Linux and will be grateful if you can help import rrdtool try: ret_asd = rrdtool.update(myfile.rrd,'N:%s:%s' %(metric1, metric2)); except rrdtool.error, e: print e When i run the above i get the below error except... (1 Reply)
Discussion started by: kaf3773
1 Replies

2. Shell Programming and Scripting

Bash script for rrdtool

Hello all, I am very new to shell scripting. I messed with basic examples in college, but this this the first work related project I am trying to work on. I am trying to test the rrdtool on our office wan link by measuring the bandwidth utilization. The script concept is fairly easy, but I am... (2 Replies)
Discussion started by: AdrianT04
2 Replies

3. Red Hat

Why do we use RRDtool in MRTG?

Hi Guys, Why do we use RRDtool in MRTG? I have implemented MRTG for some routers, I have read some notes about RRDTOOL also but don't know what is use of these tool. Any one one please explain me the use of RRDTOOL in their own words? (1 Reply)
Discussion started by: manalisharmabe
1 Replies

4. HP-UX

compiling the RRDtool

I tried to compile the RRDtool on HP-UX (IA56). I have gcc-3.4.3 and perl 5.8.0 I got this: Writing Makefile for RRDs cd perl-shared && make /opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv... (2 Replies)
Discussion started by: Kalin
2 Replies
Login or Register to Ask a Question