On 8/25/2016 11:15 AM, SebA wrote:
The error is 'Cannot cd to history directory: No such file or directory', as per the log below. Any suggestions? [myuser at myserver histlogs]$ /usr/libexec/xymon/trimhistory
--cutoff=date +%s --date="1 Aug 2011"--drop --dropsvcs --droplogs --progress=10 2016-08-25 19:07:42.028735 Cannot cd to history directory: No such file or directory [myuser at myserver histlogs]$ sudo su -s /bin/bash - xymon -bash-3.2$ /usr/libexec/xymon/trimhistory --cutoff=date +%s --date="1 Aug 2011"--drop --dropsvcs --droplogs --progress=10 2016-08-25 19:08:28.459938 Cannot cd to history directory: No such file or directory -bash-3.2$ pwd /usr/share/xymon -bash-3.2$ cd /var/lib/xymon -bash-3.2$ /usr/libexec/xymon/trimhistory --cutoff=date +%s --date="1 Aug 2011"--drop --dropsvcs --droplogs --progress=10 2016-08-25 19:09:20.390845 Cannot cd to history directory: No such file or directory -bash-3.2$ rpm -q xymon xymon-4.3.27-1.el5 -bash-3.2$ less /usr/libexec/xymon/trimhistory "/usr/libexec/xymon/trimhistory" may be a binary file. See it anyway?Kind regards,
SebA
Hi,
I believe trimhistory needs to run within the xymon environment to know where to find things.
Can you try prefixing it with 'xymoncmd'?
Regards,
-jc