Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

2.5. Script - Server

Overview

Table 2.48. Overview

Description:A resource with a command line executable or script as its management interface
Singleton: no
Plugin:Script

Child Resource Types

none

Autodiscovery Process Scans

none

Connection Properties

Table 2.49. 

NameDescriptionRequiredInternal Name
ExecutableThe full path to the command line executable or script yes executable
Working DirectoryWhen the executable is invoked, this will be its working directory. no workingDirectory
Environment VariablesEnvironment variables that are set when executing the executable no environmentVariables
Availability Execute CheckIf specified and true, the ability to successfully execute the executable can determine whether or not the managed resource is considered up and available. If you set this to true, you normally do not set the availability regex settings in order to allow availability to be determined based solely on the successful execution, regardless of the exit code or output. If this is false, setting one of the avail regex settings will override it as if it were true. no availabilityExecuteCheck
Availability Exit Code RegexIf specified, the executable must return an exit code that matches this regular expression if the managed resource is to be considered up and available no availabilityExitCodeRegex
Availability Output RegexIf specified, the executable must output text that matches this regular expression if the managed resource is to be considered up and available. Expression is evaluated by Pattern.find() so match actually means first match found in text. Pattern `OK` matches multiline text `Service status\n is OK`. By default ^$ represent start/end of output text. To match start/end of line add (?m). eg. `(?m)^ is OK$`. To match whole multi-line output use (?s), eg. `(?s)Service.*OK`. no availabilityOutputRegex
Availability ArgumentsIf the executable needs to be executed in order to determine availability, these are the arguments that will be passed to the executable. If you do not specify the regex settings and you set the execute check setting to false, the executable will not be executed and these arguments will not be used - in this case, availability will be determined by the mere existence of the executable file. no availabilityArguments
Version ArgumentsThe arguments to pass to the executable that will help determine the version of the managed resource no versionArguments
Version RegexThe regex that can pick out the version from the executable output. If the regex has a captured group, its matched content will be used as the version. If there is no captured group, the entire output will be used as the version. no versionRegex
Fixed VersionIf specified, this will be the version of the managed resource - the executable will not be invoked to determine it. no fixedVersion
Description ArgumentsThe arguments to pass to the executable that will help determine the managed resource description. This can be arguments to enable verbose version output. no descriptionArguments
Description RegexThe regex that can pick out the description from the executable output. If the regex has a captured group, its matched content will be used as the description. If there is no captured group, the entire output will be used as the description. no descriptionRegex
Fixed DescriptionIf specified, this will be the description of the managed resource - the executable will not be invoked to determine it. no fixedDescription
Enable Quoting of Arguments
  1. In unquoted text: the escape character preserves the value of any following character
  2. In double-quoted text: the escape character escapes " and itself otherwise is both the escape character and the following character are left intact
  3. In single-quoted text: no escaping can occur
yes quotingEnabled
Escape CharacterThe escape character to be used when parsing arguments. By default the escape character is backslash. yes escapeCharacter

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

none

Configuration Properties

none

Operations

Table 2.50. Metrics

NameDescription
ExecuteExecutes the executable with a set of arguments and returns the output and exit code.

Package Types

none