You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\t[ --memory-crit ] Exit with CRITICAL status if more than PERCENT of mem capacity is used (supported check types: node, cluster)
175
176
\t[ --pods-warn ] Exit with WARNING status if more than PERCENT of pod capacity is used (supported check types: node, cluster)
176
177
\t[ --pods-crit ] Exit with CRITICAL status if more than PERCENT of pod capacity is used (supported check types: node, cluster)
177
-
\t[ --cert-warn ] Warning threshold in days to warn before a certificate expires (supported check types: local-certs)
178
+
\t[ --cert-warn ] DEPRECATED, use --expiry-warn
179
+
\t[ --expiry-warn ] Warning threshold in days to warn before a local certificate or API token expires (supported check types: local-certs, api-token)
178
180
\t[ -h | --help ] Help. I need somebody. Help. Not just anybody. Heeeeeelp!
179
181
180
182
Check Types:
@@ -185,6 +187,7 @@ Check Types:
185
187
\tworkload -> Checks the current status of all or a specific (-w workloadname) workload within a project (-p projectid must be set!)
186
188
\tpod -> Checks the current status of all or a specific (-o podname -n namespace) pod within a project (-p projectid must be set!)
187
189
\tlocal-certs -> Checks the current status of all internal Rancher certificates (e.g. rancher-webhook) in local cluster under the System project (namespace: cattle-system)
190
+
\tapi-token -> Checks the expiry of the API token used for this plugin
description = "Exit with CRITICAL status if more than PERCENT of pod capacity is used (currently only supported in cluster specific node and cluster check type)"
78
78
value = "$rancher2_pods_crit$"
79
79
}
80
-
"--cert-warn" = {
81
-
description = "Warning threshold in days to warn before a certificate expires (supported check types: local-certs)"
82
-
value = "$rancher2_cert_warn$"
80
+
"--expiry-warn" = {
81
+
description = "Warning threshold in days to warn before a certificate or API token expires (supported check types: local-certs, api-token)"
82
+
value = "$rancher2_expiry_warn$"
83
83
}
84
84
"-h" = {
85
85
description = "Help. I need somebody. Help. Not just anybody. Heeeeeelp!"
0 commit comments