Xymon Mailing List Archive search

Using variables in clientlaunch.cfg?

list Henrik Størner
Sat, 29 Jul 2006 08:59:42 +0200
Message-Id: <user-6da7aef4794b@xymon.invalid>

On Fri, Jul 28, 2006 at 11:12:21PM -0700, Charles Jones wrote:
I just thought of another way to do this. I could modify the ps arguments that hobbit uses, and then just use hobbit-client.cfg with the PROC and TRACK options, and then I won't have to deal with using an ext script at all.

$ ps -welfm |egrep '(java.+tc_1_1)'|grep -v grep |wc -l
     66

The "m" flag shows all sub processes/threads. Without it, it would only show a single java process.

So this would work, but the question is, would hobbit still correctly parse the ps output with those flags?
As long as it has a header with the same identifier for where the commandline is,
then it should work.


Regards,
Henrik