<!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 bgcolor="#ffffff" text="#000000">
    <br>
    <span style="color: rgb(31, 73, 125);" lang="EN-US"><o:p> </o:p></span>
    <blockquote cite="mid:003a01cbe4a6$2f5eb0f0$8e1c12d0$@ca"
      type="cite">
      <div class="Section1">
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0cm 0cm;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  "Tahoma","sans-serif";"
                  lang="EN-US">From:</span></b><span style="font-size:
                10pt; font-family:
                "Tahoma","sans-serif";" lang="EN-US">
                <a class="moz-txt-link-abbreviated" href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>
                [<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>] <b>On Behalf Of </b>Raymond,
                David<br>
                <b>Sent:</b> 16 mars 2011 13:48<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
                <b>Subject:</b> [Xymon] hosts.cfg and alerts.cfg<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I use different way to
            manage my hosts.cfg
            file. I do include custom hosts file like this :<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#Site<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include ./site/hosts.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">In my “site” folder, I
            get more hosts
            again, and I set those like this :<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include
            ./site/hosts-srv.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include ./site
            /hosts-sap.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include ./site
            /hosts-usine.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include ./site
            /hosts-net.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include ./site
            /hosts-ups.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">include ./site
            /hosts-lab.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The issue is when I want
            to check in my
            alerts.cfg for page or subpage, all features are set in all
            hostname.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">How can I fix this ?<o:p></o:p></span></p>
        <br>
      </div>
    </blockquote>
    Are you using the 'page' or 'subpage' tags in any of the files
    listed? 'include' is just a process of replacing the line which has
    the 'include [filename]' tag with the contents of the file
    specified. If none of the files contain a 'page' or 'subpage' tag,
    then all the hosts will appear at the top level in the host listing
    and will not have an associated page or subpage for use in
    alerts.cfg.<br>
    <br>
    See 'man hosts.cfg'<br>
    <br>
    You can list info about your hosts from the xymon server:<br>
    <br>
    xymon <xymonhost> "xymondboard test=info
    fields=hostname,XMH_PAGEPATH,XMH_PAGEINDEX,XMH_CLASS"<br>
    <br>
    See 'man xymon-xmh'<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>