Regular Expressions in check_disk partition list

Hello everyone,

I’m trying to use regular expressions for some of my hosts in Icinga, but even though it doesn’t throw any errors when I write and restart the configuration, it seems to be ignoring them.

Is this feature not implemented, or am I possibly configuring it in the wrong place? Any guidance or insights would be greatly appreciated.

image

Thank you!

Thanks for posting. I took the liberty to alter the topic and category as this is regarding a service check and the ITL.

Setting disk_partitions_excluded for the disk service check, results in the -x parameter being used for the check plugin. According to the monitoring plugins check_disk man page, -x results in a device being ignored, but it neither mentions globbing nor regex. Thus, the check plugin is unable to do so.

However, if you want to exclude every tmpfs, you should be able to add tmpfs to disk_exclude_type.

To add to what @apenning just told you:
You can use check_system_basics filesystem check: GitHub - NETWAYS/check_system_basics: A Monitoring Plugin to test various basic operating system properties (on Linux for now)
The exclude and include flags all support regular expressions.

Mmm unfortunately, it is ext4. I think for now I will add the partitions manually, but thank you both for your help!

1 Like