1
0
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:
Jens Maus 2018-10-22 14:37:23 +02:00
parent 32af469212
commit e79be1cd9e
No known key found for this signature in database
GPG Key ID: F015DB70F176184A

View File

@ -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]"