Xymon Mailing List Archive search

History File Management

list David B. Ritch
Tue, 30 Sep 2008 08:06:21 -0400
Message-Id: <user-1f95bd21f188@xymon.invalid>

Thank you!  I believe that trimhistory is just what I was looking for.

David

Henrik Stoerner wrote:
In <user-e6524b53948f@xymon.invalid> "David B. Ritch" <user-23cafa473f8d@xymon.invalid> writes:

  
I noticed after a while, that the hobbit home directory was growing in
an apparently boundless fashion.  On further investigation, I discovered
that on one server, my history files had grown to several gigabytes. 
After a while, this growth becomes unsustainable.
    
The hist/HOSTNAME.STATUSNAME and histlogs/* files shouldn't grow *that*
much. They will grow, but usually slowly - they are only updated when
there is a status change (red->green or similar).

If they are growing quickly, it is usually because a status is "flapping",
i.e. changing rapidly between red and green. I've seen this happen if
you have two hosts reporting with the same name (e.g. two hosts called
"www"), with one reporting a green status and the other reporting a red
status. A look at the bottom line of the status report which says "Message 
received from ..." will help you figure out if that is the case.


Regardless, the 'trimhistory' utility can be used to clean up the
size of the history logs.


Regards,
Henrik