MID Server ECC Queue
The External Communication Channel (ECC) Queue is a connection point between an instance and the MID Server. Jobs that the MID Server needs to perform are saved in this queue until the MID Server is ready to handle them.
Asynchronous Message Bus
The MID Server subscribes to messages published by the Asynchronous Message Bus (AMB), which notifies the MID Server that it has pending task records in the ECC Queue. If a task exists in the ECC Queue for that MID Server, the MID Server sets the status to "Processing". When finished working on a requested job, the MID Server reports back to the ECC queue with the results.
The MID Server opens a persistent connection to the instance through the AMB Client and listens on the /mid/server/<mid_sys_id> AMB channel. When an output record is inserted into the Queue [ecc_queue] table, an AMB message is sent to the MID Server's channel. The MID Server receives this message and immediately polls the ecc_queue table for work, unless the MID Server is busy and the message priority level is not Interactive.
The MID Server polls the ECC queue at the maximum regular interval defined in the mid.poll.time configuration parameter (40 seconds by default), regardless of AMB message activity. If the MID is busy and receeives an AMB message witrh a priority level other than Interactive, the queue poll time changes to mid.poll.time.standard (5 seconds by default). This polling of the ECC queue at a regular interval is done in case the AMB connection is dropped.
ECC Queue information
| Field | Input value |
|---|---|
| Agent | The name of the external system that this messages is either from or to. If
the message is from or to a MID Server, the agent name is in the form
mid.server.xxx, where xxx is the name of a particular MID
Server. |
| Topic | The name of the probe the MID server ran. If you are using a pattern for discovery, the Horizontal Pattern probe Horizontal Pattern probe appears. |
| Name | The actual command the probe ran. For example, if
Topic is SSHCommand, then the Name
field contains the actual shell command to run. If you are using a pattern for
discovery, the following appears: Pattern Launcher: followed by the name of the pattern and the multipage number. |
| Source | The IP address that the discovery is to run against. A few probes run against multiple IP addresses; in those cases, this field contains a human-readable description. |
| Response to | This optional field contains a reference (sys_id) to the ECC Queue message that this message is in response to. Discovery makes extensive use of this field to track the hierarchy of messages that result from a given scheduled Discovery. Click the record icon for the value in this field to open the ECC Queue record for the activity that spawned the current probe or sensor record. |
| Queue | An indicator of whether this message was is an input message or an output message. |
| State | The state of the current ECC queue record. States update automatically. |
| Processed | The time when this message was processed. |
| Created | The time when this message was created. |
| Sequence | The unique sequence number for this message. This value is automatically generated when an ECC Queue record is inserted. Its use is deprecated. |
| Error string | An error message, if an error occurred during processing. This field is hidden on the standard form unless there was an error. |
| Payload | The body of the message in XML format. The returned XML has a root tag of
<results> containing one or more
<result> tags and a single <parameters>
tag. The parameters are simply an echo of those sent to the MID server in the
probe; they vary from probe to probe, but in general they tell the probe the
details of what it is to do and how it should behave. The result tags are the most
interesting ones: they contain the actual data generated by the probe. |
ECC queue controls
| Related link | Description |
|---|---|
| Run again | Runs the probe again. You can re-run probes when you encounter a failed discovery or other unexpected results. |
| Go to CMDB item | Open the CI record for the CI that was updated during the discovery. |
| Go to Sensor | Open the record for the associated sensor. |
ECC Queue retry policy
The ECC Queue Retry Policy plugin (com.glideapp.ecc_retry_policy) needs to be activated to be able to view the ECC Queue Retry Policy and Queue Retry Activity modules.
Manage ECC Queue content for a MID Server
The ECC Queue allows you to create ECC Queue messages, access MID Server log entries, and retrieve statistics from an individual MID Server record.
始める前に
Role required: admin, mid_server
手順
-
Send remote commands through a MID Server to a hosting device directly from the
ECC Queue without running Discovery.
-
Access entries in the ECC Queue that show agent0.log.0
logs and wrapper.log logs for an individual MID
Server.
-
Access the queue.stats topic for useful information
about individual MID Servers, such as memory and CPU usage data.