Xymon Mailing List Archive search

Able to generate RRD but graphs do not show up

2 messages in this thread

list Raunak Kothari · Mon, 11 Jan 2016 17:26:22 +0800 ·
Hi all,

I have a check in xymon to plot the time taken for several reports on the
system to be run. For each report, I have xymon monitors that are
collecting the data to the rrds but I am unable to populate the graph for
these checks.

Below is the output of rrdtool <info> on one of the rrds -

filename = "SecondsElapsed.rrd"
rrd_version = "0003"
step = 300
last_update = 1446514863
header_size = 1216
ds[SecondsElapsed].index = 0
ds[SecondsElapsed].type = "GAUGE"
ds[SecondsElapsed].minimal_heartbeat = 900
ds[SecondsElapsed].min = 0.0000000000e+00
ds[SecondsElapsed].max = NaN
ds[SecondsElapsed].last_ds = "5"
ds[SecondsElapsed].value = NaN
ds[SecondsElapsed].unknown_sec = 63
rra[0].cf = "AVERAGE"
rra[0].rows = 576
rra[0].cur_row = 258
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 = 576
rra[1].cur_row = 481
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 2
rra[2].cf = "AVERAGE"
rra[2].rows = 576
rra[2].cur_row = 382
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 20
rra[3].cf = "AVERAGE"
rra[3].rows = 576
rra[3].cur_row = 338
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 0.0000000000e+00
rra[3].cdp_prep[0].unknown_datapoints = 20

Below is my graph definition in graphs.cfg (The column name in Xymon is
"Status")

[Status]
        FNPATTERN SecondsElapsed.rrd
        TITLE Report Execution time in seconds
        YAXIS Seconds
        DEF:SecondsElapsed=SecondsElapsed.rrd:SecondsElapsed:AVERAGE
        GPRINT:SecondsElapsed:LAST:Minutes\: %5.0lf (cur)

Any clues why my graphs are not working ? Thanks!

Regards,
Raunak
list Jeremy Laidman · Tue, 12 Jan 2016 02:36:29 +0000 ·
Rounak

On Mon, Jan 11, 2016 at 8:26 PM Raunak Kothari <user-a8a393f86145@xymon.invalid>
quoted from Raunak Kothari
wrote:

Below is my graph definition in graphs.cfg (The column name in Xymon is
"Status")

[Status]
        FNPATTERN SecondsElapsed.rrd
FNPATTERN is not needed, unless you are combining values from several
different RRD files.  I don't think this is causing any problems, but take
it out anyway.
quoted from Raunak Kothari

        TITLE Report Execution time in seconds
        YAXIS Seconds
        DEF:SecondsElapsed=SecondsElapsed.rrd:SecondsElapsed:AVERAGE
        GPRINT:SecondsElapsed:LAST:Minutes\: %5.0lf (cur)
The rest looks reasonable.  But note that you won't get a graph line, only
the text showing "Minutes: 17".

Any clues why my graphs are not working ? Thanks!
Try running the graph process manually using the rrdtool graphing function,
like so:

$ rrdtool graph /dev/null
'DEF:SecondsElapsed=SecondsElapsed.rrd:SecondsElapsed:AVERAGE'
'GPRINT:SecondsElapsed:LAST:Minutes\: %5.0lf (cur)'

All that I've done here is to drop the TITLE" and "AXIS" entries (they are
optional with rrdgraph), and quote the other lines, sending the output to
/dev/null.  If there are problems, they will show up as an error message
from rrdtool.  If it parses correctly, then rrdtool will output the pixel
dimensions of the graph image file it created, such as "481x168".

Cheers
Jeremy