RE: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread David Christensen
Amit Saxena wrote: > I want a perl ping script (console based) to monitor server up/down state. Here's something I wrote ~2000 FWIW. It looks like I was still on dial-up, and wanted to ping an Internet host every ~10 seconds or so to prevent my connection from being dropped due to inactivity. Br

Re: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Amit Saxena
Hi Bob, It seems there is some confusion. I just want to monitor remote server connectivity (either through ping or something else) but I don't want to call my programs every few intervals etc. What I want is a daemon sort of a thing in Perl running either on the source system (preferably) or on

Re: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Amit Saxena
Thanks Thomas, I will surely look at mon to know about how to write monitoring code in Perl. Thanks & Regards, Amit Saxena On Tue, Jul 21, 2009 at 5:25 AM, Thomas Bätzler wrote: > Amit Saxena wrote: > > Hi Thomas, > > > > Thanks for the response. > > > > The client for which I am working will

Re: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread PANG J.
Amit Saxena : Hi all, I want a perl ping script (console based) to monitor server up/down state. I once made that a subroutine based on Net::Ping: use Net::Ping; sub pinghost { my $host = shift; my $type = shift || 'icmp'; my $port = shift || 7; # for syn ping my $stat

RE: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Bob McConnell
From: Amit Saxena > > The client for which I am working will not allow any external utility / > modules to be installed on their development / production environments. > Moreover they want the solution implemented using Perl only. If they won't allow any utilities, how will you install this one?

AW: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Thomas Bätzler
Amit Saxena wrote: > Hi Thomas, > > Thanks for the response. > > The client for which I am working will not allow any external utility / > modules to be installed on their development / production environments. > Moreover they want the solution implemented using Perl only. Actually, mon ist pure

Re: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Eric Veith
Subject:Re: How to implement ping script to monitor server up/down state in perl ? Hi Thomas, Thanks for the response. The client for which I am w

Re: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Amit Saxena
Hi Thomas, Thanks for the response. The client for which I am working will not allow any external utility / modules to be installed on their development / production environments. Moreover they want the solution implemented using Perl only. Thanks & Regards, Amit Saxena On Tue, Jul 21, 2009 at

AW: How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Thomas Bätzler
Amit Saxena asked: > I want a perl ping script (console based) to monitor server up/down > state. Why re-invent the wheel when there's already stuff like mon (http://mon.wiki.kernel.org/index.php/Main_Page) or nagios (http://www.nagios.org/)? HTH, Thomas -- To unsubscribe, e-mail: beginners-

How to implement ping script to monitor server up/down state in perl ?

2009-07-21 Thread Amit Saxena
Hi all, I want a perl ping script (console based) to monitor server up/down state. So far I have tried two different approaches, though none of them were successful. *First Approach* Call the operating system "ping" command from the Perl program and get the server up/down state. Call this progr