Xymon Mailing List Archive search

Custom Graph not displaying.

list Vernon Everett
Wed, 18 May 2011 09:29:37 +0800
Message-Id: <BANLkTi=user-33755dbedc18@xymon.invalid>

In your custom script at client side, you are calling the bb
application to send information to the server.
Look for something like this
$BB $BBDISP "status $MACHINE.$TEST $COLOR `$DATE` $ERRMESS `$CAT
$BBTMP/$MACHINE.$TEST`"
or
$BB $BBDISP "status $MACHINE.$TEST $COLOR $(cat $BBTEMP/myresults)"
somewhere at the end of your script.

This is how your data gets to the server.
Now somewhere in the file you are sending - which will be different in
your script, there is some HTML code, probably to make the screen
display look funky, and a couple of lines with your values, as you see
them on screen.
However, you need to make sure that the values you want to graph are
on their own line. This is vital.
It will never work otherwise.

Hope that helps.

Regards
     Vernon


On Tue, May 17, 2011 at 11:40 PM, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid> wrote:
Hi Vernon,


I tried with following changes in "hobbitserver.cfg" file with entry like:

NCV_Slabinfo="*:GAUGE"
But it is not work out.


In your previous mail:

The data being sent must have absolutely no other text on the line, except

description=value

or

description : value


Could you please let me know where I need to check(file name, etc.) for
description=value.


With Thanks & Regards,

Jayanta.


On Mon, May 16, 2011 at 9:22 AM, Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
wrote:
Do you also have a hobbitserver.cfg entry
NCV_Slabinfo="*:GAUGE"
You will probably need it to make things work.

Regards
    Vernon

On Sun, May 15, 2011 at 9:37 PM, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid>
wrote:
Hi All,


I am unable to display custom graph into xymon page. Only following
figure(graph-tag) shown in inside trends column and inside
xymon KPI(custom)
page:

I am using “xymon-4.2.3”.

I am trying to display custom graph.

(1) I have “SlabInfo.sh” file which display following two values into
xymon
page:

SLAB Info:
inode_cache : 831040

dentry_cache : 20268144


(2) In "hobbitserver.cfg" file I added(red marked) at the end:

TEST2RRD="cpu=la,disk,inode . . . . . . . . . . . . . .
,temp=devmon,SlabInfo=ncv"

GRAPHS="la,disk,inode, . . . . . . . . . . . . . . . . . ,temp,SlabInfo"


(3) In "hobbitgraph.cfg" file I added following lines:

[SlabInfo]

        TITLE Slab inf

        YAXIS Bytes

        DEF:inode=SlabInfo.rrd:inode_cache:AVERAGE

        DEF:dentry=SlabInfo.rrd:dentry_cache:AVERAGE

        LINE2:inode#00CCCC:Inode cache

        LINE2:dentry#FF0000:Dentry cache

        COMMENT:\n

        GPRINT:inode:LAST:Inode cache \: %5.1lf%s (cur)

        GPRINT:inode:MAX: \: %5.1lf%s (max)

        GPRINT:inode:MIN: \: %5.1lf%s (min)

        GPRINT:inode:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:dentry:LAST:Dentry cache\: %5.1lf%s (cur)

        GPRINT:dentry:MAX: \: %5.1lf%s (max)

        GPRINT:dentry:MIN: \: %5.1lf%s (min)

        GPRINT:dentry:AVERAGE: \: %5.1lf%s (avg)\n


(4) Rrd dump output is:

[root at t1vl001 rrdtool-1.0.50]# rrdtool dump
/home/xymon/data/rrd/t1vl001/SlabInfo.rrd

<!-- Round Robin Database Dump -->

<rrd>

        <version> 0001 </version>

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

        <lastupdate> 1305464646 </lastupdate> <!-- 2011-05-15 17:34:06
IRDT
-->


        <ds>

                <name> fontsize </name>

                <type> DERIVE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>


                <!-- PDP Status -->

                <last_ds> 2 </last_ds>

                <value> 0.0000000000e+00 </value>

                <unknown_sec> 246 </unknown_sec>

        </ds>


        <ds>

                <name> dentrycache </name>

                <type> DERIVE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>


                <!-- PDP Status -->

                <last_ds> 20237040 </last_ds>

                <value> 0.0000000000e+00 </value>

                <unknown_sec> 246 </unknown_sec>

        </ds>


<!-- Round Robin Archives -->

        <rra>

                <cf> AVERAGE </cf>

-          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - -

-          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - -


Kindly help me how can I display full graph in our xymon page.


With Thanks & Regards,

Jayanta.