mirror of
https://github.com/stylersnico/prtg_systemd_docker_http_push.git
synced 2026-06-04 16:08:37 +02:00
Fixed bad extract of first container
This commit is contained in:
@@ -71,7 +71,7 @@ EOF
|
||||
# Collect stats
|
||||
STATS=$(docker stats --no-stream --no-trunc \
|
||||
--format "{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}" \
|
||||
$CONTAINERS 2>/dev/null | tail -n +2)
|
||||
$CONTAINERS 2>/dev/null | tail -n +1)
|
||||
|
||||
# Create error file if feedback is empty
|
||||
if [[ -z "$STATS" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user