You hardly need a script to do that:
$ find $XYMONHOME/data/rrd -type -f -mtime +7 -print
will do that job. After that you can run:
$ find $XYMONHOME/data/rrd -type f -mtime +7 -exec rm -f {} \; -print
to get rid of them.
Thanks, Larry Barber
On Fri, Jun 22, 2012 at 12:39 AM, W.J.M. Nelis <Wim.Nelis at nlr.nl> wrote:
Hello,
I've been playing around with my graphs on the trends page by tweaking
the analysis.cfg file. It seems now, that I have lines stuck on my graphs that no longer exist. I'm also seeing that I have 3 different "Network Ports" graphs. How do I clean these up so only real graphs are displaying?
Perhaps http://xymonton.org/addons:**finit<http://xymonton.org/addons:finit>is what you are looking for. Script finit.pl (an acronym for FINd_Inactive_Tests) creates a list of RRDs which are not updated for at least a week.
Regards, Wim Nelis.
The NLR disclaimer is valid for NLR e-mail messages.
This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of the sender. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. Sender accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
______________________________**_________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/**mailman/listinfo/xymon<http://lists.xymon.com/mailman/listinfo/xymon>