From: Brett S. <sig...@hy...> - 2010-06-05 20:16:40
|
Hi Folks, I've been working with sigar to try and gather some focused stats for my hyperic instance and am having trouble with the lack of ptql compatibility, is there a way with the native command set to do something like counting number of sockets open for a particular PID or is there a plugin module already around people use to achieve this? Essentially looking to get an output similiar to the below linux command into hyperic: export PID=`ps aux | grep ^user.*appname | sed -r "s:\ +:\ :" | cut -f2 -d' ' -` netstat -tuapn | grep -c \:7010.*${PID}\/java` |