Command 'monitoring'

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
| Local transporter | Delivered messages | {{-o local-transporter -f delivered-messages}} |
| Remote transporter | [Outgoing connection pools|#remote-transporter-outgoing-connection-pool] | {{-o tcp-transporter -f outgoing-connections}} |
| Remote transporter | [Incoming connection pools|#remote-transporter-incoming-connection-pool] | {{-o tcp-transporter -f incoming-connections}} |

h2. Petals Components
{code}

h4. {anchor:remote-transporter-incoming-connection-pool}Incoming connection pools

Several metrics about the incoming connection pools of the remoter transporter are available through the sub function '{{incoming-connections}}' of the monitored object '{{tcp-transporter}}'. It's usage is:
{code}
-c <remote-container-name>
{code}
where '{{<remote-container-name>}}' is the unique name as defined in the topology of the remote container from which incoming connections are established.
Returned metrics are:
* {{ActiveConnectionsMax}}, the maximum number of active connections (established and used),
* {{ActiveConnectionsCurrent}}, the current number of active connections (established and used),
* {{IdleConnectionsMax}}, the maximum number of idle connections (established but not used),
* {{IdleConnectionsCurrent}}, the current number of idle connections (established but not used),
* {{EstablishedConnections}}, the number of connections established since the last start of the transporter.

{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f incoming-connections -- -c sample-1
ActiveConnectionsMax:5 ActiveConnectionsCurrent:2 IdleConnectionsMax:2 IdleConnectionsCurrent:0 EstablishedConnections:13
{code}

If no remote container is given on the command line, a human readable table is returned displaying values for all remote containers knwon:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f incoming-connections
| RemoteContainer || ActiveConnectionsMax | ActiveConnectionsCurrent | IdleConnectionsMax | IdleConnectionsCurrent | EstablishedConnections |
---------------------------------------------------------------------------------------------------------------------------------------------
| sample-0 || 5 | 2 | 2 | 0 | 13 |
| sample-1 || 6 | 1 | 1 | 0 | 23 |
| sample-2 || 4 | 3 | 4 | 0 | 53 |
{code}

{anchor:subscription-objects}
h1. Subscription objects for Nagios