NAME

Collector - Provides information regarding a network monitoring machine


SYNOPSIS

        use DBI;
        use Collector;

        $dbh = DBI->connect(...);
        my $netmon = new Collector( getLocal=>1, dbHandle=>$dbh );

        or

        my $netmon = new Collector( id=>$MACaddress, dbHandle=>$dbh );

        or

        my $netmon = new Collector( id=>$MACaddress, name=>$systemName, description=>$description, contact=>$netmonEmail, active=>1, online=>1, localized=>1 );

        print $netmon->id

        print $netmon->name

        print $netmon->description

        print $netmon->location

        print $netmon->email

        print $netmon->contact

        print $netmon->isActive

        print $netmon->isOnline

        print $netmon->isLocalized


DESCRIPTION

Collector provides an easy way to get and save data regarding network monitoring machines. This is a child class of Node. Please see node for more details.


METHODS

        new() - creates a new machine
        
                dbHandle     - database handle
                id           - MAC address of the netmon that is monitoring this machine
                
                name*        - system name
                description* - system description
                contact*     - netmon's email
                email*       - administrator's email
                active*      - if this netmon is actively monitoring (1 or 0)
                online*      - if this netmon is online or reachable (1 or 0)
                localized*   - if database information is owned by this netmon (1 or 0);

                        * - must always be declared together or none at all

        id() - returns the MAC address of the collector
        
        name() - returns the collector name
        
        description() - returns the collector description
        
        location() - returns the collector location
        
        email() - returns the email address of the contect person
        
        contact() - returns the contact person
        
        isActive() - returns whether this collector is monitoring the network

        isOnline() - returns whether this collector is online

        isLocalized() -  returns whether the database information is owned by this collector

        machines() - returns an array that contains all the ID's of the machines this netmon is monitoring


AUTHORS

Machine is supported as part of the core Pawikan distribution. Please send bug report to <netapps@pregi.net> or use the bugzilla.

Edwin Viñas <edwinv@asti.dost.gov.ph>

Jerremeo Raynier Gabás <ren@asti.dost.gov.ph>

René Mendoza <renem@asti.dost.gov.ph>

Rey Vincent Babilonia <rvincent@asti.dost.gov.ph>

Paul Afroilan <paula@asti.dost.gov.ph>


COPYRIGHT

Copyright (c) 2004 Philippine Research, Education and Government Information Network. All rights reserved. This program is part of the Pawikan distribution; you can redistribute it and/or modify it under the same terms as Pawikan itself.