## Perl Check SMB Disk plugin for Nagios ## Usage: check_disk_smb -H -s -u -p \ ## -w -c [-W ] [-P ] ## ## -W, --workgroup=STRING ; Workgroup or Domain used (Defaults to "WORKGROUP") ## -u, --user=STRING ; Username to log in to server. (Defaults to "guest") ## -p, --password=STRING ; Password to log in to server. (Defaults to an empty password) ## -w, --warning=INTEGER or INTEGER[kMG] ; Percent of used space at which a warning will be generated (Default: 85%) ## -c, --critical=INTEGER or INTEGER[kMG] ; Percent of used space at which a critical will be generated (Defaults: 95%) ## ## If thresholds are followed by either a k, M, or G then check to see if that ## much disk space is available (kilobytes, Megabytes, Gigabytes) ## ## Warning percentage should be less than critical ## Warning (remaining) disk space should be greater than critical. # 'check_disk_smb' command definition -- see 'check_disk_smb -h' for details define command{ command_name check_disk_smb command_line $USER1$/check_disk_smb -H $HOSTADDRESS$ -s $ARG1$ -w $ARG2$ -c $ARG3$ }