[Xymon] History broken after cleaning up old data with trimhistory
Ralph Mitchell
ralphmitchell at gmail.com
Wed Feb 6 01:48:01 CET 2019
I've had that too. For me, it came down to running trimhistory as root
rather than as the xymon user.
Trimhistory creates a new file, reads through the old file and copies the
records you want to keep, then throws away the old file. The new file is
owned by the user running the command, in my case, root.
Ralph Mitchell
On Tue, Feb 5, 2019 at 6:15 PM Galen Johnson <solitaryr at gmail.com> wrote:
> Check your permissions/ownership on the files/folders...I seem to recall
> something similar happening to me and (for some reason) the ownerships of
> the files had changed and they could not be updated any longer.
>
> =G=
>
> On Tue, Feb 5, 2019 at 5:05 PM Alessandro Tinivelli <
> Alessandro.Tinivelli at faacgroup.com> wrote:
>
>> good day all,
>>
>> my xymon 4.3.28-1.el7.terabithia running on Centos7 has encountered a
>> problem since i made a cleanup using trimhistory command.
>>
>> If a test (i.e. conn or anyelse) has been failing for a few hours,
>> clicking the History Button shows all green bars, no red bars for the KO
>> period.
>>
>> The bars show red lines for previous failures only until the time i used
>> the trimhistory.
>> What is the possible cause and solution?
>>
>> I issued this command:
>>
>> /usr/libexec/xymon/trimhistory --drop --droplogs --dropsvcs
>> --cutoff=`date +%s --date="1 Oct 2018"` --env=/etc/xymon/xymonserver.cfg
>>
>> Thanks in advance!
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190205/799c075e/attachment.html>
More information about the Xymon
mailing list