TracNav

CheckHelpers

Various helper function to extend other checks.

Queries (Overview)

A list of all avalible queries (check commands)

  • check_always_warning Run another check and regardless of its return code return WARNING.
  • check_always_critical Run another check and regardless of its return code return CRITICAL.
  • check_always_ok Run another check and regardless of its return code return OK.
  • check_multi Run more then one check and return the worst state.
  • check_timeout Run a check and timeout after a given amount of time if the check has not returned.
  • check_ok Just return OK (anything passed along will be used as a message).
  • check_critical Just return CRITICAL (anything passed along will be used as a message).
  • check_warning Just return WARNING (anything passed along will be used as a message).
  • check_version Just return the NSClient++ version.
  • check_negate Run a check and alter the return status codes according to arguments.

Aliases

A list of all avalible aliases for queries and check commands

  • CheckAlwaysWARNING Alternative name for: check_always_warning Run another check and regardless of its return code return WARNING.
  • negate Alternative name for: check_negate Run a check and alter the return status codes according to arguments.
  • CheckAlwaysOK Alternative name for: check_always_ok Run another check and regardless of its return code return OK.
  • CheckWARNING Alternative name for: check_warning Just return WARNING (anything passed along will be used as a message).
  • CheckCRITICAL Alternative name for: check_critical Just return CRITICAL (anything passed along will be used as a message).
  • CheckOK Alternative name for: check_ok Just return OK (anything passed along will be used as a message).
  • CheckVersion Alternative name for: check_version Just return the NSClient++ version.
  • CheckMultiple Alternative name for: check_multi Run more then one check and return the worst state.
  • CheckAlwaysCRITICAL Alternative name for: check_always_critical Run another check and regardless of its return code return CRITICAL.
  • timeout Alternative name for: check_timeout Run a check and timeout after a given amount of time if the check has not returned.

Commands (executable)

TODO: Add command list

Configuration

No configuration avalible for CheckHelpers

Queries (Reference)

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

check_always_warning

Run another check and regardless of its return code return WARNING.

For details on this command go to the check_always_warning page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.

check_always_critical

Run another check and regardless of its return code return CRITICAL.

For details on this command go to the check_always_critical page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.

check_always_ok

Run another check and regardless of its return code return OK.

For details on this command go to the check_always_ok page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.

check_multi

Run more then one check and return the worst state.

For details on this command go to the check_multi page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
arguments List of commands with arguments to run

check_timeout

Run a check and timeout after a given amount of time if the check has not returned.

For details on this command go to the check_timeout page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
timeout The timeout value
command Wrapped command to execute
arguments List of arguments (for wrapped command)
return The return status

check_ok

Just return OK (anything passed along will be used as a message).

For details on this command go to the check_ok page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.

check_critical

Just return CRITICAL (anything passed along will be used as a message).

For details on this command go to the check_critical page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.

check_warning

Just return WARNING (anything passed along will be used as a message).

For details on this command go to the check_warning page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.

check_version

Just return the NSClient++ version.

For details on this command go to the check_version page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
0 2 1 2012-08-08

check_negate

Run a check and alter the return status codes according to arguments.

For details on this command go to the check_negate page

Usage: (Click any option to go to the description page for that option)

Option Default value Description
help N/A Show help screen (this screen)
help-csv N/A Show help screen as a comma separated list.
ok The state to return instead of OK
warning The state to return instead of WARNING
critical The state to return instead of CRITICAL
unknown The state to return instead of UNKNOWN
command Wrapped command to execute
arguments List of arguments (for wrapped command)
Last modified 4 months ago Last modified on 01/31/13 14:10:58