NetSaint Configuration

Command Configuration

Command Definition

Format:command[<command_name>]=<command_line>
Example 1: command[check-host-alive]=/usr/local/netsaint/libexec/check_ping $HOSTADDRESS$ 100 100 1000.0 1000.0
Example 2: command[check_pop]=/usr/local/netsaint/libexec/check_pop $HOSTADDRESS$
Example 3: command[check_disk]=/usr/local/netsaint/libexec/check_disk 85 95 $ARG1$

A command definition is just that. It defines a command. Commands that can be defined include service checks, service notifications, service event handlers, host checks, host notifications, and host event handlers. Command definitions can contain macros, but you must make sure that you include only those macros that are "valid" for the circumstances when the command will be used. More information on what macros are available and when they are "valid" can be found here. The different arguments to a command definition are outlined below.

<command_name> This is a short name used to identify the command. It is referenced in contact, host, and service definitions.
<command_line> This is what is actually executed by NetSaint when the command is used for service or host checks, notifications, or event handlers. Before the command line is executed, all valid macros are replaced with their respective values. See the documentation on macros for determining when you can use different macros. Note that the command line is not surrounded in quotes.