Skip to content

check files: skip files with whitespace names#383

Open
inqrphl wants to merge 1 commit into
mainfrom
check-files-skip-files-with-whitespace-names
Open

check files: skip files with whitespace names#383
inqrphl wants to merge 1 commit into
mainfrom
check-files-skip-files-with-whitespace-names

Conversation

@inqrphl

@inqrphl inqrphl commented May 28, 2026

Copy link
Copy Markdown
Contributor

linux allows files that have whitespaces in them. this can cause problems when the " size" perfdata is added, which could be displayed as "size" somwhere that trims the string.

detect these files and skip them

append total_size metric always, without needing to have it inside a condition.

add small comments to the code

linux allows files that have whitespaces in them. this can cause problems when the "<filename> size" perfdata is added, which may be displayed as "size" on Thruk. detect these files and skip them

append total_size metric always, without needing to have it inside a condition.

add some comments
@sni

sni commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

i am unsure, wouldn't it be better to use quotes in the perfdata output instead? Of course this is a probably rare corner case, but ' ' is a totally valid linux file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants