[Check_mk (english)] Is diskspace cleanup configuration for pnp4nagios in 1.5.0 incorrect?

It appears that there is a diskspace cleanup plug-in for pnp4nagios at:

~/share/diskspace/pnp4nagios

cleanup_paths = [
    'var/pnp4nagios/perfdata/*/*.rrd',
    'var/pnp4nagios/perfdata/*/*.xml',
]

I believe this results in pnp4nagios rrd files being removed if they are older than "maxfile age" in the diskspace cleanup configuration.

The cleanup of rrd files for abandoned hosts seems to be handled by the diskspace cleanup script.

Would it be appropriate to:

rm ~/share/diskspace/pnp4nagios ?

Thanks, Michael

Zynstra is a private limited company registered in England and Wales (registered number 07864369). Our registered office and Headquarters are at The Innovation Centre, Broad Quay, Bath, BA1 1UD. This email, its contents and any attachments are confidential. If you have received this message in error please delete it from your system and advise the sender immediately.

Hi Michael,

What is wrong with the deletion of the “maxfile age” files?

This is the “recommended” behavior to remove old PNP4Nagios files.

Attention if you remove the diskspace file, it is removed from all sites using the same CMK version on this server.

Best regards

Andreas

···

Am Fr., 8. Nov. 2019 um 15:02 Uhr schrieb Michael Logothetis michael.logothetis@zynstra.com:

It appears that there is a diskspace cleanup plug-in for pnp4nagios at:

~/share/diskspace/pnp4nagios

cleanup_paths = [

'var/pnp4nagios/perfdata/*/*.rrd',

'var/pnp4nagios/perfdata/*/*.xml',

]

I believe this results in pnp4nagios rrd files being removed if they are older than “maxfile age” in the diskspace cleanup configuration.

The cleanup of rrd files for abandoned hosts seems to be handled by the diskspace cleanup script.

Would it be appropriate to:

rm ~/share/diskspace/pnp4nagios ?

Thanks, Michael

Zynstra is a private limited company registered in England and Wales (registered number 07864369). Our registered office and Headquarters are at The Innovation Centre, Broad Quay, Bath, BA1 1UD. This email, its contents and any attachments are confidential. If you have received this message in error please delete it from your system and advise the sender immediately.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Hi Andreas,

Thanks for that. I thought diskspace was deleting files based on the file creation time rather than modification time.

I now see that it is using modification time which should be fine for rrd files.

Thanks for your help.

···

From: Andreas Döhler andreas.doehler@gmail.com
Date: Friday, 8 November 2019 at 21:01
To: Michael Logothetis michael.logothetis@zynstra.com
Cc:checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Is diskspace cleanup configuration for pnp4nagios in 1.5.0 incorrect?

[EXTERNAL]

Hi Michael,

What is wrong with the deletion of the “maxfile age” files?

This is the “recommended” behavior to remove old PNP4Nagios files.

Attention if you remove the diskspace file, it is removed from all sites using the same CMK version on this server.

Best regards

Andreas

Am Fr., 8. Nov. 2019 um 15:02 Uhr schrieb Michael Logothetis michael.logothetis@zynstra.com:

It appears that there is a diskspace cleanup plug-in for pnp4nagios at:

~/share/diskspace/pnp4nagios

cleanup_paths = [
‘var/pnp4nagios/perfdata//.rrd’,
‘var/pnp4nagios/perfdata//.xml’,
]

I believe this results in pnp4nagios rrd files being removed if they are older than “maxfile age” in the diskspace cleanup configuration.

The cleanup of rrd files for abandoned hosts seems to be handled by the diskspace cleanup script.

Would it be appropriate to:

rm ~/share/diskspace/pnp4nagios ?

Thanks, Michael

Zynstra is a private limited company registered in England and Wales (registered number 07864369). Our registered office and Headquarters are at The Innovation Centre, Broad Quay, Bath, BA1 1UD. This email, its contents and any attachments are confidential.
If you have received this message in error please delete it from your system and advise the sender immediately.


checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en