<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    A 'find' script is what I just ended up setting up.<br>
    hostdata contains copies of client reports, which depending on the
    client can be quote large... AFAIK there is no way of using them for
    anything other than manually viewing on the filesystem. I decided to
    keep 10% of them (the ones ending in 0) just in case...<br>
    <br>
    #!/bin/sh<br>
    # number of days of logs to retain on disk<br>
    RETAINDAYS=30<br>
    export `bbcmd env 2>/dev/null | grep BBVAR=`<br>
    HOSTDATA=${BBVAR}/hostdata<br>
    find $HOSTDATA -type f \! -name \*0 -mtime +$RETAINDAYS -delete<br>
    <br>
    <br>
    <br>
    <span style="white-space: pre;">> That's essentially what I'd
      thought of doing but I just wanted to check if there was a built
      in way of doing it before I went ahead and wrote a script to run
      that kind of command.<br>
      ><br>
      > > -----Original Message-----<br>
      > > From: Xymon [<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>] On Behalf
      Of Torsten Richter<br>
      > > Sent: 28 October 2013 09:43<br>
      > > To: <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:xymon@xymon.com"><mailto:xymon@xymon.com></a><br>
      > > Subject: Re: [Xymon] Housekeeping on
      /xymon/data/hostdata<br>
      > ><br>
      > Ok, you seem to be right.<br>
      > But what about a 'find -mtime +180 -type f' in that directory
      and remove the files<br>
      > you'll get this way?<br>
      ><br>
      > On 28.10.2013 10:31, Neil Simmonds wrote:<br>
      > > I've had a look at that but it looks to me like that is
      for managing the<br>
      > /xymon/data/histlogs folder not the /xymon/data/hostdata
      folder.<br>
      ><br>
      > >> -----Original Message-----<br>
      > >> From: Xymon [<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>] On
      Behalf Of Torsten<br>
      > >> Richter<br>
      > >> Sent: 28 October 2013 09:16<br>
      > >> To: <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:xymon@xymon.com"><mailto:xymon@xymon.com></a><br>
      > >> Subject: Re: [Xymon] Housekeeping on
      /xymon/data/hostdata<br>
      > >><br>
      > > Hi Neil,<br>
      ><br>
      > > take a look at the trimhistory command delivered with
      XYmon.<br>
      > > I use it here to delete the history data older than a
      year.<br>
      > > In addition I also have a script similar to the one on
      XYmonton that<br>
      > > deletes the RRD files for hosts or tests that get no
      longer updated.<br>
      ><br>
      > > HTH<br>
      > > Torsten<br>
      ><br>
      > > On 28.10.2013 09:47, Neil Simmonds wrote:<br>
      > >>>> We've been getting some space issues
      recently on our /xymon<br>
      > >>>> filesystem. We<br>
      > > don't really want to add more space so I am looking at
      implementing<br>
      > > some housekeeping on the /xymon/data/hostdata folder.<br>
      > >>>><br>
      > >>>> If I run a find command there are nearly
      58000 files over 180 days<br>
      > >>>> old and I don't<br>
      > > really think we need to keep client data from alerts
      older than that.<br>
      > > Is there a built in way to manage this or is it a case
      of writing a script to manage<br>
      > it?<br>
      > >>>><br>
      > >>>> Name & Registered Office: EXPRESS GIFTS
      LIMITED, 2 GREGORY ST,<br>
      > >>>> HYDE,<br>
      > > CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.<br>
      > >>>> Express Gifts Limited is authorised and
      regulated by the Financial<br>
      > >>>> Services Authority<br>
      > >>>> --------------<br>
      > >>>> NOTE: This email and any information
      contained within or attached<br>
      > >>>> in a separate file is confidential and
      intended solely for the<br>
      > >>>> Individual to whom it is addressed. The
      information or data<br>
      > >>>> included is solely for the purpose indicated
      or previously agreed.<br>
      > >>>> Any information or data included<br>
      > > with this e-mail remains the property of Findel PLC and
      the recipient<br>
      > > will refrain from utilising the information for any
      purpose other than<br>
      > > that indicated and upon request will destroy the
      information and remove it from<br>
      > their records.<br>
      > >>>> Any views or opinions presented are solely
      those of the author and<br>
      > >>>> do not necessarily represent those of Findel
      PLC. If you are not<br>
      > >>>> the intended recipient, be advised that you
      have received this<br>
      > >>>> email in error and that any use,
      dissemination, forwarding,<br>
      > >>>> printing, or copying of this email is
      strictly prohibited. No<br>
      > >>>> warranties or assurances are made in
      relation to the safety and<br>
      > >>>> content of this e-mail and any attachments.
      No liability is<br>
      > >>>> accepted for any consequences arising from
      it. Findel Plc reserves<br>
      > >>>> the right to monitor all e-mail
      communications through its internal and<br>
      > external networks.<br>
      > >>>> If you have received this email in error
      please notify our IT<br>
      > >>>> helpdesk on +44(0) 1254 303030<br>
      > >>>><br>
      > >>>><br>
      > >>>><br>
      > >>>>
      _______________________________________________<br>
      > >>>> Xymon mailing list<br>
      > >>>> <a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
      <a class="moz-txt-link-rfc2396E" href="mailto:Xymon@xymon.com"><mailto:Xymon@xymon.com></a><br>
      > >>>>
      <a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
      > >>>><br>
      ><br>
      > >> _______________________________________________<br>
      > >> Xymon mailing list<br>
      > >> <a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:Xymon@xymon.com"><mailto:Xymon@xymon.com></a><br>
      > >> <a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
      > >><br>
      ><br>
      > > Name & Registered Office: EXPRESS GIFTS LIMITED, 2
      GREGORY ST, HYDE,<br>
      > CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.<br>
      > > Express Gifts Limited is authorised and regulated by the
      Financial<br>
      > > Services Authority<br>
      > > --------------<br>
      > > NOTE: This email and any information contained within or
      attached in<br>
      > > a separate file is confidential and intended solely for
      the Individual<br>
      > > to whom it is addressed. The information or data
      included is solely<br>
      > > for the purpose indicated or previously agreed. Any
      information or data included<br>
      > with this e-mail remains the property of Findel PLC and the
      recipient will refrain<br>
      > from utilising the information for any purpose other than
      that indicated and upon<br>
      > request will destroy the information and remove it from their
      records.<br>
      > > Any views or opinions presented are solely those of the
      author and do<br>
      > > not necessarily represent those of Findel PLC. If you
      are not the<br>
      > > intended recipient, be advised that you have received
      this email in<br>
      > > error and that any use, dissemination, forwarding,
      printing, or<br>
      > > copying of this email is strictly prohibited. No
      warranties or<br>
      > > assurances are made in relation to the safety and
      content of this<br>
      > > e-mail and any attachments. No liability is accepted for
      any<br>
      > > consequences arising from it. Findel Plc reserves the
      right to monitor<br>
      > > all e-mail communications through its internal and
      external networks.<br>
      > > If you have received this email in error please notify
      our IT helpdesk<br>
      > > on +44(0) 1254 303030<br>
      ><br>
      ><br>
      ><br>
      > > _______________________________________________<br>
      > > Xymon mailing list<br>
      > > <a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:Xymon@xymon.com"><mailto:Xymon@xymon.com></a><br>
      > > <a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
      ><br>
      ><br>
      > > _______________________________________________<br>
      > > Xymon mailing list<br>
      > > <a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:Xymon@xymon.com"><mailto:Xymon@xymon.com></a><br>
      > > <a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
      > ><br>
      ><br>
      > Name & Registered Office: EXPRESS GIFTS LIMITED, 2
      GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company No.
      00718151.<br>
      ><br>
      > Express Gifts Limited is authorised and regulated by the
      Financial Conduct Authority<br>
      ><br>
      > -------------------------<br>
      ><br>
      > NOTE: This email and any information contained within or
      attached in a separate file is confidential and intended solely
      for the Individual to whom it is addressed. The information or
      data included is solely for the purpose indicated or previously
      agreed. Any information or data included with this e-mail remains
      the property of Findel PLC and the recipient will refrain from
      utilising the information for any purpose other than that
      indicated and upon request will destroy the information and remove
      it from their records. Any views or opinions presented are solely
      those of the author and do not necessarily represent those of
      Findel PLC. If you are not the intended recipient, be advised that
      you have received this email in error and that any use,
      dissemination, forwarding, printing, or copying of this email is
      strictly prohibited. No warranties or assurances are made in
      relation to the safety and content of this e-mail and any
      attachments. No liability is accepted for any consequences arising
      from it. Findel Plc reserves the right to monitor all e-mail
      communications through its internal and external networks. If you
      have received this email in error please notify our IT helpdesk on
      +44(0) 1254 303030<br>
      ><br>
      >  <br>
      ><br>
      ><br>
      ><br>
      > _______________________________________________<br>
      > Xymon mailing list<br>
      > <a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
      > <a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></span><br>
    <br>
    -- <br>
    David Baldwin - Senior Systems Administrator (Datacentres +
    Networks)<br>
    Information and Communication Technology Services<br>
    Australian Sports Commission          <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a><br>
    Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616<br>
    <a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT
    2617<br>
    <br>
  <br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information.  If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful.  If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>