<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
        panose-1:2 11 6 9 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";
        color:black;}
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";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;
        mso-fareast-language:EN-AU;}
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";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-AU;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
p.htmlpreformatted, li.htmlpreformatted, div.htmlpreformatted
        {mso-style-name:"html preformatted";
        mso-style-link:"html preformatted char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.htmlpreformattedchar0
        {mso-style-name:"html preformatted char";
        mso-style-priority:99;
        mso-style-link:"html preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle25
        {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";
        color:black;}
.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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Martin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I fought with this a long time due to our default builds having one CLASS setting but that was creating PROC check problems as we transition to different OS versions.  Or where a system has CLASS manually misdefined
 and then corrected later.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Example on our RHEL 6/7 systems.  Directory locations are specific to my setup.  xymon-server is the init name we are using.  There may be a better way around this but I couldn’t find any.  This works well other
 than needing to stop the xymon server service for a few seconds.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">host=’server-to-fix’<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">service xymon-server stop<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">cd /data/xymon/server/tmp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">cp -p xymond.chk xymond.chk.prev       # just in case something goes wrong<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">sed -i "/^@@XYMONDCHK-V1||${host}|/d" ./xymond.chk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">service xymon-server start<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The server you are looking to fix should correct itself in the xymon display within 10 minutes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Larry<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Martin R Wojak (DEDJTR)<br>
<b>Sent:</b> Tuesday, July 10, 2018 3:58 PM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] stale PROC checks not going away<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">Hi Damien, </span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">  </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">Yes, that was the first thing I tried.  Even tried dropping the entire host (“drop HOST”), no joy.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">  </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">Only workaround so far is to change the name of the Host in host.cfg and client.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">  </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">Eg. MGTserver01 is now called MGTserver01.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">  </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">Martin. </span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:windowtext">  </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext;mso-fareast-language:EN-AU">From:</span></b><span style="color:windowtext;mso-fareast-language:EN-AU"> Damien Martins [<a href="mailto:damien@makelofine.org">mailto:damien@makelofine.org</a>]
<br>
<b>Sent:</b> Tuesday, 10 July 2018 7:00 PM<br>
<b>To:</b> Martin R Wojak (DEDJTR) <<a href="mailto:martin.wojak@ecodev.vic.gov.au">martin.wojak@ecodev.vic.gov.au</a>>;
<a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] stale PROC checks not going away </span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">  <o:p></o:p></p>
<p>Hi Martin,<span style="mso-fareast-language:EN-AU"> </span><o:p></o:p></p>
<p>Did you try to drop the test data ? <o:p></o:p></p>
<p>Example: <o:p></o:p></p>
<p>~xymon/client/bin/xymon xymon_server "drop HOST PROCS" <o:p></o:p></p>
<p class="MsoNormal">  <o:p></o:p></p>
<div>
<p class="MsoNormal">Le 10/07/2018 à 08:03, Martin R Wojak (DEDJTR) a écrit : <o:p>
</o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:12.0pt">I’m having an issue with old PROC checks not being removed.   I had a CLASS called “linux2” with 3 PROC checks.   A Host was using the linux2 class.  I then changed the Host to use the “linux” class.   Now
 the Host is checking for both linux and linux2 PROCs!</span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Hosts.cfg extract:</span> <o:p>
</o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Was</span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">10.0.0.13     MGTserver01 # CLASS:linux2</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Now</span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">10.0.0.13     MGTserver01 # CLASS:linux</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">How do I get rid of the old PROCs that aren’t required anymore?</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Tue Jul 10 14:56:28 AEST 2018 - Processes NOT ok</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">green sshd (found 3, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">green proc1 (found 1, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">green proc2 (found 1, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">green proc3 (found 1, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">green rsyslogd (found 1, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">red proc4 (found 0, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">red proc5 (found 0, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">red proc6 (found 0, req. 1 or more)</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Xymon server version: Xymon 4.3.28-1.el7.terabithia</span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Xymon client version:  xymon-client-local.x86_64 - 4.3.28-1.el7 
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks,</span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Martin.</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:EN-AU">********************************************************************************<br>
Department of Economic Development, Jobs, Transport and Resources, Government of<br>
Victoria, Victoria, Australia.<br>
<br>
This email, and any attachments, may contain privileged and confidential<br>
information. If you are not the intended recipient, you may not distribute or<br>
reproduce this e-mail or the attachments. If you have received this message in<br>
error, please notify us by return email.<br>
******************************************************************************** </span>
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="mso-fareast-language:EN-AU"><br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________  <o:p></o:p></pre>
<pre>Xymon mailing list  <o:p></o:p></pre>
<pre><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>  <o:p></o:p></pre>
<pre><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwMD-g&c=JnBkUqWXzx2bz-3a05d47Q&r=gxd94qbPCJB6hOxPc66zwK6AU5SuJUzDMDIFpMbtSQY&m=qtSdLrd7M_A0nfgPexMFKS2L31YvNgJP_KHri3zaKhM&s=7ELoc7BPdtJbgx43JuVbvI4sjvpY4SaQx8a21eI8HYo&e=">http://lists.xymon.com/mailman/listinfo/xymon</a>  <o:p></o:p></pre>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<pre>--   <o:p></o:p></pre>
<pre>Cordialement,  <o:p></o:p></pre>
<pre>Damien Martins  <o:p></o:p></pre>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:windowtext">********************************************************************************<br>
Department of Economic Development, Jobs, Transport and Resources, Government of<br>
Victoria, Victoria, Australia.<br>
<br>
This email, and any attachments, may contain privileged and confidential<br>
information. If you are not the intended recipient, you may not distribute or<br>
reproduce this e-mail or the attachments. If you have received this message in<br>
error, please notify us by return email.<br>
********************************************************************************<o:p></o:p></span></p>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Black" size="3"><br>
CONFIDENTIALITY NOTICE:<br>
This electronic mail message is intended exclusively for<br>
recipient to which it is addressed. The contents of this message<br>
and any attachments may contain confidential and privileged<br>
information. Any unauthorized review, use, print, storage, copy,<br>
disclosure or distribution is strictly prohibited. If you have<br>
received this message in error, please advise the sender<br>
immediately by replying to the message's sender and delete all<br>
copies of this message and its attachments without disclosing<br>
the contents to anyone, or using the contents for any purpose.<br>
</font>
</body>
</html>