[Check_mk (english)] remove old data

Hi,

is there a way to remove data and graphs of service which are no longer being monitored? We have monitored lots of SQL services for example, which we do not need anymore. The long list of graphs still exists. It would be nice to remove
them.

Thank you for your help!

Best regards,

Andreas

You could look for older RRDs with something like this in your site
directory:

find var/pnp4nagios/perfdata -mtime +7 -name '*.rrd'

You may want to keep some of them.

Regards

···

On 11.02.2016 09:19, Andreas Furtenbacher wrote:

is there a way to remove data and graphs of service which are no longer
being monitored? We have monitored lots of SQL services for example,
which we do not need anymore. The long list of graphs still exists. It
would be nice to remove them.

--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin

This will delete the RRD files, however the old entries will still be shown on the PNP4Nagios page as that's built from the XML files.

So you want to get rid of both the old *.rrd and *.xml files.

···

On 11/02/2016 10:21 p.m., Robert Sander wrote:

On 11.02.2016 09:19, Andreas Furtenbacher wrote:

is there a way to remove data and graphs of service which are no longer
being monitored? We have monitored lots of SQL services for example,
which we do not need anymore. The long list of graphs still exists. It
would be nice to remove them.

You could look for older RRDs with something like this in your site
directory:

find var/pnp4nagios/perfdata -mtime +7 -name '*.rrd'

You may want to keep some of them.

--
Gavin

Hi @ll,

I wrote a cronjob script some time ago to accomplish that: https://github.com/dasmarci/check_mk/blob/master/scripts/cleanup_perfdata.py

Bug reports, feature requests and so on are welcome :wink:

Regards,

Marcel

···

Gavin Grieve ggrieve@ihug.co.nz schrieb am Do., 11. Feb. 2016 um 10:44 Uhr: > On 11/02/2016 10:21 p.m., Robert Sander wrote:

On 11.02.2016 09:19, Andreas Furtenbacher wrote:

is there a way to remove data and graphs of service which are no longer

being monitored? We have monitored lots of SQL services for example,

which we do not need anymore. The long list of graphs still exists. It

would be nice to remove them.

You could look for older RRDs with something like this in your site

directory:

find var/pnp4nagios/perfdata -mtime +7 -name ‘*.rrd’

You may want to keep some of them.

This will delete the RRD files, however the old entries will still be

shown on the PNP4Nagios page as that’s built from the XML files.

So you want to get rid of both the old *.rrd and *.xml files.

Gavin


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

sent from my mobile, sorry for typos :wink: