CheckDisk
CheckDisk can check various file and disk related things.

CheckDisk — CheckDisk

CheckDisk can check various file and disk related things.

Queries (Overview):

A list of all avalible queries (check commands)

Command Description
check_drivesize Check the size (free-space) of a drive or volume.
check_files Check various aspects of a file and/or folder.
checkdrivesize Legacy version of check_drivesize
checkfiles Legacy version of check_drivesize

Commands (executable): TODO: Add command list

Queries

A quick reference for all avalible queries (check commands) in the CheckDisk module.

checkfiles

CheckDiskcheckfiles
Legacy version of check_drivesize

Usage:

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
help-short N/A Show help screen (short format).
syntax N/A Syntax for individual items (detail-syntax).
master-syntax N/A Syntax for top syntax (top-syntax).
path N/A The file or path to check
pattern N/A Deprecated and ignored
alias N/A Deprecated and ignored
debug N/A Debug
max-dir-depth N/A The maximum level to recurse
filter N/A The filter to use when including files in the check
warn N/A Deprecated and ignored
crit N/A Deprecated and ignored
MaxWarn N/A Maximum value before a warning is returned.
MaxCrit N/A Maximum value before a critical is returned.
MinWarn N/A Minimum value before a warning is returned.
MinCrit N/A Minimum value before a critical is returned.

Arguments

help (CheckDisk, checkfiles)
Show help screen (this screen)
help-csv (CheckDisk, checkfiles)
Show help screen as a comma separated list.
This is useful for parsing the output in scripts and generate documentation etc
help-short (CheckDisk, checkfiles)
Show help screen (short format).
syntax (CheckDisk, checkfiles)
Syntax for individual items (detail-syntax).
master-syntax (CheckDisk, checkfiles)
Syntax for top syntax (top-syntax).
path (CheckDisk, checkfiles)
The file or path to check
pattern (CheckDisk, checkfiles)
Deprecated and ignored
alias (CheckDisk, checkfiles)
Deprecated and ignored
debug (CheckDisk, checkfiles)
Debug
max-dir-depth (CheckDisk, checkfiles)
The maximum level to recurse
filter (CheckDisk, checkfiles)
The filter to use when including files in the check
warn (CheckDisk, checkfiles)
Deprecated and ignored
crit (CheckDisk, checkfiles)
Deprecated and ignored
MaxWarn (CheckDisk, checkfiles)
Maximum value before a warning is returned.
MaxCrit (CheckDisk, checkfiles)
Maximum value before a critical is returned.
MinWarn (CheckDisk, checkfiles)
Minimum value before a warning is returned.
MinCrit (CheckDisk, checkfiles)
Minimum value before a critical is returned.

checkdrivesize

CheckDiskcheckdrivesize
Legacy version of check_drivesize

Usage:

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
help-short N/A Show help screen (short format).
CheckAll true Checks all drives.
CheckAllOthers true Checks all drives turns the drive option into an exclude option.
Drive N/A The drives to check
FilterType N/A The type of drives to check fixed, remote, cdrom, ramdisk, removable
perf-unit N/A Force performance data to use a given unit prevents scaling which can cause problems over time in some graphing solutions.
ShowAll short Configures display format (if set shows all items not only failures, if set to long shows all cores).
MaxWarn N/A Maximum value before a warning is returned.
MaxCrit N/A Maximum value before a critical is returned.
MinWarn N/A Minimum value before a warning is returned.
MinCrit N/A Minimum value before a critical is returned.
MaxWarnFree N/A Maximum value before a warning is returned.
MaxCritFree N/A Maximum value before a critical is returned.
MinWarnFree N/A Minimum value before a warning is returned.
MinCritFree N/A Minimum value before a critical is returned.
MaxWarnUsed N/A Maximum value before a warning is returned.
MaxCritUsed N/A Maximum value before a critical is returned.
MinWarnUsed N/A Minimum value before a warning is returned.
MinCritUsed N/A Minimum value before a critical is returned.

Arguments

help (CheckDisk, checkdrivesize)
Show help screen (this screen)
help-csv (CheckDisk, checkdrivesize)
Show help screen as a comma separated list.
This is useful for parsing the output in scripts and generate documentation etc
help-short (CheckDisk, checkdrivesize)
Show help screen (short format).
CheckAll (CheckDisk, checkdrivesize)
Checks all drives.
CheckAllOthers (CheckDisk, checkdrivesize)
Checks all drives turns the drive option into an exclude option.
Drive (CheckDisk, checkdrivesize)
The drives to check
FilterType (CheckDisk, checkdrivesize)
The type of drives to check fixed, remote, cdrom, ramdisk, removable
perf-unit (CheckDisk, checkdrivesize)
Force performance data to use a given unit prevents scaling which can cause problems over time in some graphing solutions.
ShowAll (CheckDisk, checkdrivesize)
Configures display format (if set shows all items not only failures, if set to long shows all cores).
MaxWarn (CheckDisk, checkdrivesize)
Maximum value before a warning is returned.
MaxCrit (CheckDisk, checkdrivesize)
Maximum value before a critical is returned.
MinWarn (CheckDisk, checkdrivesize)
Minimum value before a warning is returned.
MinCrit (CheckDisk, checkdrivesize)
Minimum value before a critical is returned.
MaxWarnFree (CheckDisk, checkdrivesize)
Maximum value before a warning is returned.
MaxCritFree (CheckDisk, checkdrivesize)
Maximum value before a critical is returned.
MinWarnFree (CheckDisk, checkdrivesize)
Minimum value before a warning is returned.
MinCritFree (CheckDisk, checkdrivesize)
Minimum value before a critical is returned.
MaxWarnUsed (CheckDisk, checkdrivesize)
Maximum value before a warning is returned.
MaxCritUsed (CheckDisk, checkdrivesize)
Maximum value before a critical is returned.
MinWarnUsed (CheckDisk, checkdrivesize)
Minimum value before a warning is returned.
MinCritUsed (CheckDisk, checkdrivesize)
Minimum value before a critical is returned.

check_files

CheckDiskcheck_files
Check various aspects of a file and/or folder.

Usage:

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
help-short N/A Show help screen (short format).
debug N/A Show debugging information in the log
show-all N/A Show debugging information in the log
filter N/A Filter which marks interesting items.
warning N/A Filter which marks items which generates a warning state.
warn N/A Short alias for warning
critical N/A Filter which marks items which generates a critical state.
crit N/A Short alias for critical.
ok N/A Filter which marks items which generates an ok state.
empty-syntax OK: All files ok Message to display when nothing matched filter.
empty-state unknown Return status to use when nothing matched filter.
perf-config N/A Performance data generation configuration
top-syntax ${status}: ${problem_count}/${count} files (${problem_list}) Top level syntax.
detail-syntax ${name} Detail level syntax.
perf-syntax ${name} Performance alias syntax.
path N/A The path to search for files under.
file N/A Alias for path.
paths N/A A comma separated list of paths to scan
pattern . The pattern of files to search for (works like a filter but is faster and can be combined with a filter).
max-depth N/A Maximum depth to recurse
total N/A Include the total of all matching files

Arguments

help (CheckDisk, check_files)
Show help screen (this screen)
help-csv (CheckDisk, check_files)
Show help screen as a comma separated list.
This is useful for parsing the output in scripts and generate documentation etc
help-short (CheckDisk, check_files)
Show help screen (short format).
debug (CheckDisk, check_files)
Show debugging information in the log
show-all (CheckDisk, check_files)
Show debugging information in the log
filter (CheckDisk, check_files)
Filter which marks interesting items.
Interesting items are items which will be included in the check.
They do not denote warning or critical state but they are checked use this to filter out unwanted items.
Avalible options:
Key Value
access Last access time
age Seconds since file was last written
creation When file was created
file The name of the file
filename The name of the file
line_count Number of lines in the file (text files)
name The name of the file
path Path of file
size File size
total True if this is the total object
version Windows exe/dll file version
write Alias for written
written When file was last written to
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


warning (CheckDisk, check_files)
Filter which marks items which generates a warning state.
If anything matches this filter the return status will be escalated to warning.
Avalible options:
Key Value
access Last access time
age Seconds since file was last written
creation When file was created
file The name of the file
filename The name of the file
line_count Number of lines in the file (text files)
name The name of the file
path Path of file
size File size
total True if this is the total object
version Windows exe/dll file version
write Alias for written
written When file was last written to
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


warn (CheckDisk, check_files)
Short alias for warning
critical (CheckDisk, check_files)
Filter which marks items which generates a critical state.
If anything matches this filter the return status will be escalated to critical.
Avalible options:
Key Value
access Last access time
age Seconds since file was last written
creation When file was created
file The name of the file
filename The name of the file
line_count Number of lines in the file (text files)
name The name of the file
path Path of file
size File size
total True if this is the total object
version Windows exe/dll file version
write Alias for written
written When file was last written to
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


crit (CheckDisk, check_files)
Short alias for critical.
ok (CheckDisk, check_files)
Filter which marks items which generates an ok state.
If anything matches this any previous state for this item will be reset to ok.
Avalible options:
Key Value
access Last access time
age Seconds since file was last written
creation When file was created
file The name of the file
filename The name of the file
line_count Number of lines in the file (text files)
name The name of the file
path Path of file
size File size
total True if this is the total object
version Windows exe/dll file version
write Alias for written
written When file was last written to
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


empty-syntax (CheckDisk, check_files)
Message to display when nothing matched filter.
If no filter is specified this will never happen unless the file is empty.
empty-state (CheckDisk, check_files)
Return status to use when nothing matched filter.
If no filter is specified this will never happen unless the file is empty.
perf-config (CheckDisk, check_files)
Performance data generation configuration
TODO: obj ( key: value; key: value) obj (key:valuer;key:value)
top-syntax (CheckDisk, check_files)
Top level syntax.
Used to format the message to return can include strings as well as special keywords such as:
Key Value
%(access) Last access time
%(age) Seconds since file was last written
%(creation) When file was created
%(file) The name of the file
%(filename) The name of the file
%(line_count) Number of lines in the file (text files)
%(name) The name of the file
%(path) Path of file
%(size) File size
%(total) True if this is the total object
%(version) Windows exe/dll file version
%(write) Alias for written
%(written) When file was last written to
${count} Number of items matching the filter
${total} Total number of items
${ok_count} Number of items matched the ok criteria
${warn_count} Number of items matched the warning criteria
${crit_count} Number of items matched the critical criteria
${problem_count} Number of items matched either warning or critical criteria
${list} A list of all items which matched the filter
${ok_list} A list of all items which matched the ok criteria
${warn_list} A list of all items which matched the warning criteria
${crit_list} A list of all items which matched the critical criteria
${problem_list} A list of all items which matched either the critical or the warning criteria
${status} The returned status (OK/WARN/CRIT/UNKNOWN)

detail-syntax (CheckDisk, check_files)
Detail level syntax.
This is the syntax of each item in the list of top-syntax (see above).
Possible values are:
Key Value
%(access) Last access time
%(age) Seconds since file was last written
%(creation) When file was created
%(file) The name of the file
%(filename) The name of the file
%(line_count) Number of lines in the file (text files)
%(name) The name of the file
%(path) Path of file
%(size) File size
%(total) True if this is the total object
%(version) Windows exe/dll file version
%(write) Alias for written
%(written) When file was last written to
${count} Number of items matching the filter
${total} Total number of items
${ok_count} Number of items matched the ok criteria
${warn_count} Number of items matched the warning criteria
${crit_count} Number of items matched the critical criteria
${problem_count} Number of items matched either warning or critical criteria
${list} A list of all items which matched the filter
${ok_list} A list of all items which matched the ok criteria
${warn_list} A list of all items which matched the warning criteria
${crit_list} A list of all items which matched the critical criteria
${problem_list} A list of all items which matched either the critical or the warning criteria
${status} The returned status (OK/WARN/CRIT/UNKNOWN)

