[Xymon] trimhistory error in terabithia RPM 4.3.27-1

SebA spah at syntec.co.uk
Fri Aug 26 12:06:08 CEST 2016


Quite right, this works:
-bash-3.2$ /usr/libexec/xymon/xymoncmd /usr/libexec/xymon/trimhistory
--cutoff=`date +%s --date="1 Aug 2011"` --drop --dropsvcs --droplogs
--progress=10
Thanks jc!

Kind regards, 

Sebastian  


 


  _____  

From: Japheth Cleaver [mailto:cleaver at terabithia.org] 
Sent: 25 August 2016 20:21
To: SebA; xymon at xymon.com
Subject: Re: trimhistory error in terabithia RPM 4.3.27-1


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160826/ed803bf9/attachment.html>


More information about the Xymon mailing list