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
echo"CHECK_RANCHER2 OK - All nodes OK - Info: ${nodeignored[*]}|'nodes_total'=${#node_names[*]};;;; 'node_errors'=${#nodeerrors[*]};;;; 'node_ignored'=${#nodeignored[*]};;;;"
272
+
exit${STATE_OK}
264
273
else
265
-
echo"CHECK_RANCHER2 OK - All ${#node_names[*]} nodes are active|'nodes_total'=${#node_names[*]};;;; 'node_errors'=${#nodeerrors[*]};;;;"
274
+
echo"CHECK_RANCHER2 OK - All ${#node_names[*]} nodes are active|'nodes_total'=${#node_names[*]};;;; 'node_errors'=${#nodeerrors[*]};;;; 'node_ignored'=${#nodeignored[*]};;;;"
266
275
exit${STATE_OK}
267
276
fi
268
277
@@ -285,18 +294,24 @@ else
285
294
forstatusin${node_status[$i]}
286
295
do
287
296
if [[ ${status}!= active ]];then
288
-
nodeerrors[$i]="${node} in cluster ${clustername} is ${node_status[$i]} -"
297
+
if [[ -n$(echo ${ignore}| grep -i ${status}) ]];then
298
+
nodeignored[$i]="${node} in cluster ${node_cluster_member[$i]} is ${node_status[$i]} but ignored -"
299
+
else
300
+
nodeerrors[$i]="${node} in cluster ${clustername} is ${node_status[$i]} -"
echo"CHECK_RANCHER2 OK - All nodes OK - Info: ${nodeignored[*]}|'nodes_total'=${#node_names[*]};;;; 'node_errors'=${#nodeerrors[*]};;;; 'node_ignored'=${#nodeignored[*]};;;;"
312
+
exit${STATE_OK}
298
313
else
299
-
echo"CHECK_RANCHER2 OK - All ${#node_names[*]} nodes are active|'nodes_total'=${#node_names[*]};;;; 'node_errors'=${#nodeerrors[*]};;;;"
314
+
echo"CHECK_RANCHER2 OK - All ${#node_names[*]} nodes are active|'nodes_total'=${#node_names[*]};;;; 'node_errors'=${#nodeerrors[*]};;;; 'node_ignored'=${#nodeignored[*]};;;;"
0 commit comments