VBTK::Wrapper::Vxprint - Veritas Volume Monitoring with 'vxprint'
# 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;
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.
The following methods are supported
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 => 600,
Execute => 'vxprint -ht',
Show the exact data as returned by the vxprint command.
VBDetail => [ '$data' ],
Timeout => 30,
TimeoutStatus => 'Fail',
DebugHeader => 'vxprint',
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
Name the VBObject using the local host's name.
VBObjName => ".$::HOST.vm.vxprint",
If we see the words error or fail in the output, then set the status to 'Failed'.
Rules => { '$data =~ /error|fail/i' => 'Fail' },
Limit to storing the last 30 status changes
StatusHistoryLimit => 30,
ExpireAfter => (<Interval> * 3) seconds
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. ),
Set the status to 'Warning' if the returned text differs from the baseline.
BaselineDiffStatus => 'Warn',
VBTK, VBTK::Wrapper, VBTK::Parser, VBTK::ClientObject, VBTK::Server
Brent Henry, vbtoolkit@yahoo.com
Copyright (C) 1996-2002 Brent Henry
This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation available at: http://http://www.gnu.org/copyleft/gpl.html
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.
To install VBTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VBTK
CPAN shell
perl -MCPAN -e shell install VBTK
For more information on module installation, please visit the detailed CPAN module installation guide.