[hobbit] RE: [Hobbit] Using variables in clientlaunch.cfg?
Henrik Stoerner
henrik at hswn.dk
Sat Jul 29 08:59:42 CEST 2006
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
More information about the Xymon
mailing list