perf-syntax (CheckDisk, check_files)
Performance alias syntax.
This is the syntax for the base names of the performance data.
Possible values are:
Key Value
%(access) Last access time
%(age) Seconds since file was last written
%(creation) When file was created
%(file) The name of the file
%(filename) The name of the file
%(line_count) Number of lines in the file (text files)
%(name) The name of the file
%(path) Path of file
%(size) File size
%(total) True if this is the total object
%(version) Windows exe/dll file version
%(write) Alias for written
%(written) When file was last written to
${count} Number of items matching the filter
${total} Total number of items
${ok_count} Number of items matched the ok criteria
${warn_count} Number of items matched the warning criteria
${crit_count} Number of items matched the critical criteria
${problem_count} Number of items matched either warning or critical criteria
${list} A list of all items which matched the filter
${ok_list} A list of all items which matched the ok criteria
${warn_list} A list of all items which matched the warning criteria
${crit_list} A list of all items which matched the critical criteria
${problem_list} A list of all items which matched either the critical or the warning criteria
${status} The returned status (OK/WARN/CRIT/UNKNOWN)

path (CheckDisk, check_files)
The path to search for files under.
Notice that specifying multiple path will create an aggregate set you will not check each path individually.In other words if one path contains an error the entire check will result in error.
file (CheckDisk, check_files)
Alias for path.
paths (CheckDisk, check_files)
A comma separated list of paths to scan
pattern (CheckDisk, check_files)
The pattern of files to search for (works like a filter but is faster and can be combined with a filter).
max-depth (CheckDisk, check_files)
Maximum depth to recurse
total (CheckDisk, check_files)
Include the total of all matching files

check_drivesize

CheckDiskcheck_drivesize
Check the size (free-space) of a drive or volume.

Usage:

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
help-short N/A Show help screen (short format).
debug N/A Show debugging information in the log
show-all N/A Show debugging information in the log
filter N/A Filter which marks interesting items.
warning N/A Filter which marks items which generates a warning state.
warn N/A Short alias for warning
critical N/A Filter which marks items which generates a critical state.
crit N/A Short alias for critical.
ok N/A Filter which marks items which generates an ok state.
empty-syntax All drives ok Message to display when nothing matched filter.
empty-state unknown Return status to use when nothing matched filter.
perf-config N/A Performance data generation configuration
top-syntax ${status} ${problem_list} Top level syntax.
detail-syntax ${drive_or_name}: ${used}/${size} used Detail level syntax.
perf-syntax ${drive_or_id} Performance alias syntax.
drive N/A The drives to check.
ignore-unreadable N/A Ignore drives which are not reachable by the current user.
magic N/A Magic number for use with scaling drive sizes.
exclude N/A A list of drives not to check
total N/A Include the total of all matching drives

Arguments

help (CheckDisk, check_drivesize)
Show help screen (this screen)
help-csv (CheckDisk, check_drivesize)
Show help screen as a comma separated list.
This is useful for parsing the output in scripts and generate documentation etc
help-short (CheckDisk, check_drivesize)
Show help screen (short format).
debug (CheckDisk, check_drivesize)
Show debugging information in the log
show-all (CheckDisk, check_drivesize)
Show debugging information in the log
filter (CheckDisk, check_drivesize)
Filter which marks interesting items.
Interesting items are items which will be included in the check.
They do not denote warning or critical state but they are checked use this to filter out unwanted items.
Avalible options:
Key Value
drive Technical name of drive
drive_or_id Drive letter if present if not use id
drive_or_name Drive letter if present if not use name
free Shorthand for total_free (Number of free bytes)
id Drive or id of drive
name Descriptive name of drive
size Total size of drive
total_free Number of free bytes
total_used Number of used bytes
type Type of drive
used Number of used bytes
user_free Free space available to user (which runs NSClient++)
user_used Number of used bytes (related to user)
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


