Archive Comments


I’m looking for a way to archive comments to hosts or services. We have some hosts (and services) that have built up some long lists of comments - mostly due to outages that are out of our control (and we are working on fixing that…).

What would be nice is a way to keep the last X number of days of current comments, or N number of comments listed, and then everything else would be accessible via an archive link or something of that sort.

Aside from manually parsing the comments.dat file, copying out the old stuff and leaving the current stuff in there, any ideas?