<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Vernon, just my thoughts as well.<br>
<br>
Haven't you discovered Stef Coens way of populating trends?<br>
instead of doing:<br>
$BB $BBDISP "data $MACHINE.diskstat `cat datafile`"<br>
do<br>
$BB $BBDISP "data $MACHINE.trends `cat datafile`"<br>
<br>
Populate the datafile like this:<br>
   echo "[iostatrd.${Disk[${disk_no}]}.rrd]" >> $datafile<br>
   echo "DS:Kb_read:DERIVE:600:0:U $KREAD" >> $datafile<br>
Your hobbitgraph.cfg entry would in this case be "iostatrd", your rrd
file would be iostatrd.<disk>.rrd<br>
<br>
then you just put the tests in GRAPHS and add the stuff in
hobbitgraph.cfg<br>
No need to do the ncv stuff.<br>
I think this is the way all builtin functions send data to the trends
page.<br>
There is a reference thread in the archive where Stef and Henrik
discusses this and Henrik coded something for 4.2.0.<br>
<br>
Now that is explained, to go to the thread question.<br>
Maybe its easier to make it work with several trends pages like this:<br>
$BB $BBDISP "data $MACHINE.trends,diskio `cat datafile`"<br>
Where diskio would be the "new" trends page.<br>
<br>
- Roland<br>
<br>
ps.<br>
Vernon, agree ksh is best for shell scripts, bash is best for your
shell, csh should be forbidden...<br>
I install ksh an all my Linux boxes, just to run scripts.<br>
<br>
<br>
On 10/09/10 12:19 PM, Vernon Everett wrote:
<blockquote
 cite="mid:AANLkTincj9fBfp_VvFeOzyvnibZUc0=5JX=hQw6V=m_V@mail.gmail.com"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
Hi all<br>
  <br>
With the addition of diskstat/iostat info (along with zonestat, mpstat,
a few other custom graphs, and the standard Xymon graphs), the trends
column is really starting to look a little full. Cluttered might even
be a better word. <br>
  <br>
It would be nice to have a diskstat column for my server with all the
diskstat info on one page, but the way it works right now, we can't
have multiple graphs on a test page, particularly when these graphs are
of different scales. (counters, percentage, kb etc)<br>
  <br>
So, if that isn't possible, how difficult would it be to add a feature
to create a "user defined trends" page.<br>
I know I can reshape my existing trends page, but cluttered as it is, I
actually want all the graphs, and don't want tot take any out.<br>
  <br>
What would be nice is if I could define a page, let's call it diskio,
and then define that to contain all the diskstat graphs, and then take
them out of trends.<br>
Likewise, I could do the same with mpstat and zonestat.<br>
This will give me at least 4 "trends" columns, and like the existing
trends page, it would contain nothing but graphs.<br>
But each trend column would be less cluttered, and contain more
specific information, making it easier to find and comprehend.<br>
  <br>
How difficult would it be for the developer types to add this as a
feature?<br>
Not sure how the underlying code looks, but from what I see, in the
config, we have <br>
  <span style="font-family: courier new,monospace;">TRENDSCOLUMN="trends"</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">GRAPHS="heaps,of,graphs,defined,here"</span><br
 style="font-family: courier new,monospace;">
Everything in <span style="font-family: courier new,monospace;">$GRAPHS</span>
ends up under the trends column.<br>
  <br>
How difficult would this be?<br>
  <span style="font-family: courier new,monospace;">TRENDSCOLUMN="trends,
diskstat, mpstat, zonestat, network"  # default plus 4 new columns.</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">GRAPHS="heaps,of,graphs,defined,here"             
# Default stuff that appears under first item in $TRENDSCOLUMN</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">GRAPHS_diskstat="diskstat-reads::7,etc.etc."      
  </span><span style="font-family: courier new,monospace;"># Stuff that
will appear under a column labeled "diskstat"</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">GRAPHS_mpstat="mpstat,graphs,defined,here"        
# Stuff that will appear under a column labeled "mpstat"</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">GRAPHS_zonestat="zone,related,graphs,defined,here"
# Stuff that will appear under a column labeled "zonestat"</span><br
 style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">GRAPHS_network="network,traffic,and,tc,stuff"     
# Stuff that will appear under a column labeled "network"<br>
  <br>
  </span>As I typed that, I noticed the word "graphs" appeared in
multiple definitions. Probably be a bonus feature :-)<br>
  <br>
Regards<br>
     Vernon<br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
</blockquote>
</body>
</html>