warning (CheckDisk, check_drivesize)
Filter which marks items which generates a warning state.
If anything matches this filter the return status will be escalated to warning.
Avalible options:
Key Value
drive Technical name of drive
drive_or_id Drive letter if present if not use id
drive_or_name Drive letter if present if not use name
free Shorthand for total_free (Number of free bytes)
id Drive or id of drive
name Descriptive name of drive
size Total size of drive
total_free Number of free bytes
total_used Number of used bytes
type Type of drive
used Number of used bytes
user_free Free space available to user (which runs NSClient++)
user_used Number of used bytes (related to user)
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


warn (CheckDisk, check_drivesize)
Short alias for warning
critical (CheckDisk, check_drivesize)
Filter which marks items which generates a critical state.
If anything matches this filter the return status will be escalated to critical.
Avalible options:
Key Value
drive Technical name of drive
drive_or_id Drive letter if present if not use id
drive_or_name Drive letter if present if not use name
free Shorthand for total_free (Number of free bytes)
id Drive or id of drive
name Descriptive name of drive
size Total size of drive
total_free Number of free bytes
total_used Number of used bytes
type Type of drive
used Number of used bytes
user_free Free space available to user (which runs NSClient++)
user_used Number of used bytes (related to user)
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


crit (CheckDisk, check_drivesize)
Short alias for critical.
ok (CheckDisk, check_drivesize)
Filter which marks items which generates an ok state.
If anything matches this any previous state for this item will be reset to ok.
Avalible options:
Key Value
drive Technical name of drive
drive_or_id Drive letter if present if not use id
drive_or_name Drive letter if present if not use name
free Shorthand for total_free (Number of free bytes)
id Drive or id of drive
name Descriptive name of drive
size Total size of drive
total_free Number of free bytes
total_used Number of used bytes
type Type of drive
used Number of used bytes
user_free Free space available to user (which runs NSClient++)
user_used Number of used bytes (related to user)
count Number of items matching the filter
total Total number of items
ok_count Number of items matched the ok criteria
warn_count Number of items matched the warning criteria
crit_count Number of items matched the critical criteria
problem_count Number of items matched either warning or critical criteria
list A list of all items which matched the filter
ok_list A list of all items which matched the ok criteria
warn_list A list of all items which matched the warning criteria
crit_list A list of all items which matched the critical criteria
problem_list A list of all items which matched either the critical or the warning criteria
status The returned status (OK/WARN/CRIT/UNKNOWN)


empty-syntax (CheckDisk, check_drivesize)
Message to display when nothing matched filter.
If no filter is specified this will never happen unless the file is empty.
empty-state (CheckDisk, check_drivesize)
Return status to use when nothing matched filter.
If no filter is specified this will never happen unless the file is empty.
perf-config (CheckDisk, check_drivesize)
Performance data generation configuration
TODO: obj ( key: value; key: value) obj (key:valuer;key:value)
top-syntax (CheckDisk, check_drivesize)
Top level syntax.
Used to format the message to return can include strings as well as special keywords such as:
Key Value
%(drive) Technical name of drive
%(drive_or_id) Drive letter if present if not use id
%(drive_or_name) Drive letter if present if not use name
%(free) Shorthand for total_free (Number of free bytes)
%(id) Drive or id of drive
%(name) Descriptive name of drive
%(size) Total size of drive
%(total_free) Number of free bytes
%(total_used) Number of used bytes
%(type) Type of drive
%(used) Number of used bytes
%(user_free) Free space available to user (which runs NSClient++)
%(user_used) Number of used bytes (related to user)
${count} Number of items matching the filter
${total} Total number of items
${ok_count} Number of items matched the ok criteria
${warn_count} Number of items matched the warning criteria
${crit_count} Number of items matched the critical criteria
${problem_count} Number of items matched either warning or critical criteria
${list} A list of all items which matched the filter
${ok_list} A list of all items which matched the ok criteria
${warn_list} A list of all items which matched the warning criteria
${crit_list} A list of all items which matched the critical criteria
${problem_list} A list of all items which matched either the critical or the warning criteria
${status} The returned status (OK/WARN/CRIT/UNKNOWN)

