You are here

How do I graph the RSS usage of an individual linux process

1 post / 0 new
matt.bayliss@phoenix.co.uk
matt.bayliss@phoenix.co.uk's picture
How do I graph the RSS usage of an individual linux process

I'm tring to use Opsview to monitor the resident set size of an individual process.  I've looked into check_procs but that seems only to return a count of processes that match a given criteria.

./check_nrpe -H 10.0.0.5 -c check_procs -a '--metric=RSS --command=soffice.bin'
RSS OK: 1 process with command name 'soffice.bin'

Adding a--vv option to check_procs returns the value I want to record (rss=34012).

./check_nrpe -H 10.0.0.5 -c check_procs -a '-c :10% -vv --metric=RSS --command=soffice.bin'
CMD: /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args'
Matched: uid=0 vsz=114008 rss=34012 pid=4240 ppid=4139 pcpu=0.00 stat=Sl etime= prog=soffice.bin args=/opt/openoffice.org3/program/soffice.bin -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard
RSS CRITICAL: 1 crit, 0 warn out of 1 process with command name 'soffice.bin' [soffice.bin]

Can anyone advise a way of doing this or recommend a plugin that would address this need.

Thanks,

Matt