Xymon Mailing List Archive search

History broken after cleaning up old data with trimhistory

list Alessandro Tinivelli
Thu, 7 Feb 2019 08:35:33 +0000
Message-Id: <23E123F55C0A7045838A867C453241D4012765AEA1@ITEXCHMBX1>

Thank you very much Galen and Ralph: i let trimhistory run again with sudo –u xymon…..
It seems to have solved the problem.

You saved me a lot of troubles ;-)
Alessandro

--
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 <user-fc632e705d24@xymon.invalid<mailto:user-fc632e705d24@xymon.invalid>> 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.