detail-syntax (CheckDisk, check_drivesize)
Detail level syntax.
This is the syntax of each item in the list of top-syntax (see above).
Possible values are:
Key Value
%(drive) Technical name of drive
%(drive_or_id) Drive letter if present if not use id
%(drive_or_name) Drive letter if present if not use name
%(free) Shorthand for total_free (Number of free bytes)
%(id) Drive or id of drive
%(name) Descriptive name of drive
%(size) Total size of drive
%(total_free) Number of free bytes
%(total_used) Number of used bytes
%(type) Type of drive
%(used) Number of used bytes
%(user_free) Free space available to user (which runs NSClient++)
%(user_used) Number of used bytes (related to user)
${count} Number of items matching the filter
${total} Total number of items
${ok_count} Number of items matched the ok criteria
${warn_count} Number of items matched the warning criteria
${crit_count} Number of items matched the critical criteria
${problem_count} Number of items matched either warning or critical criteria
${list} A list of all items which matched the filter
${ok_list} A list of all items which matched the ok criteria
${warn_list} A list of all items which matched the warning criteria
${crit_list} A list of all items which matched the critical criteria
${problem_list} A list of all items which matched either the critical or the warning criteria
${status} The returned status (OK/WARN/CRIT/UNKNOWN)

perf-syntax (CheckDisk, check_drivesize)
Performance alias syntax.
This is the syntax for the base names of the performance data.
Possible values are:
Key Value
%(drive) Technical name of drive
%(drive_or_id) Drive letter if present if not use id
%(drive_or_name) Drive letter if present if not use name
%(free) Shorthand for total_free (Number of free bytes)
%(id) Drive or id of drive
%(name) Descriptive name of drive
%(size) Total size of drive
%(total_free) Number of free bytes
%(total_used) Number of used bytes
%(type) Type of drive
%(used) Number of used bytes
%(user_free) Free space available to user (which runs NSClient++)
%(user_used) Number of used bytes (related to user)
${count} Number of items matching the filter
${total} Total number of items
${ok_count} Number of items matched the ok criteria
${warn_count} Number of items matched the warning criteria
${crit_count} Number of items matched the critical criteria
${problem_count} Number of items matched either warning or critical criteria
${list} A list of all items which matched the filter
${ok_list} A list of all items which matched the ok criteria
${warn_list} A list of all items which matched the warning criteria
${crit_list} A list of all items which matched the critical criteria
${problem_list} A list of all items which matched either the critical or the warning criteria
${status} The returned status (OK/WARN/CRIT/UNKNOWN)

drive (CheckDisk, check_drivesize)
The drives to check.
Multiple options can be used to check more then one drive or wildcards can be used to indicate multiple drives to check. Examples: drive=c, drive=d:, drive=*, drive=all-volumes, drive=all-drives
ignore-unreadable (CheckDisk, check_drivesize)
Ignore drives which are not reachable by the current user.
For instance Microsoft Office creates a drive which cannot be read by normal users.
magic (CheckDisk, check_drivesize)
Magic number for use with scaling drive sizes.
exclude (CheckDisk, check_drivesize)
A list of drives not to check
total (CheckDisk, check_drivesize)
Include the total of all matching drives
comments powered by Disqus

Table Of Contents

Previous topic

CauseCrashes — CauseCrashes

Next topic

CheckEventLog — CheckEventLog

This Page