Collin Starkweather > Net-Peep-0.4.5.1 > Net::Peep::Client::Pinger

Download:
Net-Peep-0.4.5.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 1.05   Source  

NAME ^

Net::Peep::Client::Pinger - Perl extension for checking whether a host or a variety of services on a host are running

SYNOPSIS ^

  use Net::Peep::Client::Pinger;
  $pinger = new Net::Peep::Client::Pinger;
  $SIG{'INT'} = $SIG{'TERM'} = sub { $pinger->shutdown(); exit 0; };
  $pinger->Start();

DESCRIPTION ^

Perl extension for checking whether a host or a variety of services on a host are running. For now it only checks pingability.

It is intended to eventually check not only pingability, but services such as telnet, ssh, ftp, etc.

EXPORT

None by default.

METHODS

    new() - The constructor

    Start() - Begins pinging hosts and signaling events.  Terminates
    by entering the Net::Peep::Client->MainLoop() method.

    loop() - The callback called by the Net::Peep::Client->MainLoop()
    method.  See Net::Peep::Client for more information.

    parse(@text) - Callback given to the Net::Peep::Client->parser()
    method which parses the pinger client config section of the Peep
    configuration file.

    addHost($host) - Adds a Net::Peep::Client::Pinger::Host object to
    an array.

    hosts() - Retrieves an array of Net::Peep::Client::Pinger::Host
    objects added by the addHost method.

AUTHOR ^

Michael Gilfix <mgilfix@eecs.tufts.edu> Copyright (C) 2001

Collin Starkweather <collin.starkweather@colorado.edu>

SEE ALSO ^

perl(1), peepd(1), Net::Peep::BC, Net::Peep::Log, Net::Peep::Parser, Net::Peep::Client, pinger.

http://peep.sourceforge.net