APM UMA - "sh: xargs: command not found" warnings messages in containerinfo logs
search cancel

APM UMA - "sh: xargs: command not found" warnings messages in containerinfo logs

book

Article ID: 276361

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

We are getting Xargs errors in the app monitor container.

Err while executing command '["sh" "-c" "systick=$(getconf CLK_TCK); for c in /proc/*/cmdline; do d=$(dirname $c); name=$(grep Name: $d/status 2>/dev/null) || continue; pid=$(basename $d); uid=$(grep Uid: $d/status 2>/dev/null) || continue; uid=$(echo ${uid#Uid:} | xargs); uid=${uid%% *}; cmdline=$(cat $c|xargs -0 echo 2>/dev/null) || continue; starttime=$(($(awk '{print $22}' $d/stat 2>/dev/null || echo 0) / systick)); uptime=$(awk '{print int($1)}' /proc/uptime); elapsed=$(($uptime-$starttime)); echo $pid $uid $elapsed $cmdline; done"]' for container... err:

sh: xargs: command not found
sh: xargs: command not found
sh: xargs: command not found
sh: xargs: command not found
....

 

How to prevent the messages?

Environment

APM UMA 

Cause

This problem is related to defect # DE583828

UMA is trying to get the details of processes in the container and as part of that xargs warnings are seen. When xargs doesn't work UMA has a fallback mechanism to get that information and hence the xargs is marked as a warning message and not error. 

If the java auto attach is happening as expected, xargs error can be ignored. 

Resolution

-None

-To be fixed in next APM UMA release.

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-agents/SaaS/Universal-Monitoring-Agent/universal-monitoring-agent-troubleshooting.html