<html><head>
    
  <style id="pgp_css" type="text/css"><!----></style><style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] {  list-style-position: inside;}
body { font-family: Segoe UI; font-size: 12pt;   } 
.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }--></style></head>
  <body><div>Hi Kris,</div><div><br /></div><div>It might be an idea to check for files owned by root under the data directory and change them to xymon.</div><div><br /></div><div>HTH</div><div><br /></div><div>Jeremy</div>
<div><br /></div>
<div>------ Original Message ------</div>
<div>From: "Kris Springer" <<a href="mailto:kspringer@innovateteam.com">kspringer@innovateteam.com</a>></div>
<div>To: "Xymon MailingList" <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>></div>
<div>Sent: 31/03/2021 18:27:46</div>
<div>Subject: Re: [Xymon] ran Trimhistory and it broke something</div><div><br /></div>
<div id="x09c790fcd9ca4b5"><blockquote cite="210c261f-53a6-f42b-042f-5b8eb6997905@innovateteam.com" type="cite" class="cite2">

    I'm still getting xymond_history crash notifications exactly every 4
    hours.  I've looked in /var/log/xymon/ but there's doesn't seem to
    be any logs that give a clue as to what's happening.<br />
    <br />
    Here's the notification I'm getting exactly every 4 hours.<br />
    -------------------------------<br />
    <b>xymond_history purple [672384]
    </b>
    <pre><b>red - Program crashed

Fatal signal caught!</b></pre>
    -------------------------------<br />
     <br />
    <pre class="moz-signature" cols="72">Kris Springer

</pre>
    <div class="moz-cite-prefix">On 3/23/21 11:41 AM, Kris Springer
      wrote:<br />
    </div>
    <blockquote type="cite" cite="mid:cbee5963-0584-485e-2eeb-9c4d0db41b7b@innovateteam.com" class="cite">
      Upon further searching of mailing list I came across this.  <a class="moz-txt-link-freetext" href="https://lists.xymon.com/archive/2019-February/046058.html" moz-do-not-send="true">https://lists.xymon.com/archive/2019-February/046058.html</a><br />
      I re-ran my command with the 'sudo -u xymon' addition and it
      seemed to work. <br />
      <br />
      $ cd /home/xymon/server/bin/<br />
      $ sudo -u xymon ./trimhistory --drop --dropsvcs --droplogs
      --cutoff=`date +%s --date="1 Jan 2019"` --progress<br />
      <br />
      <pre class="moz-signature" cols="72">Kris Springer


</pre>
      <div class="moz-forward-container"> Per the instructions found at
        <a class="moz-txt-link-freetext" href="https://xymon.sourceforge.io/xymon/help/manpages/man8/trimhistory.8.html" moz-do-not-send="true">https://xymon.sourceforge.io/xymon/help/manpages/man8/trimhistory.8.html</a>
        I ran the following command to trim my very old log history and
        ever since then I'm getting the following crash alert.  Also
        when reviewing history via the webpage I get results but the
        time stamps are wonky.  I suspect it's because of the program
        crashing.<br />
        Anyone know how to fix?<br />
        <br />
        Trimhistory command I used:<br />
        $ ./trimhistory --drop --dropsvcs --droplogs --cutoff=`date +%s
        --date="1 Jan 2019"` --progress<br />
        <br />
        Alert I'm receiving:<br />
        <blockquote type="cite" class="cite">
          <pre>xymond_history purple [549922]
red - Program crashed

Fatal signal caught!</pre>
        </blockquote>
        <br />
        <br />
        <pre class="moz-signature" cols="72">-- 

Kris Springer



</pre>
      </div>
    </blockquote>
    <br />
  </blockquote></div>


<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt=""  width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body></html>