CHECK-PATRONI(1)
π check-patroni β like, the manual page, but make it make sense π
okay bestie, pull up a chair π«Ά this is the user manual for check-patroni, a Nagios plugin that lives in the User Commands corner of your man pages. Think of it as the little gossipy friend who keeps tabs on your Patroni cluster so you don't have to π
β¨ NAME β¨
check-patroni β a Nagios plugin to check on patroni. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
check_patroni [OPTIONS] COMMAND [ARGS]...
like, options first, then a command, then whatever args that command wants. no cap. β¨
πΈ DESCRIPTION πΈ
okay so. this is a Nagios plugin that uses Patroni's REST API to monitor a Patroni cluster. it pokes the API, it looks at the cluster, it reports back. main character energy fr fr. π
π OPTIONS π
--config FILEβ read option defaults from the specified INI file. the default isconfig.ini, so if you don't say anything it's gonna go looking for that. π-e,--endpoints TEXTβ the Patroni API endpoint. you can drop it multiple times, or hand over a list of comma separated addresses, your call bestie. here's the tea though β: the node services check the status of one node, so if you list several addresses they should point to different interfaces on the same node. the cluster services check the status of the whole cluster, so for those it's better to give a list of all the Patroni node addresses. default ishttp://127.0.0.1:8008π--cert_file PATHβ file with the client certificate. π--key_file PATHβ file with the client key. π--ca_file PATHβ the CA certificate. ποΈ-v,--verboseβ increase verbosity!-vfor info,-vvfor warning,-vvvfor debug. the more v's, the more it tells you. obsessed. π₯--versionβ shows the version, obviously. β¨--timeout INTEGERβ timeout in seconds for the API queries, and0disables the timeout entirely. default is2. β°--helpβ show this message and exit. the classic. π«Ά
π Commands π
these are the actual checks you can run. pick your fighter:
cluster_config_has_changedβ check if the hash of the configuration... πcluster_has_leaderβ check if the cluster has a leader. πcluster_has_replicaβ check if the cluster has healthy replicas... π¦cluster_has_scheduled_actionβ check if the cluster has a scheduled... πcluster_is_in_maintenanceβ check if the cluster is in maintenance... π οΈcluster_node_countβ count the number of nodes in the cluster. π’node_is_aliveβ check if the node is alive ie patroni is... πnode_is_leaderβ check if the node is a leader node. πnode_is_pending_restartβ check if the node is in pending restart... πnode_is_primaryβ check if the node is the primary with the... πΈnode_is_replicaβ check if the node is a replica with no... πnode_patroni_versionβ check if the version is equal to the input πnode_tl_has_changedβ check if the timeline has changed. β³
and that's the whole page bestie, no notes π this was Version 2.2.0, dated April 2025, straight out of the CHECK-PATRONI(1) manual. go monitor something iconic. periodt. π
β¨π«Ά
π¦ where this page comes from
- debian trixie: check-patroni 2.2.0-2 Β· PostgreSQL
- ubuntu resolute: check-patroni 2.2.0-2 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms