Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_disk: make -X a regex list #748

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link
Contributor

fixes #733

Tests

➜  nagios-plugins git:(733) plugins/check_disk -w 1 -c 2 -X apfs
DISK CRITICAL - free space: /dev 0 MiB (0,00% inode=0%);| /dev=0MiB;-1;-2;0;0
➜  nagios-plugins git:(733) plugins/check_disk -w 1 -c 2 -X apf
DISK CRITICAL - free space: / 161588 MiB (33,89% inode=100%); /dev 0 MiB (0,00% inode=0%); /System/Volumes/Preboot 161588 MiB (33,89% inode=100%); /System/Volumes/VM 161588 MiB (33,89% inode=100%); /System/Volumes/Update 161588 MiB (33,89% inode=100%); /System/Volumes/Data 161588 MiB (33,89% inode=100%);| /=315213MiB;476801;476800;0;476802 /dev=0MiB;-1;-2;0;0 /System/Volumes/Preboot=315213MiB;476801;476800;0;476802 /System/Volumes/VM=315213MiB;476801;476800;0;476802 /System/Volumes/Update=315213MiB;476801;476800;0;476802 /System/Volumes/Data=315213MiB;476801;476800;0;476802
➜  nagios-plugins git:(733) plugins/check_disk -w 1 -c 2 -X 'ap.*'
DISK CRITICAL - free space: /dev 0 MiB (0,00% inode=0%);| /dev=0MiB;-1;-2;0;0
➜  nagios-plugins git:(733)

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.

check_disk: make -X a regex (not literal)
1 participant