Xymon Mailing List Archive search

Custom Graphs not appearing

3 messages in this thread

list Jeremy Ruffer · Wed, 13 Feb 2008 17:08:38 -0000 ·
Hi everyone,

 
I thought that I had this one sussed and managed to produce a couple of
graphs on the Trends page from a data send.

 
I wanted to produce another graph with 3 lines on it.

 
My rrd file is being produced OK

rrdtool dump looks good.

<!-- Round Robin Database Dump -->

<rrd>

        <version> 0003 </version>

        <step> 300 </step> <!-- Seconds -->

        <lastupdate> 1202921859 </lastupdate> <!-- 2008-02-13 16:57:39
GMT -->

 
        <ds>

                <name> Spudcount </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> 0.0000000000e+00 </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> UNKN </last_ds>

                <value> 8.5860000000e+03 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> Spudavg </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> 0.0000000000e+00 </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> UNKN </last_ds>

                <value> 2.6553000000e+01 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> Spudmax </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> 0.0000000000e+00 </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> UNKN </last_ds>

                <value> 1.5900000000e+02 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
rrdtool fetch looks sensible to me:

# rrdtool fetch Spudgraph.rrd AVERAGE -r 900 -s -60m

                      Spudcount             Spudavg             Spudmax

 
1202918700: 6.4000000000e+01 5.6341000000e-01 4.6500000000e+00

1202919000: 6.1650000000e+01 3.7451000000e-01 2.0000000000e+00

1202919300: 6.1333333333e+01 3.7026666667e-01 1.5333333333e+00

1202919600: 7.1520000000e+01 4.1493000000e-01 1.4700000000e+00

1202919900: 7.8120000000e+01 5.2840000000e-01 2.0000000000e+00

1202920200: 6.8950000000e+01 5.3455000000e-01 1.5300000000e+00

1202920500: 6.6170000000e+01 5.1105000000e-01 1.0000000000e+00

1202920800: 6.5000000000e+01 4.6446666667e-01 1.0000000000e+00

1202921100: 5.1360000000e+01 3.1625000000e-01 1.0000000000e+00

1202921400: 4.8760000000e+01 3.3062000000e-01 1.0000000000e+00

1202921700: 5.3470000000e+01 2.3855000000e-01 1.0000000000e+00

1202922000: 4.9770000000e+01 1.8251000000e-01 1.0000000000e+00

1202922300: nan nan nan

 
There is an empty box for the graph on the Trends page.

 
I have obviously made a mistake in my hobbitgraph.cfg but I just can't
see it.

[Spudgraph]

        TITLE Spud Results

        YAXIS Spud

        DEF:Count=Spudgraph.rrd:Spudcount:AVERAGE

        DEF:Avg=Spudgraph.rrd:Spudavg:AVERAGE

        DEF:Max=Spudgraph.rrd:Spudmax:AVERAGE

        LINE2:Count#FF0000:Count

        LINE2:Avg#00FF00:Avg

        LINE2:Max#0000FF:Max

        COMMENT:\n

        GPRINT:Count:LAST: %6.0lf%s (cur)

        GPRINT:Count:MAX: %6.0lf%s (max)

        GPRINT:Count:Min: %6.0lf%s (min)

        GPRINT:Count:AVERAGE: %6.1lf%s (avg) \n

        GPRINT:Avg:LAST: %6.3lf%s (cur)

        GPRINT:Avg:MAX: %6.3lf%s (max)

        GPRINT:Avg:Min: %6.3lf%s (min)

        GPRINT:Avg:AVERAGE: %6.3lf%s (avg) \n

        GPRINT:Max:LAST: %6.0lf%s (cur)

        GPRINT:Max:MAX: %6.0lf%s (max)

        GPRINT:Max:Min: %6.0lf%s (min)

        GPRINT:SpudMax:AVERAGE: %6.1lf%s (avg) \n

 
Can anyone help?

 
Jeremy Ruffer

 
This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of user-020a2aa3cf14@xymon.invalid and do not necessarily represent those of the company.
 
HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 2103564.
Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom.
list Jeremy Ruffer · Thu, 14 Feb 2008 09:42:07 -0000 ·
I finally found it.  I had Min instead of MIN.

 
Is it possible to specify a maximum that the Y-Axis can go up to?

 
Jeremy
signature

 
This message, and any associated files, are intended only for the use of the message recipient and may contain information that is confidential, subject to copyright or constitute a trade secret. If you are not the message recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and then deleting it from your computer. HSS Hire Service Group Limited may monitor email traffic data and also the content of email for the purposes of security and staff training. Any views or opinions presented are solely those of user-020a2aa3cf14@xymon.invalid and do not necessarily represent those of the company.
 
HSS Hire Service Group is a limited company registered in England and Wales. Registered number: 2103564.
Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United Kingdom.
 
-----Original Message-----

quoted from Jeremy Ruffer
From: Jeremy Ruffer [mailto:user-020a2aa3cf14@xymon.invalid] 
Sent: 13 February 2008 17:09
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Custom Graphs not appearing

 
Hi everyone,

 
I thought that I had this one sussed and managed to produce a couple of
graphs on the Trends page from a data send.

 
I wanted to produce another graph with 3 lines on it.

 
My rrd file is being produced OK

rrdtool dump looks good.

<!-- Round Robin Database Dump -->

