++ed by:

1 non-PAUSE user.

Sergey Lepenkov
and 1 contributors

NAME

App::MonM - Simple Monitoring Tools

VERSION

Version 1.05

SYNOPSIS

    use App::MonM;
    use CTK;
    use CTKx;
    CTKx->instance( c => new CTK );
    
    my $monm = new App::MonM;

ABSTRACT

App::MonM - Simple Monitoring Tools

DESCRIPTION

Simple Monitoring Tools

METHODS

new
    my $monm = new App::MonM( %OPTIONS );

Returns object. The %OPTIONS contains options of command line. See Getopt::Long for details

opt
    $monm->opt( 'verbose' );

Returns value of option-key

status
    $monm->status( 1 );
    print $monm->status ? 'OK' : 'ERROR';

Set/Get status. Method returns current status

message
    $monm->message( "message" );
    print $monm->message;

Set/Get message. Method returns informational message

error
    $monm->error( "error1", "error2", ... );
    print $monm->error;

Set/Get error message. Method returns all current error messages separated by newline-chars

lasterror
    $monm->error( "error1", "error2" );
    $monm->error( "error3" );
    print $monm->lasterror; # returns: error3

Method returns only last-added error messages separated by newline-chars

void
    my $status = $monm->void;
    print $monm->message if $status;

The method returns status of "void" request. See monm and README for details

test
    my $status = $monm->test;
    print $monm->message if $status;

The method returns status of "test" request. See monm and README for details

dbi
    my $status = $monm->dbi( 'name' );
    print $monm->message if $status;

The method returns status of "dbi" request. See monm and README for details

http
    my $status = $monm->http( 'name' );
    print $monm->message if $status;

The method returns status of "http" request. See monm and README for details

checkit
    my $status = $monm->checkit( 'count' );
    print $monm->message if $status;

The method returns status of "checkit" request. See monm and README for details

checkitreport
    my $status = $monm->checkitreport;
    print $monm->message if $status;

The method returns status of "checkitreport" request. See monm and README for details

alertgrid_init, alertgrid_clear, alertgrid_config, alertgrid_server, alertgrid_client, alertgrid_snapshot, alertgrid_export, alertgrid_normalize
    my $status = $monm->alertgrid_server( '' );
or
    my $status = $monm->alertgrid_client( 'name' );

The group of methods, each of which returns status of "alertgrid" request. See monm and README for details

rrdtool_create, rrdtool_update, rrdtool_graph, rrdtool_index
    my $status = $monm->rrdtool_init;

The group of methods, each of which returns status of "rrdtool" request. See monm and README for details

HISTORY

See CHANGES file

DEPENDENCIES

CTK

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

perl, CTK

AUTHOR

Serz Minus (Lepenkov Sergey) http://www.serzik.com <minus@mail333.com>

COPYRIGHT

Copyright (C) 1998-2014 D&D Corporation. All Rights Reserved

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See LICENSE file