I am trying to do something that I think should be pretty basic, set up a couple check_disk commands that will group things into departments and then have one that checks everything else. I am trying to use one directory right now as a very very basic example. I try to do the exclude option in the regex of -r but I am getting the same results…
[root@vmlinuxsecurity etc]# /usr/local/nagios/libexec/check_disk -W 80% -K 90% -r '/boot’
DISK OK - free space: /boot 897 MB (95% inode=99%);| /boot=46MB;;;0;995
[root@vmlinuxsecurity etc]# /usr/local/nagios/libexec/check_disk -W 80% -K 90% -r '^/boot’
DISK OK - free space: /boot 897 MB (95% inode=99%);| /boot=46MB;;;0;995
According to this page:
nagiosplugins.org/man/check_disk
Putting the ^ in there should mean to the command "check the disks on everything not matching the pattern /boot
Why then do both come back with the same results?