[rrd-users] Re: rrdgraph issue

arussos at comune.modena.it arussos at comune.modena.it
Sun Apr 9 22:06:01 MEST 2006


Scrive Alex van den Bogaerdt <alex at ergens.op.het.net>:

> On Sun, Apr 09, 2006 at 02:46:01PM +0200, Andrea Russos wrote:
>
> > Now i'm dealing with the graphing of some GAUGE values obtained from a
> > perl script that give's back some ldap stats. My problem is how can i
> > graph these values like, for example, "number of connection" per second ??
>
> If you have a GAUGE value, it already is "per second".  If your value
> isn't, then you haven't set it up properly.
>
> > I mean: i make an snmpget of these OIDs every 5min ( 300 sec ), but if i
> > don't use some CDEF on the variables, i only graph lines with values as
> > they're obtained from the snmpget, and not related to seconds.
> > I read the docs on RRD webpage ( in particular those ones on CDEF and
> > RPN ) , but i cannot understand the CDEF i have to implement.
>
> The input is already a rate, and you need not convert it, or it is not
> a rate and are scr*wed.  Any attempt to repair the damage is a kludge
> at best.  Redo from start, this time using the proper counter type.
>
> If this information didn't help, you didn't describe the problem. Try again.
>
> --
Thanks Alex, i'll try to explain better what i did. I use a perl script on my
Ldap server that retrive some stats like totalconnections and others; i
modified the snmpd.conf file adding an exec line; from my Net-Monitor server (
OpenNMS ) i do snmpget on  the OIDs .1.3.6.1.4.1.2021.8.1.101.X ( where X are
the stats i want to collect ) obtaining values like:
....
UCD-SNMP-MIB::extOutput.1 = STRING: 66088
UCD-SNMP-MIB::extOutput.2 = STRING: 85299
UCD-SNMP-MIB::extOutput.3 = STRING: 166
....
On the server i get rrd files like valTotConnexions.rrd Doing an rrdtool info
valTotConnexions.rrd i get:
filename = "valTotConnexions.rrd"
rrd_version = "0001"
step = 300
last_update = 1144611545
ds[valTotConnexions].type = "GAUGE"
ds[valTotConnexions].minimal_heartbeat = 600
ds[valTotConnexions].min = NaN
ds[valTotConnexions].max = NaN
ds[valTotConnexions].last_ds = "UNKN"
ds[valTotConnexions].value = 1.6173865000e+07
ds[valTotConnexions].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 8928
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 8784
rra[1].pdp_per_row = 12
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 4.6095905333e+05
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "MIN"
rra[2].rows = 8784
rra[2].pdp_per_row = 12
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 6.5724886667e+04
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "MAX"
rra[3].rows = 8784
rra[3].pdp_per_row = 12
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 6.5977973333e+04
rra[3].cdp_prep[0].unknown_datapoints = 0
...
So i defined as GAUGE these values in my Monitoring Server and i tryed to graph
the values with:

rrdtool graph ldap.png --title "Statistiche varie LDAP"
"DEF:connessioni=valTotConnexions.rrd:valTotConnexions:AVERAGE"
LINE2:connessioni#0000A0:"Connessioni" GPRINT:connessioni:AVERAGE:" Avg \\:
%8.2lf %s\\n" GPRINT:connessioni:MIN:"  Min  \\:%8.2lf %s"
GPRINT:connessioni:MAX:"  Max  \\:%8.2lf %s \\n"

The graph i get is not what i thought: i mean that i get a LINE growing from
MIN to MAX and the values printed just under the graph are like " AVG: 20.87K ".

Sorry for the long post...Hope i described better my problem...

Any help on getting what i did wrong a how to fix it ???

--Andrea



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list