[hobbit] Monitor user specific procs

Hobbit User hobbit at epperson.homelinux.net
Sat Jun 23 04:16:15 CEST 2007


On Fri, June 22, 2007 16:49, Lee J. Imber wrote:
> Greet,
>
> Is there a way to monitor a users specific process?
>
> I have a ssh tunnel that needs to stay up. So how would I setup a
> test that monitors this:
>
> user1    78512  0.0  0.5  3372  2416  p2- S     7:43PM   0:01.72 ssh -
> N -g -L 2022:127.0.0.1:22 -L 15294:10.20.2.11:15294 -R
> 15294:10.0.2.11:15294 1.2.3.4
>

The first local-to-remote (-L) mapping looks like a tunnel to an sshd on
the other side, and could be checked with a client ext script to make sure
the sshd is responding (if it's on the Hobbit server, should be testable
with an ssh:2022 on localhost).  The following pair of local and remote
mappings look like a closed loop, and it's not clear to me how it might be
used or tested--tcping perhaps?. Note that the latest versions of ssh/sshd
support the use of a "bind" address in this syntax, so you could do -L
127.0.0.x:2022:127.0.0.1:22, for instance, to differentiate things by ip
on the initiating end.



More information about the Xymon mailing list