It seems your options are:
- Run the check as root and exclude any uid that would be logged in
- Reach out for help with the check/Fedora, maybe it’s a bug or there’s a better workaround?
- Explicitly specify the paths you want to monitor
It seems your options are:
Well I never specified to check these, this was a result of default settings.
I did create a bug in Git for icinga2 which turned into a feature request to support-x with the Nagios plugins.
Would filling a Fedora bug still be worthwhile?
Sorry for reviving this thread but maybe someone will find it useful:
check_disk plugin ( package monitoring-plugins) on ubuntu 22.04 does not honor
the -X flag. Therefore tmpfs still gets searched resulting in:
DISK CRITICAL - /run/user/0/doc is not accessible: Permission denied
Only workaround I found, apart from putting the exact exclude path of every instance in the vars.disk_partitions_excluded array is to make use of:
“vars.disk_all = true
vars.disk_ignore_ereg_path = [”/run/*“]”