[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Monitor user specific procs
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Monitor user specific procs
- From: "Hobbit User" <hobbit (at) epperson.homelinux.net>
- Date: Fri, 22 Jun 2007 22:16:15 -0400 (EDT)
- Importance: Normal
- References: <0924F5F6-4C80-4E41-9EAA-8202AF49777E (at) imber.com>
- User-agent: SquirrelMail/1.4.10a-1.fc6
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.