Skip to content

Commit

Permalink
Update check_mk_agent_freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
laf committed Apr 21, 2016
1 parent cdd235a commit 1c13779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_mk_agent_freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ mount -p -t ufs
echo '<<<ps>>>'
COLUMNS=10000
if [ "$is_jailed" = "0" ]; then
ps ax -o state,user,vsz,rss,pcpu,command | sed -e 1d -e '/\([^ ]*J\) */d' -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\2,\3,\4,\5) /'
ps ax -o user,vsz,rss,cputime,pid,command | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,\2,\3,\4,\5) /'
else
ps ax -o user,vsz,rss,pcpu,command | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,\2,\3,\4) /'
fi
Expand Down

0 comments on commit 1c13779

Please sign in to comment.