Mon::Client 0.11
Sponsored Links
Mon::Client 0.11 Ranking & Summary
File size:
0.023 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
920
Date added:
2007-04-17
Publisher:
Mon::Client team
Mon::Client 0.11 description
Mon::Client is a Perl module with methods for interaction with Mon client.
SYNOPSIS
use Mon::Client;
Mon::Client is used to interact with "mon" clients. It supports a protocol-independent API for retrieving the status of the mon server, and performing certain operations, such as disableing hosts and service checks.
METHODS
new
Creates a new object. A hash can be supplied which sets the default values. An example which contains all of the variables that you can initialize:
$c = new Mon::Client (
host => "monhost",
port => 2583,
username => "foo",
password => "bar",
);
password (pw)
If pw is provided, sets the password. Otherwise, returns the currently set password.
host (host)
If host is provided, sets the mon host. Otherwise, returns the currently set mon host.
port (portnum)
If portnum is provided, sets the mon port number. Otherwise, returns the currently set port number.
username (user)
If user is provided, sets the user login. Otherwise, returns the currently set user login.
prot
If protocol is provided, sets the protocol, specified by a string which is of the form "1.2.3", where "1" is the major revision, "2" is the minor revision, and "3" is the sub-minor revision. If protocol is not provided, the currently set protocol is returned.
protid ([protocol])
Returns true if client and server protocol match, false otherwise. Implicitly called by connect. If protocol is specified as an integer, supplies that protocol version to the server for verification.
version
Returns the protocol version of the remote server.
error
Returns the error string from set by the last method, or undef if there was no error.
connected
Returns 0 (not connected) or 1 (connected).
connect (%args)
Connects to the server. If host and port have not been set, uses the defaults. Returns undef on error. If $args{"skip_protid"} is true, skip protocol identification upon connect.
disconnect
Disconnects from the server. Return undef on error.
login ( %hash )
%hash is optional, but if specified, should contain two keys, username and password.
Performs the "login" command to authenticate the user to the server. Uses username and password if specified, otherwise uses the username and password previously set by those methods, respectively.
checkauth ( command )
Checks to see if the specified command, as executed by the current user, is authorized by the server, without actually executing the command. Returns 1 (command is authorized) or 0 (command is not authorized).
disable_watch ( watch )
Disables watch.
disable_service ( watch, service )
Disables a service, as specified by watch and service.
disable_host ( host )
Disables host.
enable_watch ( watch )
Enables watch.
enable_service ( watch, service )
Enables a service as specified by watch and service.
enable_host ( host )
Enables host.
set ( group, service, var, val )
Sets var in group,service to val. Returns undef on error.
get ( group, service, var )
Gets variable var in group,service and returns it, or undef on error.
quit
Logs out of the server. This method should be followed by a call to the disconnect method.
list_descriptions
Returns a hash of service descriptions, indexed by watch and service.
SYNOPSIS
use Mon::Client;
Mon::Client is used to interact with "mon" clients. It supports a protocol-independent API for retrieving the status of the mon server, and performing certain operations, such as disableing hosts and service checks.
METHODS
new
Creates a new object. A hash can be supplied which sets the default values. An example which contains all of the variables that you can initialize:
$c = new Mon::Client (
host => "monhost",
port => 2583,
username => "foo",
password => "bar",
);
password (pw)
If pw is provided, sets the password. Otherwise, returns the currently set password.
host (host)
If host is provided, sets the mon host. Otherwise, returns the currently set mon host.
port (portnum)
If portnum is provided, sets the mon port number. Otherwise, returns the currently set port number.
username (user)
If user is provided, sets the user login. Otherwise, returns the currently set user login.
prot
If protocol is provided, sets the protocol, specified by a string which is of the form "1.2.3", where "1" is the major revision, "2" is the minor revision, and "3" is the sub-minor revision. If protocol is not provided, the currently set protocol is returned.
protid ([protocol])
Returns true if client and server protocol match, false otherwise. Implicitly called by connect. If protocol is specified as an integer, supplies that protocol version to the server for verification.
version
Returns the protocol version of the remote server.
error
Returns the error string from set by the last method, or undef if there was no error.
connected
Returns 0 (not connected) or 1 (connected).
connect (%args)
Connects to the server. If host and port have not been set, uses the defaults. Returns undef on error. If $args{"skip_protid"} is true, skip protocol identification upon connect.
disconnect
Disconnects from the server. Return undef on error.
login ( %hash )
%hash is optional, but if specified, should contain two keys, username and password.
Performs the "login" command to authenticate the user to the server. Uses username and password if specified, otherwise uses the username and password previously set by those methods, respectively.
checkauth ( command )
Checks to see if the specified command, as executed by the current user, is authorized by the server, without actually executing the command. Returns 1 (command is authorized) or 0 (command is not authorized).
disable_watch ( watch )
Disables watch.
disable_service ( watch, service )
Disables a service, as specified by watch and service.
disable_host ( host )
Disables host.
enable_watch ( watch )
Enables watch.
enable_service ( watch, service )
Enables a service as specified by watch and service.
enable_host ( host )
Enables host.
set ( group, service, var, val )
Sets var in group,service to val. Returns undef on error.
get ( group, service, var )
Gets variable var in group,service and returns it, or undef on error.
quit
Logs out of the server. This method should be followed by a call to the disconnect method.
list_descriptions
Returns a hash of service descriptions, indexed by watch and service.
Mon::Client 0.11 Screenshot
Mon::Client 0.11 Keywords
Client 0.11
username and password
Perl module
returns
host
service
watch
protocol
server
Mon::Client
MonClient
Mon::Client 0.11
Libraries
Programming
Bookmark Mon::Client 0.11
Mon::Client 0.11 Copyright
WareSeeker periodically updates pricing and software information of Mon::Client 0.11 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Mon::Client 0.11 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
MusicBrainz::Client is a MusicBrainz Client API. Free Download
Mon::SNMP is a Perl module created to decode SNMP trap. Free Download
Dents is a from-scratch implementation of the server side of the DNS protocol, sharing no code with any other project. Free Download
Anemon Dhcp Servers goal is to create an implementation of the DHCP protocol under GPL. Free Download
libircclient is a small but powerful library, which implements client-server IRC protocol. Free Download
jMOS is an open Java implementation for the Media Object Server (MOS) communications protocol. Free Download
PyOPC is a Python library implementing the OPC XML Data Access Protocol Version 1.01 (OPC XML-DA 1.01). Free Download
SMSLink project implements a client/server gateway to the SMS protocol. Free Download
Latest Software
Popular Software
Favourite Software