CHECK-PATRONI(1)

πŸ“¦
version 2.2.0 Β· 3 versions
, in debian trixie, ubuntu resolute

πŸ’– 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 is config.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 is http://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! -v for info, -vv for warning, -vvv for 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, and 0 disables the timeout entirely. default is 2. ⏰
  • --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