diff --git a/tools/runtime/nagios/ixp-manager-check-switch.sh b/tools/runtime/nagios/ixp-manager-check-switch.sh index ca0b3653b..7386fab95 100755 --- a/tools/runtime/nagios/ixp-manager-check-switch.sh +++ b/tools/runtime/nagios/ixp-manager-check-switch.sh @@ -75,9 +75,9 @@ else RETCODE=2; fi -while read line; do +echo $STATUS | jq -r '.msgs[]' | while read line; do echo -n "${line} " -done< <(echo $STATUS | jq -r '.msgs[]') +done echo