<rrd>

        <version> 0003 </version>

        <step> 300 </step> <!-- Seconds -->

        <lastupdate> 1202921859 </lastupdate> <!-- 2008-02-13 16:57:39
GMT -->

 
        <ds>

                <name> Spudcount </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> 0.0000000000e+00 </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> UNKN </last_ds>

                <value> 8.5860000000e+03 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> Spudavg </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> 0.0000000000e+00 </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> UNKN </last_ds>

                <value> 2.6553000000e+01 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> Spudmax </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> 0.0000000000e+00 </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> UNKN </last_ds>

                <value> 1.5900000000e+02 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
rrdtool fetch looks sensible to me:

# rrdtool fetch Spudgraph.rrd AVERAGE -r 900 -s -60m

                      Spudcount             Spudavg             Spudmax

 
1202918700: 6.4000000000e+01 5.6341000000e-01 4.6500000000e+00

1202919000: 6.1650000000e+01 3.7451000000e-01 2.0000000000e+00

1202919300: 6.1333333333e+01 3.7026666667e-01 1.5333333333e+00

1202919600: 7.1520000000e+01 4.1493000000e-01 1.4700000000e+00

1202919900: 7.8120000000e+01 5.2840000000e-01 2.0000000000e+00

1202920200: 6.8950000000e+01 5.3455000000e-01 1.5300000000e+00

1202920500: 6.6170000000e+01 5.1105000000e-01 1.0000000000e+00

1202920800: 6.5000000000e+01 4.6446666667e-01 1.0000000000e+00

1202921100: 5.1360000000e+01 3.1625000000e-01 1.0000000000e+00

1202921400: 4.8760000000e+01 3.3062000000e-01 1.0000000000e+00

1202921700: 5.3470000000e+01 2.3855000000e-01 1.0000000000e+00

1202922000: 4.9770000000e+01 1.8251000000e-01 1.0000000000e+00

1202922300: nan nan nan

 
There is an empty box for the graph on the Trends page.

 
I have obviously made a mistake in my hobbitgraph.cfg but I just can't
see it.

[Spudgraph]

        TITLE Spud Results

        YAXIS Spud

        DEF:Count=Spudgraph.rrd:Spudcount:AVERAGE

        DEF:Avg=Spudgraph.rrd:Spudavg:AVERAGE

        DEF:Max=Spudgraph.rrd:Spudmax:AVERAGE

        LINE2:Count#FF0000:Count

        LINE2:Avg#00FF00:Avg

        LINE2:Max#0000FF:Max

        COMMENT:\n

        GPRINT:Count:LAST: %6.0lf%s (cur)

        GPRINT:Count:MAX: %6.0lf%s (max)

        GPRINT:Count:Min: %6.0lf%s (min)

        GPRINT:Count:AVERAGE: %6.1lf%s (avg) \n

        GPRINT:Avg:LAST: %6.3lf%s (cur)

        GPRINT:Avg:MAX: %6.3lf%s (max)

        GPRINT:Avg:Min: %6.3lf%s (min)

        GPRINT:Avg:AVERAGE: %6.3lf%s (avg) \n

        GPRINT:Max:LAST: %6.0lf%s (cur)

        GPRINT:Max:MAX: %6.0lf%s (max)

        GPRINT:Max:Min: %6.0lf%s (min)

        GPRINT:SpudMax:AVERAGE: %6.1lf%s (avg) \n

 
Can anyone help?

 
Jeremy Ruffer

 
This message, and any associated files, are intended only for the use of
the message recipient and may contain information that is confidential,
subject to copyright or constitute a trade secret. If you are not the
message recipient you are hereby notified that any dissemination,
copying or distribution of this message, or files associated with this
message, is strictly prohibited. If you have received this message in
error, please notify the sender immediately by replying to the message
and then deleting it from your computer. HSS Hire Service Group Limited
may monitor email traffic data and also the content of email for the
purposes of security and staff training. Any views or opinions presented
are solely those of user-020a2aa3cf14@xymon.invalid and do not necessarily represent
those of the company.
 
HSS Hire Service Group is a limited company registered in England and
Wales. Registered number: 2103564.
Registered office: 25 Willow Lane, Mitcham, Surrey, CR4 4TS, United
Kingdom.
list Sean Clark · Thu, 14 Feb 2008 10:21:53 -0500 ·
i am trying to run a trimhistory to remove all files older than 6 months
i have hobbit running in "compatible mode" - meaning i have status logs and
histlogs

the command i run is:

/sw/bbserver/server/bin/trimhistory
--env=/sw/bbserver/server/etc/hobbitserver.cfg --drop --droplogs
--cutoff=1187223058

the result is a seg fault, listed below:


Program received signal SIGSEGV, Segmentation fault.
0xfee03634 in t_splay () from /lib/libc.so.1
(gdb) where
#0  0xfee03634 in t_splay () from /lib/libc.so.1
#1  0xfee03512 in t_delete () from /lib/libc.so.1
#2  0xfee02f72 in realloc () from /lib/libc.so.1
#3  0x0804d7e5 in xrealloc (ptr=0x812b970, size=57344) at memory.c:149
#4  0x0804b5f8 in errprintf (fmt=0x80533bc "Orphaned service-history file %s
- no host\n") at errormsg.c:66
#5  0x0804aa56 in main (argc=6, argv=0x8047a80) at trimhistory.c:452


any ideas on where i can go from here to fixing this?


-Sean