[Nagiosplug-devel] check_procs plugin - option for one more 'w' in the ps command?
Peter Norby
norby at yahoo-inc.com
Thu Dec 8 21:45:02 CET 2005
Any chance you guys can (or already have) stuffed an additional 'w'
or the option to add additional ps flags into the command used?
I can't have been the first person to run into this problem,
where only a single 'w' cuts off the arguments after only
80 characters-ish, and processes with long lists of args
like anything starting with "java" get cut off before you
actually get to any identifying characteristics.
-/\/
-bash-2.05b$ sudo ./check_procs -a 'codec' -v -v
CMD: /bin/ps -axwo 'stat uid ppid vsz rss pcpu ucomm command'
PROCS OK: 1 process with args 'codec'
-bash-2.05b$ sudo ./check_procs -a 'httpclient' -v -v
CMD: /bin/ps -axwo 'stat uid ppid vsz rss pcpu ucomm command'
PROCS OK: 0 processes with args 'httpclient'
-bash-2.05b$ sudo /bin/ps -axwwo 'stat uid ppid vsz rss pcpu ucomm command' | grep httpclient
S+ 9879 97049 1100 696 0.0 grep grep httpclient
S 19451 1 418968 51876 1.6 java /usr/local/jdk1.4.2/bin/java -cp lib/vespa.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.0-rc3.jar:lib/commons-logging.jar:lib/log4j.jar:lib/mysql-connector-java-3.1.8-bin.jar:conf
More information about the Devel
mailing list