Xymon Mailing List Archive search

trimhistory error in terabithia RPM 4.3.27-1

list Sebastian Auriol
Fri, 26 Aug 2016 11:06:08 +0100
Message-Id: <!&!AAAAAAAAAAAYAAAAAAAAAJxkLXA7J6RMl29NJhWmqH3CgAAAEAAAAAyOjzbTdWNJtO4ESQikZiQBAAAAAA==@syntec.co.uk>

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:user-87556346d4af@xymon.invalid] 
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