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 the destination system which will
automatically send some alert etc (which my Perl recognizes) in case of
network disconnection etc.

Your suggestion to open a connection at particular port etc sounds good but
the only issue I will have is to open that connection again when the network
is up.

Thanks & Regards,
Amit Saxena

On Tue, Jul 21, 2009 at 5:24 AM, Bob McConnell <r...@cbord.com> wrote:

> 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? They have
> to learn how be reasonable before you will be able to do much for them.
>
> Ping will only tell you that the target computer is up, still connected to
> the network and reachable from your workstation. It won't tell you if the
> particular service[*] you want to monitor is still alive. For that you need
> to create a thread that actively monitors that service. It has to open a
> connection to the service and keep it open. Then either send an empty
> message periodically over that connection or set the keep-alive interval to
> some reasonable period and enable them. How you determine that period
> depends on how quickly you need to know the server is down. No, the two hour
> default is not reasonable. For POS systems that need real-time responses we
> set a sixty second interval. That way we know about network, server or
> workstation outages within two minutes.
>
> Bob McConnell
>
> [*] See /etc/services for service to port map.
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

Reply via email to