From 94a1388d0668cc987668763410c6366c07642c30 Mon Sep 17 00:00:00 2001 From: benoit Date: Wed, 23 Aug 2023 18:26:37 +0200 Subject: [PATCH] Update changelog for cluster_has_scheduled_action --- README.md | 20 ++++++++++++++++++++ docs/make_readme.sh | 2 ++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index 3fb6729..afbf52b 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,26 @@ Options: --help Show this message and exit. ``` +### cluster_has_scheduled_action + +``` +Usage: check_patroni cluster_has_scheduled_action [OPTIONS] + + Check if the cluster has a scheduled action (switchover or restart) + + Check: + * `OK`: If the cluster has no scheduled action + * `CRITICAL`: otherwise. + + Perfdata: + * `scheduled_actions` is 1 if the cluster has scheduled actions. + * `scheduled_switchover` is 1 if the cluster has a scheduled switchover. + * `scheduled_restart` counts the number of scheduled restart in the cluster. + +Options: + --help Show this message and exit. +``` + ### cluster_is_in_maintenance ``` diff --git a/docs/make_readme.sh b/docs/make_readme.sh index 6b1703b..2df0c37 100755 --- a/docs/make_readme.sh +++ b/docs/make_readme.sh @@ -162,6 +162,8 @@ readme "### cluster_has_leader" helpme cluster_has_leader readme "### cluster_has_replica" helpme cluster_has_replica +readme "### cluster_has_scheduled_action" +helpme cluster_has_scheduled_action readme "### cluster_is_in_maintenance" helpme cluster_is_in_maintenance readme "### cluster_node_count"