<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">A valid option for hosts.cfg is to use a directory tag which includes all files in that directory and sub directories. 
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It works as far as the webpage is concerned and monitoring in general – but, when it comes to xymond_alert it is not happy that the client is not in the hosts.cfg file itself.<o:p></o:p></p>
<p class="MsoNormal">xymon@tc3mon:~/xymon-4.3.30/xymond$ xymond_alert --test client test<o:p></o:p></p>
<p class="MsoNormal">2019-12-04 14:44:50.906606 Host not found in hosts.cfg - assuming it is on the top page<o:p></o:p></p>
<p class="MsoNormal">00095241 2019-12-04 14:44:50 send_alert client:test state Paging<o:p></o:p></p>
<p class="MsoNormal">Checking criteria for host ‘client', which is not yet defined; some alerts may not immediately fire<o:p></o:p></p>
<p class="MsoNormal">00095241 2019-12-04 14:44:50 Matching host:service:dgroup:page ‘client:test:(NULL):' against rule line 11<o:p></o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal">00095241 2019-12-04 14:44:50 *** Match with 'SERVICE=test COLOR=red EXPAGE=%.*PAGE1' ***<o:p></o:p></p>
<p class="MsoNormal">00095241 2019-12-04 14:44:50 Script alert with command '/home/xymon/server/ext/pg/exalert_SSLHEADERS' and recipient headers_alert<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It does eventually match the rule for the service but the errors generated end up polluting xymonlaunch.log and it grows at a crazy pace.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In xymond_alert.c – the client is only searched for in the hosts.cfg file and does not include any valid include directories or files.<o:p></o:p></p>
<p class="MsoNormal">Xymond_alert.c:<o:p></o:p></p>
<p class="MsoNormal">                        load_hostnames(xgetenv("HOSTSCFG"), NULL, get_fqdn());<o:p></o:p></p>
<p class="MsoNormal">                        hinfo = hostinfo(testhost);<o:p></o:p></p>
<p class="MsoNormal">                        if (hinfo) {<o:p></o:p></p>
<p class="MsoNormal">                                testpage = strdup(xmh_item(hinfo, XMH_ALLPAGEPATHS));<o:p></o:p></p>
<p class="MsoNormal">                        }<o:p></o:p></p>
<p class="MsoNormal">                        else {<o:p></o:p></p>
<p class="MsoNormal">                                errprintf("Host not found in hosts.cfg - assuming it is on the top page\n");<o:p></o:p></p>
<p class="MsoNormal">                                testpage = "";<o:p></o:p></p>
<p class="MsoNormal">                        }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any chance of getting this fixed in the next version?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">Thanks,
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">John
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#1F497D">Upcoming PTO:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">_____________________________________________________________________
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">John Rothlisberger<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">IT Strategy, Infrastructure & Security - Technology Growth Platform<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">TGP for Business Process Outsourcing<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">Accenture<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">312.693.3136 office<b><o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#44546A">_____________________________________________________________________
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement
 at https://www.accenture.com/us-en/privacy-policy. <br>
______________________________________________________________________________________<br>
<br>
www.accenture.com<br>
</font>
</body>
</html>