<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I ran the following command and it found a few mrtg files that were
owned by root user instead of xymon user, but everything else is
owned by xymon user.<br>
$ find /home/xymon/data/ -user root<br>
<br>
<pre class="moz-signature" cols="72">Kris Springer
</pre>
<div class="moz-cite-prefix">On 3/31/21 3:28 PM, Jeremy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:em19d16641-4936-4318-af3e-0f1d5b97e58f@cyberpower">
<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"
moz-do-not-send="true">kspringer@innovateteam.com</a>></div>
<div>To: "Xymon MailingList" <<a href="mailto:xymon@xymon.com"
moz-do-not-send="true">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 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>
<tbody>
<tr>
<td><a
href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient"
target="_blank" moz-do-not-send="true"><img alt=""
moz-do-not-send="true" width="46" height="29"></a></td>
<td>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" moz-do-not-send="true">www.avg.com</a>
</td>
</tr>
</tbody>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1" moz-do-not-send="true"> </a></div>
</blockquote>
<br>
</body>
</html>