Xymon Mailing List Archive search

trimhistory error in terabithia RPM 4.3.27-1

3 messages in this thread

list Sebastian Auriol · Thu, 25 Aug 2016 19:15:57 +0100 ·
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
list Japheth Cleaver · Thu, 25 Aug 2016 12:21:15 -0700 ·
quoted from Sebastian Auriol
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
list Sebastian Auriol · Fri, 26 Aug 2016 11:06:08 +0100 ·
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  
quoted from Japheth Cleaver


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