mirror of
https://github.com/alexreinert/homematic_check_mk.git
synced 2023-10-10 11:37:02 +00:00
made 'ps' call compatible to old homematic ccu2 busybox ps version.
This commit is contained in:
parent
32af469212
commit
e79be1cd9e
@ -66,7 +66,7 @@ proc handle_connection { channelId clientAddress clientPort } {
|
||||
puts $channelId "[exec egrep ^(/dev|ubi) < /proc/mounts]"
|
||||
|
||||
puts $channelId "<<<ps>>>"
|
||||
puts $channelId "[exec sh -c {ps ax -o user,vsz,rss,time,etime,pid,args | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,0,0,00:00:00\/00:00:00,\6) /'}]"
|
||||
puts $channelId "[exec sh -c {ps ax -o user,vsz,rss,pid,args | sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) */(\1,0,0,00:00:00\/00:00:00,\4) /'}]"
|
||||
|
||||
puts $channelId "<<<diskstat>>>"
|
||||
puts $channelId "[clock seconds]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user