Skip to content

Commit 4320362

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # account.yaml
2 parents 8c6ac89 + d6cd125 commit 4320362

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Nagios-style checks against Kubernetes API. Designed for usage with Nagios, Icin
3232
- Unbound Persistent Volumes in unboundpvs mode; default is 5
3333
- Job failed count in jobs mode; default is 2
3434
- Pvc storage utilization; default is 90%
35-
-b Brief mode (more suitable for Zabbix)
3635
-M EXIT_CODE Exit code when resource is missing; default is 2 (CRITICAL)
3736
-h Show this help and exit
3837

@@ -113,7 +112,7 @@ Check utilization if pvc (if consumes more than %):
113112
CRITICAL. Very high storage utilization on pvc prometheus-data: 93% (86106636288/157459890176 Bytes)
114113

115114

116-
## Brief mode
115+
## Brief mode (removed in v1.1.0)
117116

118117
All modes support the -b brief option. In this mode, a single numerical output is returned. The number is positive on success and zero or negative on error.
119118

check_kubernetes.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ mode_nodes() {
164164
.status")"
165165
if [ "$ready" != True ]; then
166166
EXITCODE=2
167-
OUTPUT="ERROR. ${OUTPUT}Node $node not ready\n"
167+
OUTPUT="${OUTPUT}Node $node not ready. "
168168
fi
169169
for condition in OutOfDisk MemoryPressure DiskPressure; do
170170
state="$(echo "$data" | jq -r ".items[] | select(.metadata.name==\"$node\") | \
171171
.status.conditions[] | select(.type==\"$condition\") | \
172172
.status")"
173173
if [ "$state" = True ]; then
174174
[ $EXITCODE -lt 1 ] && EXITCODE=1
175-
OUTPUT="WARN. ${OUTPUT} $node $condition\n"
175+
OUTPUT="${OUTPUT} $node $condition. "
176176
fi
177177
done
178178
done

0 commit comments

Comments
 (0)