...
One of the main features that make Shinken makes Shinken Enterprise so flexible is the ability to use datas in command defintions. datas Datas allow you to reference information from hosts, services, and other sources in your commands.
data Substitution - How datas Work
Before Shinken Enterprise executes a command, it will replace any datas it finds in the command definition with their corresponding values. This data substitution occurs for all types of commands that Shinken Enterprise executes - host and service checks, notifications, event handlers, etc.
...
Tip: If, you need to have the '$' character in one of your command (and not referring to a data), please put "$$" instead. Shinken Enterprise will replace it well
Example 1: Host Address data
...
| Property | Value |
|---|---|
| Name | check_ping |
| command_line | /var/lib/shinkenShinken Enterprise/libexec/check_ping -H $HOSTADDRESS$ -w 100.0,90% -c 200.0,60% |
...
| Code Block | ||
|---|---|---|
| ||
/var/lib/shinkenShinken Enterprise/libexec/check_ping -H 192.168.1.2 -w 100.0,90% -c 200.0,60% |
...
| Property | Value |
|---|---|
| Name | check_ping |
| command line | /var/lib/shinkenShinken Enterprise/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ |
...
| Code Block | ||
|---|---|---|
| ||
/var/lib/shinkenShinken Enterprise/libexec/check_ping -H 192.168.1.2 -w 200.0,40% -c 400.0,80% |
...