Quick Reference for Auto Setup
The companion Configuration Reference for GDMA Auto-Setup page is the comprehensive source for all detail about GDMA Auto Setup configuration. It should be consulted on particular topics if you need to know fine details, however if all you need is a quick reminder, this page may get you going more quickly.
Sensor Wrappers
There are only two kinds of sensor wrappers.
Sensor Wrapper Form | Object Being Configured | Brief Description |
---|---|---|
|
| This is the form for applying a host profile and whatever service profiles are attached to that host profile. |
|
| Apply the given service profile to the host if the sensor matches. This form leads to a proliferation of service profiles and is therefore not often used. |
| This is the common form for configuring services. |
Sensor tags are used to uniquely identify the outcome of individual sensors in the discovery results and analysis files.
Sensor Types
In every case in the following table, the "Yields" clause describes the set of strings that the sensor generates for matching against the sensor pattern
.
Sensor Category | Sensor Name | Brief Description |
---|---|---|
Fixed sensors |
| Yields one of: |
| Yields an OS-specific string, such as | |
| Yields one of: | |
| Yields one of: | |
Static sensors |
|
|
|
Searches active filesystem mount points and matches the specified filesystem types. Yields their respective mount-point filepaths. | |
|
Yields every line of every file specified by the resource. | |
Dynamic sensors |
| Yields OS-specific strings representing all services currently running on the machine. |
|
Yields the full command lines of all processes being run as one of the specified users. | |
|
Yields the port numbers of all listening ports on the GDMA client machine within the specified IP address block(s), which represent networks to which the machine might be connected. IP address ranges can also be negated and thereby excluded from consideration via the | |
| Yields strings usually (but not always) representing filesystem paths, of all open named sockets on the GDMA client machine. |
Sensor Directives
Sensor Directive | Brief Description |
---|---|
| Specifies what kind of resource you will be probing. See the Sensor Types table above. |
| Limits the resources against which the |
| Specifies how many times the |
| Specifies a Perl regular expression to be matched against whatever the sensor |
| Specifies character-level substitutions, deletions, and consecutive-duplicate-character squashing that should be carried out on strings captured by |
| Specifies which characters in |
| Name of the host profile to be applied to this GDMA machine if the sensor matches resources on the machine. |
| Name of the service profile to be applied to this GDMA machine if the sensor matches resources on the machine. |
| Name of the service to be applied to this GDMA machine if the sensor matches resources on the machine. More than one instance of the service may be applied, if the |
| Overrides the server-side check command in every host service generated by this sensor. |
| Arguments to be applied to the check command. |
| Arguments to be substituted into the service externals for each service generated by this sensor. Optional, no default. |
| Specifies how a service-instance suffix is constructed for every service generated from this sensor. Optional if |
| Specifies the service-instance command arguments for each service generated from this sensor. Optional. |
| Optional; if not supplied, service-instancel-level instance arguments will be inherited from those for the base base service. |
| Specifies whether matching of this sensor definition should be attempted. May be |
Trigger File Global Directives
Trigger Directive | Directive Value | Brief Description |
---|---|---|
| Specify how discovery results are to be handled if they duplicate what happened in the last round of similar-type (dry-run or live-action) discovery. In all cases, the discovery results are logged on the GDMA client. Optional; defaults to | |
| Stop after logging results on the client. Do not send results to the server even if | |
| Stop after logging results on the client, unless this is a live-action discovery ( | |
| After logging results on the client, carry on and do exactly what | |
| Specify how error reporting is to be handled if problems occur while analyzing discovery results or applying configuration changes in a dry run (i.e., when | |
| Ignore errors, except for saving them where they can be seen with the | |
| Save errors where they can be seen with the | |
| Override the server-side specification of the | |
| Make no changes to any existing configuration setup; only add new objects to the configuration. | |
| Specify how far the auto-discovery and auto-setup processing should proceed. This directive is required in all trigger files. | |
| The GDMA client should not attempt to download or process the instructions file. Used to test that the client can locate and download the trigger file. Since nothing is sent back to the server, you would need to look in the GDMA poller logfile on the client to see the result of this test. | |
| The GDMA client should attempt to download the instructions file, but stop there. Used to test that the client can locate and download the instructions file in addition to the trigger file. Since nothing is sent back to the server, you would need to look in the GDMA poller logfile on the client to see the result of this test. | |
| The GDMA client should run auto-discovery, but just capture them in a local file and not send them to the GroundWork server. May be used to test the discovery process if you would rather edit a copy of the instructions file on the client and use the | |
| The GDMA client should send discovery results to the GroundWork server, whether or not discovery worked. The server will perform minimal validation of the results and store them if the data is not corrupted, but stop there. | |
| The GroundWork server should perform full validation of the discovery results and store the analysis for forensic purposes, but stop there. | |
| The GroundWork server should perform a dry run of configuration database changes, then roll them back out. Used to test end-to-end validity of discovery instructions and compatibility of the discovery results with profiles and service definitions on the server, without risking any changes to the current configuration. | |
| The GroundWork server should fold all configuration changes into the database, commit them there, and build externals for the GDMA client. Thereafter, the client will pick up the new externals and begin monitoring with them, while Nagios will not see the new setup until the next time the administrator runs a Monarch Commit operation. |
Common Trigger Files
While the various trigger file directives provide a lot of flexibility, there are only five master trigger files that are likely to ever show up in practice. We give them descriptive names so they are easy to understand.
Master Trigger Filename | Trigger File Content | Brief Description |
---|---|---|
| # local trigger file, for use with | Parked on the GDMA client itself and used when developing sensor definitions there, for fast turnaround (not waiting for the GDMA polling cycle to come around, but initiating discovery whenever you want via the |
| # local trigger file, for use with | Parked on the GDMA client itself and used when developing sensor definitions there, for fast turnaround (not waiting for the GDMA polling cycle to come around, but initiating discovery whenever you want via the |
| # dry-run trigger file that forces | Parked either on the GDMA client or the GroundWork server. Used when the discovery instructions seem to be working as intended, but there is some trouble on the server side with configuration objects in Monarch that prevents final configuration based on the discovery results. Forcing duplicate discovery results to be sent to the server allows repeated dry-run tests as the server-side configuration objects (profiles and services) are adjusted. |
| # dry-run trigger file, | Parked on the GDMA server and installed by the |
| # live-action trigger file, | Parked on the GDMA server and installed by the |
Related Resources
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: