bug report: hobbit client for solaris can't report zombie process
list T.J. Yang
The existing ps command in hobbit-client-sunos.sh won't report zombie processes. I changed the long ps -A command to just "ps -eaf" and it can report the zombie now. Question is will "ps -eaf" break anything on hobbit server side ? root at login3> diff hobbitclient-sunos.sh hobbitclient-sunos.orig 55,56c55,56 < #ps -A -o pid,ppid,user,stime,s,pri,pcpu,time,pmem,rss,vsz,args < ps -eaf ---
ps -A -o pid,ppid,user,stime,s,pri,pcpu,time,pmem,rss,vsz,args
root at login3> T.J. Yang http://newlivehotmail.com
list Dave Haertig
My guess is "yes". You can see the way ps was originally called specifies the output columns. These are specific columns in a specific order, and I'm sure the parser on the server side is depending on that. "ps -eaf" does not spit out the same columns in the same order ... so I think you're walking on pretty thin ice. -----Original Message----- From: T.J. Yang [mailto:user-8e841282cda5@xymon.invalid] Sent: Thursday, July 26, 2007 9:19 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] bug report: hobbit client for solaris can't report zombie process
▸
The existing ps command in hobbit-client-sunos.sh won't report zombie
processes.
I changed the long ps -A command to just "ps -eaf" and it can report the
zombie now.
Question is will "ps -eaf" break anything on hobbit server side ?
root at login3> diff hobbitclient-sunos.sh hobbitclient-sunos.orig
55,56c55,56
< #ps -A -o pid,ppid,user,stime,s,pri,pcpu,time,pmem,rss,vsz,args
< ps -eaf
---ps -A -o pid,ppid,user,stime,s,pri,pcpu,time,pmem,rss,vsz,args
root at login3> T.J. Yang http://newlivehotmail.com