[Xymon] Xymon PROC check fails on un-aligned ps(1) output

Christoph Schug cs at schug.net
Tue Aug 2 13:43:53 CEST 2011


Okay, looked more closely on the source. Apparently the column position of
fields of the ps(1) output is automatically determined depended on the
position of the header. So just to let you know, following patch worked for
my setup:

--- xymon-4.3.4/client/xymonclient-linux.sh.orig        2011-07-31
23:01:52.000000000 +0200
+++ xymon-4.3.4/client/xymonclient-linux.sh     2011-08-02
13:40:14.000000000 +0200
@@ -68,7 +68,7 @@
 # Report mdstat data if it exists
 if test -r /proc/mdstat; then echo "[mdstat]"; cat /proc/mdstat; fi
 echo "[ps]"
-ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd
+ps -Aww -o
pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd

 # $TOP must be set, the install utility should do that for us if it
exists.
 if test "$TOP" != ""

Cheers
-cs



More information about the Xymon mailing list