[Xymon] custom graphs problem
jef.jagers at thomsonreuters.com
jef.jagers at thomsonreuters.com
Thu Mar 29 11:29:12 CEST 2012
Hi Chris,
Thanks for the tips.
Finally got it working.
This is the graphs def that worked.
[ThreadCount]
TITLE ThreadsCount Info
YAXIS Open Threads
DEF:threadcount=ThreadCount.rrd:openthreads:AVERAGE
LINE2:threadcount#0000FF:open threads
COMMENT:\n
GPRINT:threadcount:LAST:open threads %5.1lf%s (cur) \:
GPRINT:threadcount:MAX: %5.1lf%s (max) \:
GPRINT:threadcount:MIN: %5.1lf%s (min) \:
GPRINT:threadcount:AVERAGE: %5.1lf%s (avg)\n
Regards,
Jef Jagers
From: Chris.Morris at rwe.com [mailto:Chris.Morris at rwe.com]
Sent: woensdag 28 maart 2012 11:25
To: Jagers, Jef (TR Technology)
Cc: xymon at xymon.com
Subject: RE: [Xymon] custom graphs problem
Jef,
The variable name in the GPRINT statements must match the variable name
in the DEF statement.
Regards,
Chris
________________________________
From: jef.jagers at thomsonreuters.com
[mailto:jef.jagers at thomsonreuters.com]
Sent: 28 March 2012 10:08
To: Morris, Chris (SS-IS)
Cc: xymon at xymon.com
Subject: RE: [Xymon] custom graphs problem
Hi Chris,
Thank you for you reply.
Changed it to
[ThreadCount]
TITLE ThreadsCount Info
YAXIS Threads
DEF:threadcount=ThreadCount.rrd:openthreads:AVERAGE
LINE2:threadcount#0000FF:openthreads
COMMENT:\n
GPRINT:openthreads:LAST:openthreads %5.1lf%s (cur) \:
GPRINT:openthreads:MAX: %5.1lf%s (max) \:
GPRINT:openthreads:MIN: %5.1lf%s (min) \:
GPRINT:openthreads:AVERAGE: %5.1lf%s (avg)\n
But still no graphs are shown.
I based the creation of the graph on the example that is shown
on following site:
http://www.xymon.com/xymon/help/howtograph.html
Met vriendelijke groeten,
Jef Jagers
Systems Engineer
Thomson CompuMark
Thomson Reuters
From: Chris.Morris at rwe.com [mailto:Chris.Morris at rwe.com]
Sent: maandag 26 maart 2012 16:56
To: Jagers, Jef (TR Technology)
Cc: xymon at xymon.com
Subject: RE: [Xymon] custom graphs problem
Jef,
Look at your garaph definition :-
you have a space in LINE2 > open threads
and you have defined (DEF) threadcount but are trying to graph
"open".
HTH,
Chris
________________________________
From: xymon-bounces at xymon.com
[mailto:xymon-bounces at xymon.com] On Behalf Of
jef.jagers at thomsonreuters.com
Sent: 26 March 2012 15:18
To: xymon at xymon.com
Subject: [Xymon] custom graphs problem
Hi All,
After half a day searching for the problem, why my
custom graph for my test isn't showing properly in xymon, I'm reaching
out to you guys.
I have googled quite a bit but none of the explanations
and/or suggestions (which I all tried) are working for me.
It is probably something stupid I'm missing or doing
wrong but I'm not able to put my finger on it.
Version: Xymon: 4.3.7
Rrd version: rrdtool-1.2.12-13.2
Problem:
I have a custom scripts, that runs about every 5 min,
that gives following output in xymon: (the open threads line shows as a
separate line in the source html)
The number of open threads can vary from 0-500.
_________________________
Hostname - ThreadCount
Mon Mar 26 15:48:05 CEST 2012
open threads : 41
Status unchanged in 4 hours, 35 minutes
Status message received from xx.xxx.xxx.xxx
__________________________
I added the necessary in xymonserver.cfg and it looks
like this:
_________________________________
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,
<......more.....>,ThreadCount=ncv, <......more.....>,xymond"
NCV_ThreadCount="openthreads:GAUGE"
GRAPHS="la,disk, <......more.....>,ncv,
<......more.....>,ThreadCount"
________________________________
I added the required to graphs.cfg and it looks like
this:
_________________________________
[ThreadCount]
TITLE ThreadsCount Info
YAXIS Threads
DEF:threadcount=ThreadCount.rrd:openthreads:AVERAGE
LINE2:threadcount#0000FF:open threads
COMMENT:\n
GPRINT:open:LAST:open
threads \: %5.1lf%s (cur)
GPRINT:open:MAX: \:
%5.1lf%s (max)
GPRINT:open:MIN: \:
%5.1lf%s (min)
GPRINT:open:AVERAGE: \:
%5.1lf%s (avg)\n
_________________________________
Below is the upper most part of a rrdtool dump of the
rrd file that gets created succefully. (ThreadCount.rrd):
___________________
<!-- Round Robin Database Dump -->
<rrd>
<version> 0003 </version>
<step>
300 </step> <!-- Seconds -->
<lastupdate> 1332770292 </lastupdate> <!-- 2012-03-26 15:58:12 CEST -->
<ds>
<name> openthreads </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 7.8720000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
.....
________________
I tried several stuff to change the output of my script
(open_threads, openthreads), but that changed nothing. (I did restart
xymon numerous times after removing the created rrd files)
Per info: I started with following site:
http://www.xymon.com/xymon/help/howtograph.html
All suggestions are appreciated.
Regards,
Jef
************************************************************************
****
The information contained in this email is intended only for the
use of the intended recipient at the email address to which it has been
addressed. If the reader of this message is not an intended recipient,
you are hereby notified that you have received this document in error
and that any review, dissemination or copying of the message or
associated attachments is strictly prohibited. If you have received this
email in error, please contact the sender by return email or call 01793
877777 and ask for the sender and then delete it immediately from your
system.Please note that neither the RWE Group of Companies nor the
sender accepts any responsibility for viruses and it is your
responsibility to scan attachments (if any).
************************************************************************
*****
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120329/23192aa4/attachment.html>
More information about the Xymon
mailing list