<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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (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:"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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
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;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Cambria","serif";
        color:#365F91;
        font-weight:bold;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.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]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The hostname is set in /etc/sysconfig/network and/or /etc/sysconfig/network-scripts/eth0-ifcfg, generally for
 RHEL 5 <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xymon
 [mailto:xymon-bounces@xymon.com] <b><span style="font-weight:bold">On Behalf Of </span>
</b>Phil Crooker<br>
<b><span style="font-weight:bold">Sent:</span></b> Monday, February 05, 2018 12:22 AM<br>
<b><span style="font-weight:bold">To:</span></b> Ralph Mitchell<br>
<b><span style="font-weight:bold">Cc:</span></b> xymon@xymon.com<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Xymon] xymon client host name not including domain name in systemd scripts<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">No, that made no difference - "10.11.12.13   FQDN    hostname" is the default order <span style="background:white">in SuSE</span>, anyway...
 Interesting.<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">cheers, P<o:p></o:p></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<div id="Signature">
<div name="divtagdefaultwrapper">
<div style="margin-top:14.0pt;margin-bottom:10.0pt">
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" color="black" face="Calibri"><span lang="EN-AU" style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">
<hr size="2" width="98%" noshade="" style="color:#212121" align="center">
</span></font></div>
<p class="MsoNormal"><font size="3" color="black" face="Calibri"><span lang="EN-AU" style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
</div>
</div>
</div>
<div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black;font-weight:bold">From:</span></font></b><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">
 Ralph Mitchell <<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>><br>
<b><span style="font-weight:bold">Sent:</span></b> Saturday, 3 February 2018 3:24 AM<br>
<b><span style="font-weight:bold">To:</span></b> Phil Crooker<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:xymon@xymon.com">
xymon@xymon.com</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Xymon] xymon client host name not including domain name in systemd scripts</span></font><font color="#212121" face="Calibri"><span style="font-family:"Calibri","sans-serif";color:#212121">
<o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121"> <o:p></o:p></span></font></p>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">FYI, my experience with RHEL5 was, if the /etc/hosts file had the short-form host
 name first, that's what the Xymon client used.  Switching it around to put the FQDN name first fixed it.  Didn't need to modify the Xymon script at all.  Kinda ridiculous, I know...<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">i.e.  This checked in to Xymon as "server"<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">     10.12.34.56    server  
<a href="http://server.domain.com">server.domain.com</a><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">And this checked in as "<a href="http://server.domain.com">server.domain.com</a>"<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">     10.12.34.56  
<a href="http://server.domain.com">server.domain.com</a>   server<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">Dunno if the same thing happens in SuSE, though.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">Ralph Mitchell<br>
<br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121">On Fri, Feb 2, 2018 at 2:01 AM, Phil Crooker <<a href="mailto:Phil.Crooker@orix.com.au" target="_blank">Phil.Crooker@orix.com.au</a>>
 wrote:<o:p></o:p></span></font></p>
<div>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">I've this issue with SUSE linux - SUSE just returns the plain hostname  without the domain when it uses uname
 -n -- the xymon client then doesn't match the FQDN in the xymon hosts.cfg file, the entry goes purple and the client ends up in the ghost report. I'm compiling my own client and inserting the xymonlaunch.service file in /etc/systemd/system, etc -- somehow
 it doesn't send the correct hostname. I tried adding CLIENTNAME=<a href="http://blah.domain.com" target="_blank">blah.domain.com</a> in xymonlaunch to no effect (also put it in the xymonclient config file, still no good). If I manually run /bin/hostname with
 the FQDN, that works, but is lost on the next reboot. And yes I ensured the FQDN is in /etc/hostname, etc... I do not want to have to put in a "CLIENT:whatever" statement in hosts.cfg for every host with a client, which works but is inelegant to me.<o:p></o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">Looking at the old runclient.sh script that comes with the client (and is not used with systemd), the MACHINEDOTS
 variable is set before launch. In the good ol SYS5 init.d days, I used to insert MACHINEDOTS=`hostname -f` in the runclient.sh script, which worked. So, I found if you run: systemctl edit xymonlaunch.service and add the following, it works:<o:p></o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">    [Service]<o:p></o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">    Environment="MACHINEDOTS=<a href="http://whatever.domain.com" target="_blank">whatever.domain.com</a>"<o:p></o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">This creates a /etc/systemd/system/xymonlaunch.service.d/override.conf file and all is well. Unfortunately
 it doesn't work with `hostname -f`. There is a warning that if there is no override.conf in whatever.service.d/ the service won't run. That isn't true with SUSE SLES 12, it works fine w/o it (less the correct name, of course), but YMMV...<o:p></o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<p style="background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black">HTH Someone, Phil<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></font></p>
<p style="background:white"><b><font size="2" color="#666666" face="Verdana"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#666666;font-weight:bold">Disclaimer</span></font></b><font size="2" color="#666666" face="Verdana"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#666666"><o:p></o:p></span></font></p>
<p style="background:white"><font size="1" color="#666666" face="Verdana"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#666666">The information contained in this communication from the sender is confidential. It is intended solely for
 use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.<br>
<br>
This email has been scanned for viruses and malware, and may have been automatically archived by
<b><span style="font-weight:bold">Mimecast Ltd</span></b>, an innovator in Software as a Service (SaaS) for business. Providing a
<b><span style="font-weight:bold">safer</span></b> and <b><span style="font-weight:bold">more useful</span></b> place for your human generated data. Specializing in; Security, archiving and compliance. To find out more
<a href="http://www.mimecast.com/products/" target="_blank">Click Here</a>.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121"><br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" color="#212121" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri","sans-serif";color:#212121"><o:p> </o:p></span></font></p>
</div>
</div>
</div>
<table class="MsoNormalTable" border="0" cellpadding="0" width="650" style="width:487.5pt">
<tbody>
<tr>
<td width="185" valign="top" style="width:138.75pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><img border="0" width="151" id="_x0000_i1026" src="http://web.orix.com.au/_resource/email/email-banner.jpg?rnd=201703091"><o:p></o:p></span></font></p>
</td>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<div>
<h1 style="margin:0in;margin-bottom:.0001pt"><b><font size="1" color="#949494" face="Arial"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#949494">Please consider the environment before printing this e-mail<o:p></o:p></span></font></b></h1>
<p style="text-align:justify"><font size="1" color="#949494" face="Arial"><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#949494">This message from ORIX Australia may contain confidential and/or privileged information. If you are not the
 intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system.
 Please inform the sender if you do not wish to receive further communications by email.<o:p></o:p></span></font></p>
<p><font size="1" color="#949494" face="Arial"><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#949494">ORIX has a Privacy Policy which outlines what kinds of personal information we collect and hold, how we may collect and handle it, and
 your rights regarding personal information. Please let us know if you would like a copy. The Privacy Policy and a Collection Statement are also available on our
<a href="http://www.orix.com.au" target="_blank"><font color="#949494"><span style="color:#949494">website</span></font></a>.<o:p></o:p></span></font></p>
<p><font size="1" color="#949494" face="Arial"><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#949494">We do not accept liability for any loss or damage caused by any computer viruses or defects that may be transmitted with this message.
 We recommend you carry out your own checks for viruses or defects.<o:p></o:p></span></font></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
</div>
<center>This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately
 notify the sender by reply e-mail and destroy all copies of the communication and any attachments.</center>
</body>
</html>