<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 30/07/11 6:21 AM, Prakash, Arjun wrote:
    <blockquote
cite="mid:5C82CAB24E2B3542BBD24030A69D55416DC568@nasanexd01e.na.qualcomm.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-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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">Hi ,<o:p></o:p></p>
        <p class="MsoNormal">A newbie question: <o:p></o:p></p>
        <p class="MsoNormal">I have hosts categorized in pages (in
          hosts.cfg) and want the email alerts to show the page name in
          the subject. Can this be done?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <br>
      </div>
    </blockquote>
    <br>
    It can be done, but not easily.<br>
    <br>
    You need to use a script to send your e-mail alert. There are some
    on xymonton - <a class="moz-txt-link-freetext" href="http://xymonton.org/alerts">http://xymonton.org/alerts</a><br>
    <br>
    As part of your script you will need to get the page name. It is
    available via xymondboard/hobbitdboard command using the XMH/BBH
    fields:<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://www.xymon.com/xymon/help/manpages/man5/xymon-xmh.5.html">http://www.xymon.com/xymon/help/manpages/man5/xymon-xmh.5.html</a><br>
    <br>
    Depending on your xymon version (4.3.0 or later/old version syntax
    below - substitute xymonhost for your server name - or use localhost
    if running on the xymon server):<br>
    <br>
    xymon xymonhost "xymondboard host=$BBHOSTNAME test=info
    fields=XMH_PAGENAME"<br>
    bb xymonhost "hobbitdboard host=$BBHOSTNAME test=info
    fields=BBH_PAGENAME"<br>
    <br>
    David.<br>
    <pre class="moz-signature" cols="72">-- 
David Baldwin - Assistant Director, Infrastructure (acting)
Information and Communication Technology Services
Australian Sports Commission          <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://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>