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"