<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Taylor,
    <blockquote
cite="mid:2CB6F3BD6F4BE04EA34D80E087163D35E6073BB7@tbmail01.tradebot.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hi
            all, we manage several hundred hosts, and we’ve noticed when
            doing maintenance that requires shutdown/reboot  that
            occasionally (seldom) on restart one or more of the memory
            modules in a given host isn’t detected.  Sometimes it
            requires reseating the memory, sometimes just a reboot,
            sometimes the memory is bad.  Thus we have a need to write a
            script that will check the amount of memory each host sees,
            and send an email/alert if its below a given amount.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">So I
            thought why not make use of xymon and the memory test you
            get for free.  A large percentage of our hosts >60% have
            exactly 6 GB of memory, but a large percentage does not.  So
            I was wondering if there is a way to make use of the
            hobbit-clients.cfg script where I could set alert thresholds
            for a new external script.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
      </div>
    </blockquote>
    The MEMORY thresholds are percentage only rather than absolute
    amounts.<br>
    <blockquote
cite="mid:2CB6F3BD6F4BE04EA34D80E087163D35E6073BB7@tbmail01.tradebot.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">The
            default value for any host would be alert if less than 6.0
            GB of memory is detected, but I could set custom alerts for
            given hosts that have more or less than this amount.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I
            don’t believe its possible to use hobbit-client.cfg file in
            this way, but wanted to check with the list and hope I’m
            wrong.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>
              <br>
            </o:p></span></p>
      </div>
    </blockquote>
    You could easily do this by checking the incoming client reports
    using check-client:<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://xymonton.org/doku.php/monitors:check-client">http://xymonton.org/doku.php/monitors:check-client</a><br>
    <br>
    The memCheck in that test was written for incorrectly configured ESX
    service consoles by checking the [free] section. Easily enough
    modified to check [memory] section's "phys" line.<br>
    <br>
    David.<br>
    <pre class="moz-signature" cols="72">-- 
David Baldwin - IT Unit
Australian Sports Commission          <a class="moz-txt-link-abbreviated" href="http://www.ausport.gov.au">www.ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT 2617
</pre>
  <br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information.  If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful.  If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>