Xymon Mailing List Archive search

Clean up logs

list Manoj Biswakarma
Wed, 15 Nov 2017 14:16:35 +0000 (UTC)
Message-Id: <user-2cc312ceb79b@xymon.invalid>

Can you please share your script weems the path might be different than mine but i can change those and use it>
#  /bin/su - xymon -c '/usr/libexec/xymon/trimhistory --cutoff=`date +%s --date="today -1 year"` --drop --droplogs --env=/etc/xymon/xymonserver.cfg'
-bash: /usr/libexec/xymon/trimhistory: No such file or directory


 Regards  Manoj Biswakarma (Manoj) 

    On ‎Wednesday‎, ‎November‎ ‎15‎, ‎2017‎ ‎02‎:‎42‎:‎07‎ ‎AM‎ ‎EST, Dirk Kastens <user-e4253f8fc63b@xymon.invalid> wrote:  
 
 Hi,

I'm running a script from cron.daily that cleans up my data:

/bin/su - xymon -c '/usr/libexec/xymon/trimhistory --cutoff=`date +%s 
--date="today -1 year"` --drop --droplogs --env=/etc/xymon/xymonserver.cfg'
/bin/find /var/lib/xymon/hostdata -type f -mtime +7 -delete

Regards,
Dirk