Ignore smbfs,cifs,tmpfs
Ignore smbfs,cifs,tmpfs
Hello all is there a way to ignore types rather than share names. with like example /usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -W $ARG1$ -K $ARG2$ -el -X smbfs -X tmpfs -X cifs
Re: Ignore smbfs,cifs,tmpfs
You should be able to use -x -
Code: Select all
-x, --exclude_device=PATH <STRING>
Ignore device (only works if -p unspecified)
Former Nagios Employee
Re: Ignore smbfs,cifs,tmpfs
Yeah but can I ignore it based on filesytem type, because I would need to add a lot of paths using that command
Re: Ignore smbfs,cifs,tmpfs
A capital -X might be more appropriate:
Or a -N if you're only including certain types:
Code: Select all
-X, --exclude-type=TYPE
Ignore all filesystems of indicated type (may be repeated)
Code: Select all
-N, --include-type=TYPE
Check only filesystems of indicated type (may be repeated)
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/