Custom Graph not displaying.
list Jayanta Kundu
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.
list Vernon Everett
It looks like you have some HTTP code on the same lines as the data
you are trying to graph.
Look at your rrd dump. The data column name is fontsize.
The data being sent must have absolutely no other text on the line, except
description=value
or
description : value
Hope it helps.
Cheers
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.
list Vernon Everett
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.
list Jayanta Kundu
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:06IRDT--> <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.
list Vernon Everett
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.
list Bruce White
I noticed that the name of the data element in the rrd dump:
<name> dentrycache </name>
Is not found in your graph definition:
DEF:inode=SlabInfo.rrd:inode_cache:AVERAGE
DEF:dentry=SlabInfo.rrd:dentry_cache:AVERAGE
If the graph can't find the data element, it won't display a data element.
......Bruce
<type> DERIVE </type>
Bruce White
Senior Enterprise Systems Engineer | Phone: X-XXX-XXX-XXXX | Fax: XXX-XXX-XXXX | user-58f975e8bf9d@xymon.invalid | http://www.fellowes.com/
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
▸
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Vernon Everett
Sent: Tuesday, May 17, 2011 8:30 PM
To: Jayanta Kundu
Cc: xymon at xymon.com
Subject: Re: [Xymon] Custom Graph not displaying.
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.