Scroll to navigation

CHECK-PATRONI(1) User Commands CHECK-PATRONI(1)

NAME

check-patroni - Nagios plugin to check on patroni

SYNOPSIS

check_patroni [OPTIONS] COMMAND [ARGS]...

DESCRIPTION

Nagios plugin that uses Patroni's REST API to monitor a Patroni cluster.

OPTIONS

Read option defaults from the specified INI file [default: config.ini]
Patroni API endpoint. Can be specified multiple times or as a list of comma separated addresses. The node services checks the status of one node, therefore if several addresses are specified they should point to different interfaces on the same node. The cluster services check the status of the cluster, therefore it's better to give a list of all Patroni node addresses. [default: http://127.0.0.1:8008]
File with the client certificate.
File with the client key.
The CA certificate.
Increase verbosity -v (info)/-vv (warning)/-vvv (debug)

--version

Timeout in seconds for the API queries (0 to disable) [default: 2]
Show this message and exit.

Commands:

Check if the hash of the configuration...
Check if the cluster has a leader.
Check if the cluster has healthy replicas...
Check if the cluster has a scheduled...
Check if the cluster is in maintenance...
Count the number of nodes in the cluster.
Check if the node is alive ie patroni is...
Check if the node is a leader node.
Check if the node is in pending restart...
Check if the node is the primary with the...
Check if the node is a replica with no...
Check if the version is equal to the input
Check if the timeline has changed.
April 2024 Version 2.0.0