mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Update check_mk_agent_freebsd
This commit is contained in:
@@ -168,7 +168,7 @@ mount -p -t ufs
|
|||||||
echo '<<<ps>>>'
|
echo '<<<ps>>>'
|
||||||
COLUMNS=10000
|
COLUMNS=10000
|
||||||
if [ "$is_jailed" = "0" ]; then
|
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
|
else
|
||||||
ps ax -o user,vsz,rss,pcpu,command | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,\2,\3,\4) /'
|
ps ax -o user,vsz,rss,pcpu,command | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,\2,\3,\4) /'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user