<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: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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {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;}
/* List Definitions */
@list l0
        {mso-list-id:633559382;
        mso-list-template-ids:-280486032;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-text:%1;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:33.0pt;
        text-indent:-33.0pt;}
@list l0:level2
        {mso-level-start-at:0;
        mso-level-text:"%1\.%2";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:33.0pt;
        text-indent:-33.0pt;}
@list l0:level3
        {mso-level-start-at:0;
        mso-level-text:"%1\.%2\.%3\.0";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l0:level4
        {mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l0:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.75in;}
@list l0:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.75in;}
@list l0:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
@list l0:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
@list l0:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.25in;
        text-indent:-1.25in;}
@list l1
        {mso-list-id:1854765331;
        mso-list-template-ids:790016022;}
@list l1:level1
        {mso-level-start-at:0;
        mso-level-text:%1;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:33.0pt;
        text-indent:-33.0pt;}
@list l1:level2
        {mso-level-start-at:0;
        mso-level-text:"%1\.%2";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:33.0pt;
        text-indent:-33.0pt;}
@list l1:level3
        {mso-level-start-at:0;
        mso-level-text:"%1\.%2\.%3\.0";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l1:level4
        {mso-level-text:"%1\.%2\.%3\.%4";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.5in;
        text-indent:-.5in;}
@list l1:level5
        {mso-level-text:"%1\.%2\.%3\.%4\.%5";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.75in;}
@list l1:level6
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.75in;}
@list l1:level7
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
@list l1:level8
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.0in;
        text-indent:-1.0in;}
@list l1:level9
        {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:1.25in;
        text-indent:-1.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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"><span style="color:#1F497D">As a followup, the other problem with the .default line is that it ignores any custom tags that I have on the hosts.  I have custom tags on many hosts that I use with custom tests and xymongrep, and the custom
 tags on .default lines are never matched.  <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p id="c1-id-6" style="FONT-FAMILY: Arial"><span id="c1-id-7" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal"><strong id="c1-id-39"><span id="c1-id-41" style="FONT-SIZE: 9pt">Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="c1-id-8">
</span><span id="c1-id-9" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal">One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com</span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b>From:</b> Scot Kreienkamp <br>
<b>Sent:</b> Wednesday, May 16, 2018 1:54 PM<br>
<b>To:</b> 'xymon >> xymon@xymon.com' <xymon@xymon.com><br>
<b>Subject:</b> Variables in config files<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Hi everyone,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Is there a way to define a line or part of a line as a variable in the config files, then use that variable in other places, other than the .default line?  I know it’s possible in alerts, but how about hosts.cfg
 and hosts.d/*, or analysis.cfg and analysis.d/*?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">For example, like this:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$DOWNTIME=’DOWNTIME=*:6:2200:2359:Scheduled maintenance,*:0:0000:0400:Scheduled maintenance’<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in;text-indent:-.5in;mso-list:l0 level3 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">0.0.0.0<span style="font:7.0pt "Times New Roman"">  
</span></span><![endif]>test1.lzb.hq # $DOWNTIME<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in;text-indent:-.5in;mso-list:l1 level3 lfo4">
<![if !supportLists]><span style="mso-list:Ignore">0.0.0.0<span style="font:7.0pt "Times New Roman"">  
</span></span><![endif]>test2.lzb.hq # $DOWNTIME<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:69.0pt"><o:p> </o:p></p>
<p class="MsoListParagraph">Yes, I realize I could use the .default line, but I can’t set that once then have that available everywhere.  If I change it later in the config then it won’t be available to the rest of the config yet to come.  For the variables
 I’d like to be able to set the variable and have it available throughout the entire config.  That way I only have to change it in one place.  Right now I have the .default line duplicated many times in my config, and if I have to make a change to them all
 it starts to become a lot of work.  <o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph">Thanks!<o:p></o:p></p>
<p style="margin-left:.5in;line-height:10.5pt" id="c1-id-6"><strong id="c1-id-7"><span style="font-size:9.0pt;font-family:"Arial Narrow",sans-serif">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><span style="font-family:"Arial Narrow",sans-serif"><br id="c1-id-9">
</span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif">One La-Z-Boy Drive | Monroe, Michigan 48162  |</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:10.0pt;font-family:Wingdings;color:black">(</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif"> 734-384-6403
 | </span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">| </span>
<span style="font-size:9.0pt;font-family:Wingdings;color:black">)</span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:9.0pt;font-family:"Calibri",sans-serif">7349151444</span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"> </span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif">| </span><span style="font-size:10.0pt;font-family:Wingdings;color:black">*</span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif">  </span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"><a href="mailto:%7BE-mail%7D" id="c1-id-34">Scot.Kreienkamp@la-z-boy.com</a><br id="c1-id-35">
</span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="http://www.la-z-boy.com/" id="c1-id-37">www</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="http://www.la-z-boy.com/" id="c1-id-40">.la-z-boy.com</a>
 | <a href="https://www.facebook.com/lazboy" id="c1-id-41">facebook.</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="https://www.facebook.com/lazboy" id="c1-id-43">com</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"><a href="https://www.facebook.com/lazboy" id="c1-id-46">/</a></span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"><a href="http://facebook.com/lazboy" id="c1-id-48">lazboy</a></span><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif"> | </span><span style="font-size:8.0pt;font-family:"Calibri",sans-serif"><a href="https://twitter.com/lazboy" id="c1-id-51">twitter.com/lazboy</a>
 | <a href="https://www.youtube.com/user/lazboy" id="c1-id-52">youtube.com/</a><a href="https://www.youtube.com/user/lazboy" id="c1-id-54">lazboy</a><br id="c1-id-55">
<br id="c1-id-56">
</span><span style="font-family:"Arial Narrow",sans-serif"><img border="0" width="192" height="45" id="c1-id-57" src="cid:image001.jpg@01D3ED20.1BE22C20"> 
<o:p></o:p></span></p>
<p style="margin-left:.5in;mso-line-height-alt:10.5pt" id="c1-id-58"><span style="font-family:"Arial Narrow",sans-serif"> <o:p></o:p></span></p>
<p style="margin-left:.5in;line-height:10.5pt" id="c1-id-58"><span style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif">This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information
 which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have
 received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.</span><span style="font-family:"Arial Narrow",sans-serif"><o:p></o:p></span></p>
</div>
</body>
</html>