Bug #2099: Rework ps check

Date: 2013-12-17State: openClass: todoComponent: checks

The ps check for Linux and Windows needs to be completely reworked.We need to write a real parse function using dicts that create auseful common structure for Linux and Windows and then remove lotsof nasty special handlings.For Linux we need the content of /proc/[pid]/stat in order tocorrectly determine the CPU utilization. This can be done atthis time - not further.Here is a suggested command line for the agent:echo '[proc_stat]'echo /proc/[0-9]*/stat | xargs awk '{ print $1 " " $14 " " $15; }' 2>/dev/nullecho '[proc_stat_end]'We might user further data from here and throw that away from thecurrent bracket code.In order not to break compatibility we could implement a new sectionand a new check and the deprecate the existing one.