All of lore.kernel.org
 help / color / mirror / Atom feed
From: phil@edgedesign.us (Philip Edelbrock)
To: lm-sensors@vger.kernel.org
Subject: tellerstats shell scripts from lm_sensors
Date: Thu, 19 May 2005 06:25:14 +0000	[thread overview]
Message-ID: <4140888C.4060806@edgedesign.us> (raw)


Thanks! I'll share this with the group.


Phil

Floyd L. Davidson wrote:
> Hello Phil,
> 
> I've been playing with the scripts from tellerstats (version
> 1.9.2, according to the README me file) distributed with
> lm_sensors.  In particular, I have a Linux based system running
> on a Tyan S2462 motherboard with dual AMD Athlon CPUs.
> 
> This Tyan motherboard has both a Winbond W83627HF Super IO chip
> with hardware sensors and a Winbond W83782D sensor chip, hence
> there is a great deal of useful information, and the graphs
> provided by the tellerstats scripts are just the ticket!  I'm
> running gather.sh every 2 minutes, and generating 21 plots with
> tellerstats every 10 minutes.
> 
> The plots are generated in three sizes.  One is a "thumbnail"
> similar to the distribution, but two larger images are created:
> one suitable for viewing at 800x600 resolution and one suitable
> for 1024x768 resolution (I mostly use Opera, at 120%
> magnification, on a 1289x1024 screen, so the images intended for
> a 1024x768 screen are just right.)
> 
> Of course it required significant modifications to the scripts
> to do what I wanted.  You may be interested in some of the
> differences.  An example of the graphs generated can be seen
> at
> 
>     <http://web.newsguy.com/floyd_davidson/stats/index.html
> 
> the modified scripts are at
> 
>     <http://web.newsguy.com/floyd_davidson/code/stats/index.html
> 
> A brief list of changes (both useful and not):
> 
>     gnuplotscript.tmpl
> 
>          This is where most of the significant hacking is.  I
>          spent a lot of time on small details...  how many tic
>          marks are display in each graph, the precise labels,
>          which colors and the size of lines used for each plot,
>          which line is "on top", location of the plot and the
>          range.  There are also lines plotted for maximum,
>          minimum, and normal values.
> 
>          The unfortunate side effect of carefully choosing
>          various colors and line widths is that the script
>          becomes significantly more complex.  However... as
>          an example for others to use it might be fairly
>          good just because it provides more examples of ways
>          to manipulate gnuplot.
> 
>          I *really* like the results!
>          
>     tellerstats.sh
> 
>          Changed the routines using convert and the way an
>          index.html file is generated.  convert is used to
>          generate a thumbnail and two (rather than one) larger
>          images.  A file "index.tmpl" is used to generate
>          "index.html" and "index1.html".  (I used sed rather
>          than perl which you would probably prefer.)  The
>          "thumbnail" images are kept as small as possible
>          to load quickly, but are large enough that when
>          displayed 2 across the graph is useful (the text
>          it pretty blurred).  The index.html file displays
>          well on Netscape running full screen on a 1024x768
>          window.  There is a clickable button to switch to
>          smaller images, displayed by index1.html, which
>          is suitable for Netscape on a 800x600 window.
> 
>     gather.sh
> 
>          Fetches data from multiple locations. I.e., it deals
>          with a motherboard that has two sensor chips.  This
>          may be useful as an example simply because it is
>          easier to delete what is unnecessary than it is to
>          add in what isn't there.
> 
>          I've used the "scale" option to bc to set the
>          precision of the calculated data points.
> 
>          Other modifications are probably *not* useful:
> 
>          I used awk rather than perl in most places... ;-)
> 
>          I used very different calculations to massage the data
>          for graphing.  The significance is that I want
>          indicative graphs...  and *none* of this data can be
>          considered either precision or accurate.  The
>          adjustments provided by Tyan in their example
>          sensors.conf file are probably closer to "accurate",
>          but for my purposes that isn't of much value (since I'm
>          not willing to make the effort to calibrate the
>          results).
> 
> 
> If any of this is useful...  it's all GPL'd and you are welcome
> to it!  And I thank you greatly (along with others who've added
> to it along the way) too.
> 
>      Have a good day,
>      Floyd
> 

             reply	other threads:[~2005-05-19  6:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:25 Philip Edelbrock [this message]
2005-05-19  6:25 ` tellerstats shell scripts from lm_sensors Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Floyd L. Davidson
2005-05-19  6:25 ` Floyd L. Davidson
2005-05-19  6:25 ` Floyd L. Davidson
2005-05-19  6:25 ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4140888C.4060806@edgedesign.us \
    --to=phil@edgedesign.us \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.