The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

alertgrid_snmp - MonM alertgrid SNMP getter

VERSION

Version 1.00

SYNOPSIS

    alertgrid_snmp [-dSX] [-v VERSION] [-t MICROSECS] [-x EXPIRES] [-s HOST] [-c COMMUNITY] COMMAND ARGUMENTS
    
    alertgrid_snmp [OPTIONS] get OID
    
    alertgrid_snmp [OPTIONS] table TABLE-OID
    
    alertgrid_snmp [OPTIONS] resources [RESOURCE]
    
    alertgrid_snmp [OPTIONS] traffic [if1 if2 ... if#]

    Type alertgrid_snmp -H for more information

DESCRIPTION

Getter data from SNMP server for alertgrid system

COMMANDS

get

Getting SNMP data by OID

table

Getting SNMP datatable by TABLE-OID

resources

Getting HDD, CPU, MEM and SWAP statistic data

traffic

Getting I/O traffic statistic in octets. All if-indexes for this command must be getting from "alertgrid table ifTable" command

OPTIONS

-d, --debug

Enable debug mode

-S, --strict

Enable strict mode. All OIDs must be only as is long-format strings

    alertgrid_snmp -S get .1.3.6.1.2.1.1.1.0
-X, --noxml

Output all data "as is"

-v VERSION-SNMP, --version=VERSION-SNMP

Version of SNMP (default = 2c)

-t MICROSECS, --timeout=MICROSECS

Timeout of SNMP requests in microseconds (default = 1000000)

-x EXPIRES, --expires=EXPIRES

Time of life data in special "expires"-format (+5m as default).

See "expire_calc" in MonM::AlertGrid

-s HOST, --host=HOST

Host of SNMP (default = localhost)

-c COMMUNITY, --community=COMMUNITY

Community name (default = public)

EXAMPLES

    alertgrid_snmp -c mnsdesktop get .1.3.6.1.2.1.1.1
    alertgrid_snmp -c mnsdesktop table ifTable

DEPENDENCES

CTK::Util, SNMP as Net-SNMP (see down)

REQUIREMENTS

Net-SNMP

To use this module, you must have Net-SNMP installed on your system. More specifically you need the Perl modules that come with it.

DO NOT INSTALL SNMP or Net::SNMP from CPAN!

The SNMP module is matched to an install of net-snmp, and must be installed from the net-snmp source tree.

The Perl module SNMP is found inside the net-snmp distribution. Go to the perl/ directory of the distribution to install it, or run ./configure --with-perl-modules from the top directory of the net-snmp distribution.

Net-SNMP can be found at http://net-snmp.sourceforge.net

Version 5.3.2 or greater is recommended.

Redhat Users: Some versions that come with certain versions of Redhat/Fedora don't have the Perl library installed. Uninstall the RPM and install by hand.

TODO

Multiple selection

Add supporting of multiple selection SMTP data

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 distributed under the GNU GPL v3.

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