VBTK::Wrapper::Vxprint - Veritas Volume Monitoring with 'vxprint'


VBTK documentation  | view source Contained in the VBTK distribution.

Index


NAME

Top

VBTK::Wrapper::Vxprint - Veritas Volume Monitoring with 'vxprint'

SYNOPSIS

Top

  # If you like all the defaults, then there's no need to over-ride them.
  $o = new VBTK::Wrapper::Vxprint ();
  $vbObj = $o->addVBObj();

  VBTK::runAll;

DESCRIPTION

Top

This perl library is a front-end to the VBTK::Wrapper class. It supports the same public methods as the VBTK::Wrapper class, but with common defaults to simplify the setup of a 'vxprint' monitoring process.

METHODS

Top

The following methods are supported

$o = new VBTK::Wrapper::Vxprint (<parm1> => <val1>, <parm2> => <val2>, ...)

This method calls 'new VBTK::Wrapper' after defaulting the parameters to best monitor the 'vxprint' command. For a detailed description of the parameters, see VBTK::Wrapper. The defaults are as follows. If you like all the defaults then you don't have to pass in any parms.

Interval
    Interval => 600,

Execute
    Execute => 'vxprint -ht',

VBDetail

Show the exact data as returned by the vxprint command.

    VBDetail => [ '$data' ],

Timeout
    Timeout => 30,

TimeoutStatus
    TimeoutStatus => 'Fail',

DebugHeader
    DebugHeader => 'vxprint',

$vbObj = $o->addVBObj(<parm1> => <val1>, <parm2> => <val2>, ...)

This method calls VBTK::Wrapper::addVBObj after defaulting unspecified parameters to best monitor the 'vxprint' command. For a detailed description of the addVBObj parameters, see VBTK::Parser. The defaults are as follows. If you like all the defaults then you don't have to pass in any parms

VBObjName

Name the VBObject using the local host's name.

    VBObjName => ".$::HOST.vm.vxprint",

Rules

If we see the words error or fail in the output, then set the status to 'Failed'.

    Rules => {
         '$data =~ /error|fail/i' => 'Fail' },

StatusHistoryLimit

Limit to storing the last 30 status changes

    StatusHistoryLimit => 30,

ExpireAfter
    ExpireAfter => (<Interval> * 3) seconds

Description
    Description = qq(
        This object uses the 'vxprint' command to monitor the Veritas Volumes on
        $::HOST.  It will set the status to 'Warning' or 'Failed' based on the
        output of the 'vxprint' command. ),

BaselineDiffStatus

Set the status to 'Warning' if the returned text differs from the baseline.

    BaselineDiffStatus => 'Warn',

SEE ALSO

Top

VBTK, VBTK::Wrapper, VBTK::Parser, VBTK::ClientObject, VBTK::Server

AUTHOR

Top

Brent Henry, vbtoolkit@yahoo.com

COPYRIGHT

Top


VBTK documentation  | view source Contained in the VBTK distribution.