Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread shawn wilson
I like net::ping. But what's the point of reinventing the wheel? There's dozens of network monitoring suites that'll do this for you - nagios for one should suite the purpose well enough. Also, nmap should have a module to allow you to audit ssh. With any luck, you might be able to access that fro

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Peter Scott
On Tue, 23 Nov 2010 21:59:19 +0530, Amit Saxena wrote: > Hi all, > > What's the best way to monitor ssh connectivity, and not just ssh port > availability, to a server using perl assuming following constraints ? > > I tried for Net::SSH but public private key is not allowed. > > I tried for Net

Re: [PBML] Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Amit Saxena
On Wed, Nov 24, 2010 at 1:19 AM, Joe Pepersack wrote: > > > Why not just call the ssh client and run a command on the remote host? > I'd set up a passwordless key to a restricted account for security, but > I'm paranoid. > > open LOG, '>>', '/path/to/logfile' or die "Can't open log file\n"; > > f

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread C.DeRykus
On Nov 23, 8:29 am, learn.tech...@gmail.com (Amit Saxena) wrote: > Hi all, > > What's the best way to monitor ssh connectivity, and not just ssh port > availability, to a server using perl assuming following constraints ? > > I tried for Net::SSH but public private key is not allowed. > > I tried f

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Arun G Nair
On Tue, Nov 23, 2010 at 10:13 PM, Amit Saxena wrote: > > On Tue, Nov 23, 2010 at 10:09 PM, shawn wilson wrote: > > > Well, each new ssh connection should spawn a new process so you could look > > at it from that end. More technically, you could look into netstat or lsof > > modules. > > On Nov 23

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Amit Saxena
On Tue, Nov 23, 2010 at 10:09 PM, shawn wilson wrote: > Well, each new ssh connection should spawn a new process so you could look > at it from that end. More technically, you could look into netstat or lsof > modules. > On Nov 23, 2010 11:31 AM, "Amit Saxena" wrote: > > Hi all, > > > > What's t

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread shawn wilson
Well, each new ssh connection should spawn a new process so you could look at it from that end. More technically, you could look into netstat or lsof modules. On Nov 23, 2010 11:31 AM, "Amit Saxena" wrote: > Hi all, > > What's the best way to monitor ssh connectivity, and not just ssh port > avail