Command 'monitoring'

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

Changes (4)

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 | [Delivered outgoing messages|#remote-transporter-delivered-outgoing-messages] | {{-o tcp-transporter -f delivered-outgoing-messages}} |
| Remote transporter | [Incoming connection pools|#remote-transporter-incoming-connection-pool] | {{-o tcp-transporter -f incoming-connections}} |
| Remote transporter | [Delivered incoming messages|#remote-transporter-delivered-incoming-messages] | {{-o tcp-transporter -f delivered-incoming-messages}} |

h2. Petals Components
{code}

h4. {anchor:remote-transporter-delivered-outgoing-messages}Delivered outgoing messages

Delivered outgoing messages counters are available through the sub function '{{delivered-outgoing-messages}}' of the monitored object '{{tcp-transporter}}'. It's usage is:
{code}
[--list-containers] | [--query-containers [NAME] | [SUCCEEDED|PENDING|ERROR <index>]] | [-t]
{code}

\\
'{{--list-containers}}' returns the list of all remote-containers for which messages was sent, 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 delivered-outgoing-messages -- --list-containers
sample-0
sample-1
sample-2
{code}

\\
'{{--query-containers}}' returns query result about remote container:
|| Query argument || Description ||
| {{NAME}} | returns remote container names by index. It is used to known which remote container name is associated to index. The output format is: {{<index>!<remote-container>}}, one remote container per line. |
| {{SUCCEEDED}} | returns the number of succeeded delivered messages per remote container. The remote container is expressed by its index. The output format is: {{<index>!<value>}}, one remote container per line. If an index value is set on the command line, the output is limited to the provided index, and only the value is displayed. |
| {{PENDING}} | returns the number of pending message delivery per remote container. The remote container is expressed by its index. The output format is: {{<index>!<value>}}, one remote container per line. If an index value is set on the command line, the output is limited to the provided index, and only the value is displayed. |
| {{ERROR}} | returns the number of delivered messages with error per remote-container. The remote-container is expressed by its index. The output format is: {{<index>!<value>}}, one remote container per line. If an index value is set on the command line, the output is limited to the provided index, and only the value is displayed. |
{code}
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f delivered-outgoing-messages -- --query-containers SUCCEEDED
sample-0!182830
sample-1!86587
sample-2!365448
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f delivered-outgoing-messages -- --query-containers SUCCEEDED sample-1
86587
{code}

\\
'{{-t}}' displays a human readable table of all values about delivered messages:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f delivered-outgoing-messages -- -t
| Remote Container | Delivery Status || Value |
------------------------------------------------
| sample-0 | ERROR || 1 |
| sample-0 | SUCCEEDED || 182830 |
| sample-0 | PENDING || 5 |
| sample-1 | ERROR || 0 |
| sample-1 | SUCCEEDED || 86587 |
| sample-1 | PENDING || 0 |
| sample-2 | ERROR || 2 |
| sample-2 | SUCCEEDED || 365448 |
| sample-2 | PENDING || 0 |
{code}

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

{code}

h4. {anchor:remote-transporter-delivered-incoming-messages}Delivered incoming messages

Delivered incoming messages counters are available through the sub function '{{delivered-incoming-messages}}' of the monitored object '{{tcp-transporter}}'. It's usage is:
{code}
[--list-containers] | [--query-containers [NAME] | [SUCCEEDED|PENDING|ERROR <index>]] | [-t]
{code}

\\
'{{--list-containers}}' returns the list of all remote-containers for which messages was received, 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 delivered-incoming-messages -- --list-containers
sample-0
sample-1
sample-2
{code}

\\
'{{--query-containers}}' returns query result about remote container:
|| Query argument || Description ||
| {{NAME}} | returns remote container names by index. It is used to known which remote container name is associated to index. The output format is: {{<index>!<remote-container>}}, one remote container per line. |
| {{SUCCEEDED}} | returns the number of succeeded delivered messages per remote container. The remote container is expressed by its index. The output format is: {{<index>!<value>}}, one remote container per line. If an index value is set on the command line, the output is limited to the provided index, and only the value is displayed. |
| {{PENDING}} | returns the number of pending message delivery per remote container. The remote container is expressed by its index. The output format is: {{<index>!<value>}}, one remote container per line. If an index value is set on the command line, the output is limited to the provided index, and only the value is displayed. |
| {{ERROR}} | returns the number of delivered messages with error per remote-container. The remote-container is expressed by its index. The output format is: {{<index>!<value>}}, one remote container per line. If an index value is set on the command line, the output is limited to the provided index, and only the value is displayed. |
{code}
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f delivered-incoming-messages -- --query-containers SUCCEEDED
sample-0!182830
sample-1!86587
sample-2!365448
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f delivered-incoming-messages -- --query-containers SUCCEEDED sample-1
86587
{code}

\\
'{{-t}}' displays a human readable table of all values about delivered messages:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o tcp-transporter -f delivered-incoming-messages -- -t
| Remote Container | Delivery Status || Value |
------------------------------------------------
| sample-0 | ERROR || 1 |
| sample-0 | SUCCEEDED || 182830 |
| sample-0 | PENDING || 5 |
| sample-1 | ERROR || 0 |
| sample-1 | SUCCEEDED || 86587 |
| sample-1 | PENDING || 0 |
| sample-2 | ERROR || 2 |
| sample-2 | SUCCEEDED || 365448 |
| sample-2 | PENDING || 0 |
{code}

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