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[ -H | --apihost ] Address of Rancher 2 API (e.g. rancher.example.com)
@@ -165,13 +166,14 @@ Options:
165
166
\t[ -n | --namespacename ] Namespace name (needed for specific workload or pod checks)
166
167
\t[ -w | --workloadname ] Workload name (for specific workload check)
167
168
\t[ -o | --podname ] Pod name (for specific pod check, this makes only sense if you use static pods)
168
-
\t[ -i | --ignore ] Comma-separated list of status(es) to ignore (on node and workload check type) or list of workload name(s) to ignore (on workload check type)
169
-
\t[ --cpu-warn ] Exit with WARNING status if more than PERCENT of cpu capacity is used (currently only supported in cluster specific node and cluster check type)
170
-
\t[ --cpu-crit ] Exit with CRITICAL status if more than PERCENT of cpu capacity is used (currently only supported in cluster specific node and cluster check type)
171
-
\t[ --memory-warn ] Exit with WARNING status if more than PERCENT of mem capacity is used (currently only supported in cluster specific node and cluster check type)
172
-
\t[ --memory-crit ] Exit with CRITICAL status if more than PERCENT of mem capacity is used (currently only supported in cluster specific node and cluster check type)
173
-
\t[ --pods-warn ] Exit with WARNING status if more than PERCENT of pod capacity is used (currently only supported in cluster specific node and cluster check type)
174
-
\t[ --pods-crit ] Exit with CRITICAL status if more than PERCENT of pod capacity is used (currently only supported in cluster specific node and cluster check type)
169
+
\t[ -i | --ignore ] Comma-separated list of status(es) to ignore (node and workload check types), list of workload name(s) to ignore (workload check type) or certificate to ignore (local-certs check type)
170
+
\t[ --cpu-warn ] Exit with WARNING status if more than PERCENT of cpu capacity is used (supported check types: node, cluster)
171
+
\t[ --cpu-crit ] Exit with CRITICAL status if more than PERCENT of cpu capacity is used (supported check types: node, cluster)
172
+
\t[ --memory-warn ] Exit with WARNING status if more than PERCENT of mem capacity is used (supported check types: node, cluster)
173
+
\t[ --memory-crit ] Exit with CRITICAL status if more than PERCENT of mem capacity is used (supported check types: node, cluster)
174
+
\t[ --pods-warn ] Exit with WARNING status if more than PERCENT of pod capacity is used (supported check types: node, cluster)
175
+
\t[ --pods-crit ] Exit with CRITICAL status if more than PERCENT of pod capacity is used (supported check types: node, cluster)
176
+
\t[ --cert-warn ] Warning threshold in days to warn before a certificate expires (supported check types: local-certs)
175
177
\t[ -h | --help ] Help. I need somebody. Help. Not just anybody. Heeeeeelp!
176
178
177
179
Check Types:
@@ -181,6 +183,7 @@ Check Types:
181
183
\tproject -> Checks the current status of all projects or of a specific project (defined with -p projectid)
182
184
\tworkload -> Checks the current status of all or a specific (-w workloadname) workload within a project (-p projectid must be set!)
183
185
\tpod -> Checks the current status of all or a specific (-o podname -n namespace) pod within a project (-p projectid must be set!)
186
+
\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)
echo"CHECK_RANCHER2 OK - All ${#cert_names[*]} certificates are valid ${ignoreoutput}|'total_certs'=${#cert_names[*]};;;; 'expired_certs'=${#cert_expired[*]};;;; 'warning_certs'=${#cert_warning[*]};;;; 'ignored_certs'=${#cert_ignored[*]};;;;"
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$"
83
+
}
80
84
"-h" = {
81
85
description = "Help. I need somebody. Help. Not just anybody. Heeeeeelp!"
0 commit comments