Compare commits

..

No commits in common. "master" and "github_ci" have entirely different histories.

597 changed files with 1491 additions and 13891 deletions

View file

@ -1,12 +0,0 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "04:00"
reviewers:
- "waja"
pull-request-branch-name:
separator: "-"
open-pull-requests-limit: 10

View file

@ -1,20 +0,0 @@
mode: auto
branchName: '${issue.number}-${issue.title[0,40]}'
gitSafeReplacementChar: '-'
branches:
- label: question
skip: true
- label: feature
prefix: feature/
- label: bug
prefix: bugfix/
- label: security
prefix: security/
- label: automation
prefix: automation/
openDraftPR: true
copyIssueDescriptionToPR: false
copyIssueLabelsToPR: true
copyIssueAssigneeToPR: true
copyIssueProjectsToPR: false
copyIssueMilestoneToPR: true

View file

@ -1,25 +0,0 @@
name: Tools - Automate Issue Branch
on:
issues:
types: [ assigned ]
issue_comment:
types: [ created ]
jobs:
create_issue_branch_job:
runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: write
deployments: none
issues: write
packages: none
pull-requests: write
repository-projects: none
security-events: none
steps:
- name: Create Issue Branch
uses: robvanderleek/create-issue-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -17,19 +17,22 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .git*
rm -rf .github/
- name: Adjust distibution in changelog file
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.4.0
uses: dawidd6/action-debian-package@v1
# uses: pi-top/action-debian-package@v4
with:
# source_directory: "${SOURCE_DIR}"
# artifacts_directory: "${ARTIFACTS_DIR}"
artifacts_directory: debian/build/release/
- name: Debug
run: |
ls -la
# target_architectures: "amd64,i386"
# distribution: 'stable'
# os: 'debian'

View file

@ -1,70 +1,38 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'debian/*' # Push events to matching debian/*, i.e. debian/1.0-2, debian/20.15.10, debian/23.20020326
name: Build Packages
name: Release Process
on:
release:
types: [published, created, edited]
# Run tests for any PRs
# pull_request:
env:
SOURCE_DIR: ./
ARTIFACTS_DIR: debian/build/release/
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
outputs:
release-id: ${{ steps.create_release.outputs.id }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install needed packages
run: |
if [ $(dpkg -l | grep -c dpkg-dev) -ne 1 ]; then sudo apt-get update && sudo apt-get install -y dpkg-dev; fi
- name: Gather changelog
run: |
ls -la
dpkg-parsechangelog | tail -n +9 > debian.changelog
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: debian.changelog
draft: false
prerelease: false
build:
name: Build and upload packages
needs: create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .git*
rm -rf .github/
- name: Adjust distibution in changelog file
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.4.0
uses: pi-top/action-debian-package@v4
with:
artifacts_directory: debian/build/release/
# - name: Build Debian package
# uses: pi-top/action-debian-package@v0.2.0
# with:
# artifacts_directory: debian/build/release/
# target_architectures: "amd64,i386"
target_architectures: "amd64,i386"
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@release-2.0
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.create-release.outputs.release-id }}
# releaseId: 'debian/18.20201012+4'
# releaseId: ${{ needs.create_release.outputs.id }}
args: debian/build/release/*

View file

@ -1,10 +0,0 @@
#/usr/bin/make -f
PLUGIN = src/check_es_system
CLEANEXTRAFILES = $(PLUGIN)
DOCFILES = src/README.md
include ../common.mk
src/$(PLUGIN): src/$(PLUGIN).sh
cp $< $@

View file

@ -1,22 +0,0 @@
---
sudo: required
dist: focal
language: generic
services:
- elasticsearch
before_install:
- sudo apt-get update -q
- sudo apt-get install curl jq
before_script:
#- sleep 10
script:
- ./check_es_system.sh --help || true
- |
test/test_status.sh
test/test_readonly.sh

View file

@ -1,339 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{description}
Copyright (C) {year} {fullname}
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 2 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.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
{signature of Ty Coon}, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

View file

@ -1,15 +0,0 @@
# check_es_system
This is a monitoring plugin to check the status of an ElasticSearch cluster node. Besides the classical status check (green, yellow, red) this plugin also allows to monitor disk or memory usage of Elasticsearch. This is especially helpful when running Elasticsearch in the cloud (e.g. Elasticsearch as a service) because, as ES does not run on your own server, you cannot monitor the disk or memory usage. This is where this plugin comes in. Just tell the plugin how much resources (diskspace, memory capacity) you have available (-d) and it will alarm you when you reach a threshold.
Besides that, the plugin offers additional (advanced) checks of a Elasticsearch node/cluster (Java Threads, Thread Pool Statistics, Master Verification, Read-Only Indexes, ...).
Please refer to https://www.claudiokuenzler.com/monitoring-plugins/check_es_system.php for full documentation and usage examples.
Requirements
------
- The following commands must be available: `curl`, `expr`
- One of the following json parsers must be available: `jshon` or `jq` (defaults to jq)
Usage
------
./check_es_system.sh -H ESNode [-P port] [-S] [-u user] [-p pass] [-d available] -t check [-o unit] [-i indexes] [-w warn] [-c crit] [-m max_time] [-e node] [-X jq|jshon]

View file

@ -1,761 +0,0 @@
#!/bin/bash
################################################################################
# Script: check_es_system.sh #
# Author: Claudio Kuenzler www.claudiokuenzler.com #
# Purpose: Monitor ElasticSearch Store (Disk) Usage #
# Official doc: www.claudiokuenzler.com/monitoring-plugins/check_es_system.php #
# License: GPLv2 #
# GNU General Public Licence (GPL) http://www.gnu.org/ #
# 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 2 #
# 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. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, see <https://www.gnu.org/licenses/>. #
# #
# Copyright 2016,2018-2021 Claudio Kuenzler #
# Copyright 2018 Tomas Barton #
# Copyright 2020 NotAProfessionalDeveloper #
# Copyright 2020 tatref #
# Copyright 2020 fbomj #
# Copyright 2021 chicco27 #
# #
# History: #
# 20160429: Started programming plugin #
# 20160601: Continued programming. Working now as it should =) #
# 20160906: Added memory usage check, check types option (-t) #
# 20160906: Renamed plugin from check_es_store to check_es_system #
# 20160907: Change internal referenced variable name for available size #
# 20160907: Output now contains both used and available sizes #
# 20161017: Add missing -t in usage output #
# 20180105: Fix if statement for authentication (@deric) #
# 20180105: Fix authentication when wrong credentials were used #
# 20180313: Configure max_time for Elastic to respond (@deric) #
# 20190219: Fix alternative subject name in ssl (issue 4), direct to auth #
# 20190220: Added status check type #
# 20190403: Check for mandatory parameter checktype, adjust help #
# 20190403: Catch connection refused error #
# 20190426: Catch unauthorized (403) error #
# 20190626: Added readonly check type #
# 20190905: Catch empty cluster health status (issue #13) #
# 20190909: Added jthreads and tps (thread pool stats) check types #
# 20190909: Handle correct curl return codes #
# 20190924: Missing 'than' in tps output #
# 20191104: Added master check type #
# 20200401: Fix/handle 503 errors with curl exit code 0 (issue #20) #
# 20200409: Fix 503 error lookup (issue #22) #
# 20200430: Support both jshon and jq as json parsers (issue #18) #
# 20200609: Fix readonly check on ALL indices (issue #26) #
# 20200723: Add cluster name to status output #
# 20200824: Fix typo in readonly check output #
# 20200916: Internal renaming of -i parameter, use for tps check (issue #28) #
# 20201110: Fix thresholds in jthreads check #
# 20201125: Show names of read_only indexes with jq, set jq as default parser #
# 20210616: Fix authentication bug (#38) and non ES URL responding (#39) #
# 20211202: Added local node (-L), SSL settings (-K, -E), cpu check #
################################################################################
#Variables and defaults
STATE_OK=0 # define the exit code if status is OK
STATE_WARNING=1 # define the exit code if status is Warning
STATE_CRITICAL=2 # define the exit code if status is Critical
STATE_UNKNOWN=3 # define the exit code if status is Unknown
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin # Set path
version=1.12.0
port=9200
httpscheme=http
unit=G
include='_all'
max_time=30
parsers=(jq jshon)
################################################################################
#Functions
help () {
echo -e "$0 $version (c) 2016-$(date +%Y) Claudio Kuenzler and contributors (open source rulez!)
Usage: ./check_es_system.sh -H ESNode [-P port] [-S] [-u user -p pass|-E cert -K key] -t checktype [-o unit] [-w int] [-c int] [-m int] [-e string] [-X parser]
Options:
* -H Hostname or ip address of ElasticSearch Node
-L Run check on local node instead of cluster
-P Port (defaults to 9200)
-S Use https
-E Certs for Authentication
-K Key for Authentication
-u Username if authentication is required
-p Password if authentication is required
* -t Type of check (disk, mem, cpu, status, readonly, jthreads, tps, master)
-o Disk space unit (K|M|G) (defaults to G)
-i Space separated list of included object names to be checked (index names on readonly check, pool names on tps check)
-w Warning threshold (see usage notes below)
-c Critical threshold (see usage notes below)
-m Maximum time in seconds to wait for response (default: 30)
-e Expect master node (used with 'master' check)
-X The json parser to be used jshon or jq (default: jq)
-h Help!
*mandatory options
Threshold format for 'disk', 'mem' and 'cpu': int (for percent), defaults to 80 (warn) and 95 (crit)
Threshold format for 'tps': int,int,int (active, queued, rejected), no defaults
Threshold format for all other check types': int, no defaults
Requirements: curl, expr and one of $(IFS=,; echo "${parsers[*]}")"
exit $STATE_UNKNOWN;
}
authlogic () {
if [[ -z $user ]] && [[ -z $pass ]]; then echo "ES SYSTEM UNKNOWN - Authentication required but missing username and password"; exit $STATE_UNKNOWN
elif [[ -n $user ]] && [[ -z $pass ]]; then echo "ES SYSTEM UNKNOWN - Authentication required but missing password"; exit $STATE_UNKNOWN
elif [[ -n $pass ]] && [[ -z $user ]]; then echo "ES SYSTEM UNKNOWN - Missing username"; exit $STATE_UNKNOWN
fi
}
authlogic_cert () {
if [[ -z $cert ]] && [[ -z $key ]]; then echo "ES SYSTEM UNKNOWN - Authentication required but missing cert and key"; exit $STATE_UNKNOWN
elif [[ -n $cert ]] && [[ -z $key ]]; then echo "ES SYSTEM UNKNOWN - Authentication required but missing key"; exit $STATE_UNKNOWN
elif [[ -n $key ]] && [[ -z $cert ]]; then echo "ES SYSTEM UNKNOWN - Missing cert"; exit $STATE_UNKNOWN
fi
}
unitcalc() {
# ES presents the currently used disk space in Bytes
if [[ -n $unit ]]; then
case $unit in
K) availsize=$(expr $available / 1024); outputsize=$(expr ${size} / 1024);;
M) availsize=$(expr $available / 1024 / 1024); outputsize=$(expr ${size} / 1024 / 1024);;
G) availsize=$(expr $available / 1024 / 1024 / 1024); outputsize=$(expr ${size} / 1024 / 1024 / 1024);;
esac
if [[ -n $warning ]] ; then
warningsize=$(expr $warning \* ${available} / 100)
fi
if [[ -n $critical ]] ; then
criticalsize=$(expr $critical \* ${available} / 100)
fi
usedpercent=$(expr $size \* 100 / $available)
else echo "UNKNOWN - Shouldnt exit here. No units given"; exit $STATE_UNKNOWN
fi
}
thresholdlogic () {
if [ -n $warning ] && [ -z $critical ]; then echo "UNKNOWN - Define both warning and critical thresholds"; exit $STATE_UNKNOWN; fi
if [ -n $critical ] && [ -z $warning ]; then echo "UNKNOWN - Define both warning and critical thresholds"; exit $STATE_UNKNOWN; fi
}
default_percentage_thresholds() {
if [ -z $warning ] || [ "${warning}" = "" ]; then warning=80; fi
if [ -z $critical ] || [ "${critical}" = "" ]; then critical=95; fi
}
json_parse() {
json_parse_usage() { echo "$0: [-r] [-q] [-c] [-a] -x arg1 -x arg2 ..." 1>&2; exit; }
local OPTIND opt r q c a x
while getopts ":rqcax:" opt
do
case "${opt}" in
r) raw=1;;
q) quiet=1;; # only required for jshon
c) continue=1;; # only required for jshon
a) across=1;;
x) args+=("$OPTARG");;
*) json_parse_usage;;
esac
done
case ${parser} in
jshon)
cmd=()
for arg in "${args[@]}"; do
cmd+=(-e $arg)
done
jshon ${quiet:+-Q} ${continue:+-C} ${across:+-a} "${cmd[@]}" ${raw:+-u}
;;
jq)
cmd=()
for arg in "${args[@]}"; do
cmd+=(.$arg)
done
jq ${raw:+-r} $(IFS=; echo ${across:+.[]}"${cmd[*]}")
;;
esac
}
################################################################################
# Check for people who need help - aren't we all nice ;-)
if [ "${1}" = "--help" -o "${#}" = "0" ]; then help; exit $STATE_UNKNOWN; fi
################################################################################
# Get user-given variables
while getopts "H:LP:SE:K:u:p:d:o:i:w:c:t:m:e:X:" Input
do
case ${Input} in
H) host=${OPTARG};;
L) local=true;;
P) port=${OPTARG};;
S) httpscheme=https;;
E) cert=${OPTARG};;
K) key=${OPTARG};;
u) user=${OPTARG};;
p) pass=${OPTARG};;
d) oldavailable=${OPTARG};;
o) unit=${OPTARG};;
i) include=${OPTARG};;
w) warning=${OPTARG};;
c) critical=${OPTARG};;
t) checktype=${OPTARG};;
m) max_time=${OPTARG};;
e) expect_master=${OPTARG};;
X) parser=${OPTARG:=jq};;
*) help;;
esac
done
# Check for mandatory opts
if [[ -z ${host} ]]; then help; exit $STATE_UNKNOWN; fi
if [[ -z ${checktype} ]]; then help; exit $STATE_UNKNOWN; fi
# Check for deprecated opts
if [[ -n ${oldavailable} ]]; then
echo "ES SYSTEM UNKNOWN: -d parameter is now invalid. Capacities are now discovered directly from Elasticsearch."
exit ${STATE_UNKNOWN}
fi
# Local checks are only useful for certain check types
if [[ -n ${local} ]] && ( ! [[ ${checktype} =~ ^(cpu|mem|disk|jthreads)$ ]] ); then
echo "ES SYSTEM UNKNOWN: Node local checks (-L) only work with the following check types: cpu, mem, disk, jthreads"
exit ${STATE_UNKNOWN}
fi
################################################################################
# Check requirements
for cmd in curl expr ${parser}; do
if ! `which ${cmd} >/dev/null 2>&1`; then
echo "UNKNOWN: ${cmd} does not exist, please check if command exists and PATH is correct"
exit ${STATE_UNKNOWN}
fi
done
# Find parser
if [ -z ${parser} ]; then
for cmd in ${parsers[@]}; do
if `which ${cmd} >/dev/null 2>&1`; then
parser=${cmd}
break
fi
done
if [ -z "${parser}" ]; then
echo "UNKNOWN: No JSON parser found. Either one of the following is required: $(IFS=,; echo "${parsers[*]}")"
exit ${STATE_UNKNOWN}
fi
fi
################################################################################
# Retrieve information from Elasticsearch cluster
getstatus() {
if [[ ${local} ]]; then
esurl="${httpscheme}://${host}:${port}/_nodes/_local/stats"
else
esurl="${httpscheme}://${host}:${port}/_cluster/stats"
fi
eshealthurl="${httpscheme}://${host}:${port}/_cluster/health"
if [[ -z $user ]] && [[ -z $cert ]]; then
# Without authentication
esstatus=$(curl -k -s --max-time ${max_time} $esurl)
esstatusrc=$?
if [[ $esstatusrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $esstatusrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
elif [[ "$esstatus" =~ "503 Service Unavailable" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available: ${host}:${port} return error 503"
exit $STATE_CRITICAL
elif [[ "$esstatus" =~ "Unknown resource" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available: ${esstatus}"
exit $STATE_CRITICAL
elif ! [[ "$esstatus" =~ "cluster_name" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available at this address ${host}:${port}"
exit $STATE_CRITICAL
fi
# Additionally get cluster health infos
if [ $checktype = status ]; then
eshealth=$(curl -k -s --max-time ${max_time} $eshealthurl)
if [[ -z $eshealth ]]; then
echo "ES SYSTEM CRITICAL - unable to get cluster health information"
exit $STATE_CRITICAL
fi
fi
fi
if [[ -n $user ]] || [[ -n $(echo $esstatus | grep -i authentication) ]] ; then
# Authentication required
authlogic
esstatus=$(curl -k -s --max-time ${max_time} --basic -u ${user}:${pass} $esurl)
esstatusrc=$?
if [[ $esstatusrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $esstatusrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
elif [[ "$esstatus" =~ "503 Service Unavailable" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available: ${host}:${port} return error 503"
exit $STATE_CRITICAL
elif [[ "$esstatus" =~ "Unknown resource" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available: ${esstatus}"
exit $STATE_CRITICAL
elif [[ -n $(echo "$esstatus" | grep -i "unable to authenticate") ]]; then
echo "ES SYSTEM CRITICAL - Unable to authenticate user $user for REST request"
exit $STATE_CRITICAL
elif [[ -n $(echo "$esstatus" | grep -i "unauthorized") ]]; then
echo "ES SYSTEM CRITICAL - User $user is unauthorized"
exit $STATE_CRITICAL
elif ! [[ "$esstatus" =~ "cluster_name" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available at this address ${host}:${port}"
exit $STATE_CRITICAL
fi
# Additionally get cluster health infos
if [[ $checktype = status ]]; then
eshealth=$(curl -k -s --max-time ${max_time} --basic -u ${user}:${pass} $eshealthurl)
if [[ -z $eshealth ]]; then
echo "ES SYSTEM CRITICAL - unable to get cluster health information"
exit $STATE_CRITICAL
fi
fi
fi
if [[ -n $cert ]] || [[ -n $(echo $esstatus | grep -i authentication) ]] ; then
# Authentication with certificate
authlogic_cert
esstatus=$(curl -k -s --max-time ${max_time} -E ${cert} --key ${key} $esurl)
esstatusrc=$?
if [[ $esstatusrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $esstatusrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
elif [[ "$esstatus" =~ "503 Service Unavailable" ]]; then
echo "ES SYSTEM CRITICAL - Elasticsearch not available: ${host}:${port} return error 503"
exit $STATE_CRITICAL
elif [[ -n $(echo "$esstatus" | grep -i "unable to authenticate") ]]; then
echo "ES SYSTEM CRITICAL - Unable to authenticate user $user for REST request"
exit $STATE_CRITICAL
elif [[ -n $(echo "$esstatus" | grep -i "unauthorized") ]]; then
echo "ES SYSTEM CRITICAL - User $user is unauthorized"
exit $STATE_CRITICAL
fi
# Additionally get cluster health infos
if [[ $checktype = status ]]; then
eshealth=$(curl -k -s --max-time ${max_time} -E ${cert} --key ${key} $eshealthurl)
if [[ -z $eshealth ]]; then
echo "ES SYSTEM CRITICAL - unable to get cluster health information"
exit $STATE_CRITICAL
fi
fi
fi
# Catch empty reply from server (typically happens when ssl port used with http connection)
if [[ -z $esstatus ]] || [[ $esstatus = '' ]]; then
echo "ES SYSTEM UNKNOWN - Empty reply from server (verify ssl settings)"
exit $STATE_UNKNOWN
fi
}
################################################################################
# Do the checks
case $checktype in
disk) # Check disk usage
getstatus
default_percentage_thresholds
if [[ ${local} ]]; then
size=$(echo $esstatus | json_parse -x 'nodes|' -x '[]' -x indices -x store -x size_in_bytes)
available=$(echo $esstatus | json_parse -x 'nodes|' -x '[]' -x fs -x total -x total_in_bytes)
else
size=$(echo $esstatus | json_parse -x indices -x store -x size_in_bytes)
available=$(echo $esstatus | json_parse -x nodes -x fs -x total_in_bytes)
fi
unitcalc
if [ -n "${warning}" ] || [ -n "${critical}" ]; then
# Handle tresholds
thresholdlogic
if [ $size -ge $criticalsize ]; then
echo "ES SYSTEM CRITICAL - Disk usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_disk=${size}B;${warningsize};${criticalsize};0;${available}"
exit $STATE_CRITICAL
elif [ $size -ge $warningsize ]; then
echo "ES SYSTEM WARNING - Disk usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_disk=${size}B;${warningsize};${criticalsize};0;${available}"
exit $STATE_WARNING
else
echo "ES SYSTEM OK - Disk usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_disk=${size}B;${warningsize};${criticalsize};0;${available}"
exit $STATE_OK
fi
else
# No thresholds
echo "ES SYSTEM OK - Disk usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_disk=${size}B;;;0;${available}"
exit $STATE_OK
fi
;;
mem) # Check memory usage
getstatus
default_percentage_thresholds
if [[ ${local} ]]; then
size=$(echo $esstatus | json_parse -x 'nodes|' -x '[]' -x jvm -x mem -x heap_used_in_bytes)
available=$(echo $esstatus | json_parse -x 'nodes|' -x '[]' -x jvm -x mem -x heap_max_in_bytes)
else
size=$(echo $esstatus | json_parse -x nodes -x jvm -x mem -x heap_used_in_bytes)
available=$(echo $esstatus | json_parse -x nodes -x jvm -x mem -x heap_max_in_bytes)
fi
unitcalc
if [ -n "${warning}" ] || [ -n "${critical}" ]; then
# Handle tresholds
thresholdlogic
if [ $size -ge $criticalsize ]; then
echo "ES SYSTEM CRITICAL - Memory usage is at ${usedpercent}% ($outputsize $unit) from $availsize $unit|es_memory=${size}B;${warningsize};${criticalsize};0;${available}"
exit $STATE_CRITICAL
elif [ $size -ge $warningsize ]; then
echo "ES SYSTEM WARNING - Memory usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_memory=${size}B;${warningsize};${criticalsize};0;${available}"
exit $STATE_WARNING
else
echo "ES SYSTEM OK - Memory usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_memory=${size}B;${warningsize};${criticalsize};0;${available}"
exit $STATE_OK
fi
else
# No thresholds
echo "ES SYSTEM OK - Memory usage is at ${usedpercent}% ($outputsize $unit from $availsize $unit)|es_memory=${size}B;;;0;${available}"
exit $STATE_OK
fi
;;
cpu) # Check memory usage
getstatus
default_percentage_thresholds
if [[ ${local} ]]; then
value=$(echo $esstatus | json_parse -x 'nodes|' -x '[]' -x process -x cpu -x percent)
else
value=$(echo $esstatus | json_parse -x nodes -x process -x cpu -x percent)
fi
if [ -n "${warning}" ] || [ -n "${critical}" ]; then
# Handle tresholds
thresholdlogic
if [ $value -ge $critical ]; then
echo "ES SYSTEM CRITICAL - CPU usage is at ${value}% |es_cpu=${value}%;${warning};${critical};0;100"
exit $STATE_CRITICAL
elif [ $value -ge $warning ]; then
echo "ES SYSTEM WARNING - CPU usage is at ${value}% |es_cpu=${value}%;${warning};${critical};0;100"
exit $STATE_WARNING
else
echo "ES SYSTEM OK - CPU usage is at ${value}% |es_cpu=${value}%;${warning};${critical};0;100"
exit $STATE_OK
fi
else
# No thresholds
echo "ES SYSTEM OK - CPU usage is at ${value}% |es_cpu=${value}%;${warning};${critical};0;100"
exit $STATE_OK
fi
;;
status) # Check Elasticsearch status
getstatus
status=$(echo $esstatus | json_parse -r -x status)
clustername=$(echo $esstatus | json_parse -r -x cluster_name)
shards=$(echo $esstatus | json_parse -r -x indices -x shards -x total)
docs=$(echo $esstatus | json_parse -r -x indices -x docs -x count)
nodest=$(echo $esstatus | json_parse -r -x nodes -x count -x total)
nodesd=$(echo $esstatus | json_parse -r -x nodes -x count -x data)
relocating=$(echo $eshealth | json_parse -r -x relocating_shards)
init=$(echo $eshealth | json_parse -r -x initializing_shards)
unass=$(echo $eshealth | json_parse -r -x unassigned_shards)
if [ "$status" = "green" ]; then
echo "ES SYSTEM OK - Elasticsearch Cluster \"$clustername\" is green (${nodest} nodes, ${nodesd} data nodes, ${shards} shards, ${docs} docs)|total_nodes=${nodest};;;; data_nodes=${nodesd};;;; total_shards=${shards};;;; relocating_shards=${relocating};;;; initializing_shards=${init};;;; unassigned_shards=${unass};;;; docs=${docs};;;;"
exit $STATE_OK
elif [ "$status" = "yellow" ]; then
echo "ES SYSTEM WARNING - Elasticsearch Cluster \"$clustername\" is yellow (${nodest} nodes, ${nodesd} data nodes, ${shards} shards, ${relocating} relocating shards, ${init} initializing shards, ${unass} unassigned shards, ${docs} docs)|total_nodes=${nodest};;;; data_nodes=${nodesd};;;; total_shards=${shards};;;; relocating_shards=${relocating};;;; initializing_shards=${init};;;; unassigned_shards=${unass};;;; docs=${docs};;;;"
exit $STATE_WARNING
elif [ "$status" = "red" ]; then
echo "ES SYSTEM CRITICAL - Elasticsearch Cluster \"$clustername\" is red (${nodest} nodes, ${nodesd} data nodes, ${shards} shards, ${relocating} relocating shards, ${init} initializing shards, ${unass} unassigned shards, ${docs} docs)|total_nodes=${nodest};;;; data_nodes=${nodesd};;;; total_shards=${shards};;;; relocating_shards=${relocating};;;; initializing_shards=${init};;;; unassigned_shards=${unass};;;; docs=${docs};;;;"
exit $STATE_CRITICAL
fi
;;
readonly) # Check Readonly status on given indexes
getstatus
icount=0
for index in $include; do
if [[ -z $user ]]; then
# Without authentication
settings=$(curl -k -s --max-time ${max_time} ${httpscheme}://${host}:${port}/$index/_settings)
if [[ $? -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $? -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
fi
rocount=$(echo $settings | json_parse -r -q -c -a -x settings -x index -x blocks -x read_only | grep -c true)
roadcount=$(echo $settings | json_parse -r -q -c -a -x settings -x index -x blocks -x read_only_allow_delete | grep -c true)
if [[ $rocount -gt 0 ]]; then
output[${icount}]=" $index is read-only -"
roerror=true
fi
if [[ $roadcount -gt 0 ]]; then
output[${icount}]+=" $index is read-only (allow delete) -"
roerror=true
fi
fi
if [[ -n $user ]] || [[ -n $(echo $esstatus | grep -i authentication) ]] ; then
# Authentication required
authlogic
settings=$(curl -k -s --max-time ${max_time} --basic -u ${user}:${pass} ${httpscheme}://${host}:${port}/$index/_settings)
settingsrc=$?
if [[ $settingsrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $settingsrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
elif [[ -n $(echo $esstatus | grep -i "unable to authenticate") ]]; then
echo "ES SYSTEM CRITICAL - Unable to authenticate user $user for REST request"
exit $STATE_CRITICAL
elif [[ -n $(echo $esstatus | grep -i "unauthorized") ]]; then
echo "ES SYSTEM CRITICAL - User $user is unauthorized"
exit $STATE_CRITICAL
fi
rocount=$(echo $settings | json_parse -r -q -c -a -x settings -x index -x blocks -x read_only | grep -c true)
roadcount=$(echo $settings | json_parse -r -q -c -a -x settings -x index -x blocks -x read_only_allow_delete | grep -c true)
if [[ $rocount -gt 0 ]]; then
if [[ "$index" = "_all" ]]; then
if [[ $parser = "jq" ]]; then
roindexes=$(echo $settings | jq -r '.[].settings.index |select(.blocks.read_only == "true").provided_name')
fi
output[${icount}]=" $rocount index(es) found read-only $roindexes -"
else output[${icount}]=" $index is read-only -"
fi
roerror=true
fi
if [[ $roadcount -gt 0 ]]; then
if [[ "$index" = "_all" ]]; then
if [[ $parser = "jq" ]]; then
roadindexes=$(echo $settings | jq -r '.[].settings.index |select(.blocks.read_only_allow_delete == "true").provided_name' | tr '\n' ' ')
fi
output[${icount}]+=" $roadcount index(es) found read-only (allow delete) $roadindexes"
else output[${icount}]+=" $index is read-only (allow delete) -"
fi
roerror=true
fi
fi
let icount++
done
if [[ $roerror ]]; then
echo "ES SYSTEM CRITICAL - ${output[*]}"
exit $STATE_CRITICAL
else
echo "ES SYSTEM OK - Elasticsearch Indexes ($include) are writeable"
exit $STATE_OK
fi
;;
jthreads) # Check JVM threads
getstatus
if [[ ${local} ]]; then
threads=$(echo $esstatus | json_parse -x 'nodes|' -x '[]' -x jvm -x threads -x count)
else
threads=$(echo $esstatus | json_parse -r -x nodes -x jvm -x "threads")
fi
if [ -n "${warning}" ] || [ -n "${critical}" ]; then
# Handle tresholds
thresholdlogic
if [[ $threads -ge $critical ]]; then
echo "ES SYSTEM CRITICAL - Number of JVM threads is ${threads}|es_jvm_threads=${threads};${warning};${critical};;"
exit $STATE_CRITICAL
elif [[ $threads -ge $warning ]]; then
echo "ES SYSTEM WARNING - Number of JVM threads is ${threads}|es_jvm_threads=${threads};${warning};${critical};;"
exit $STATE_WARNING
else
echo "ES SYSTEM OK - Number of JVM threads is ${threads}|es_jvm_threads=${threads};${warning};${critical};;"
exit $STATE_OK
fi
else
# No thresholds
echo "ES SYSTEM OK - Number of JVM threads is ${threads}|es_jvm_threads=${threads};${warning};${critical};;"
exit $STATE_OK
fi
;;
tps) # Check Thread Pool Statistics
getstatus
if [[ -z $user ]]; then
# Without authentication
threadpools=$(curl -k -s --max-time ${max_time} ${httpscheme}://${host}:${port}/_cat/thread_pool)
threadpoolrc=$?
if [[ $threadpoolrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $threadpoolrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
fi
fi
if [[ -n $user ]] || [[ -n $(echo $esstatus | grep -i authentication) ]] ; then
# Authentication required
authlogic
threadpools=$(curl -k -s --max-time ${max_time} --basic -u ${user}:${pass} ${httpscheme}://${host}:${port}/_cat/thread_pool)
threadpoolrc=$?
if [[ $threadpoolrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $threadpoolrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
elif [[ -n $(echo $esstatus | grep -i "unable to authenticate") ]]; then
echo "ES SYSTEM CRITICAL - Unable to authenticate user $user for REST request"
exit $STATE_CRITICAL
elif [[ -n $(echo $esstatus | grep -i "unauthorized") ]]; then
echo "ES SYSTEM CRITICAL - User $user is unauthorized"
exit $STATE_CRITICAL
fi
fi
if ! [[ $include = "_all" ]]; then
tpsgrep=$(echo "$include" | sed "s/ /|/g")
threadpools=$(echo "$threadpools" | egrep -i "(${tpsgrep})")
if [[ $(echo ${threadpools[*]}) = "" ]]; then
echo "Thread Pool check is critical: No thread pools found with given name(s): ${include}."
exit $STATE_CRITICAL
fi
fi
tpname=($(echo "$threadpools" | awk '{print $1"-"$2}' | sed "s/\n//g"))
tpactive=($(echo "$threadpools" | awk '{print $3}' | sed "s/\n//g"))
tpqueue=($(echo "$threadpools" | awk '{print $4}' | sed "s/\n//g"))
tprejected=($(echo "$threadpools" | awk '{print $5}' | sed "s/\n//g"))
if [ -n "${warning}" ] || [ -n "${critical}" ]; then
# Handle thresholds. They have to come in a special format: n,n,n (active, queue, rejected)
thresholdlogic
wactive=$(echo ${warning} | awk -F',' '{print $1}')
wqueue=$(echo ${warning} | awk -F',' '{print $2}')
wrejected=$(echo ${warning} | awk -F',' '{print $3}')
cactive=$(echo ${critical} | awk -F',' '{print $1}')
cqueue=$(echo ${critical} | awk -F',' '{print $2}')
crejected=$(echo ${critical} | awk -F',' '{print $3}')
i=0; for tp in ${tpname[*]}; do
perfdata[$i]="tp_${tp}_active=${tpactive[$i]};${wactive};${cactive};; tp_${tp}_queue=${tpqueue[$i]};${wqueue};${cqueue};; tp_${tp}_rejected=${tprejected[$i]};${wrejected};${crejected};; "
let i++
done
i=0
for tpa in $(echo ${tpactive[*]}); do
if [[ $tpa -ge $cactive ]]; then
echo "Thread Pool ${tpname[$i]} is critical: Active ($tpa) is equal or higher than threshold ($cactive)|${perfdata[*]}"
exit $STATE_CRITICAL
elif [[ $tpa -ge $wactive ]]; then
echo "Thread Pool ${tpname[$i]} is warning: Active ($tpa) is equal or higher than threshold ($wactive)|${perfdata[*]}"
exit $STATE_WARNING
fi
let i++
done
i=0
for tpq in $(echo ${tpqueue[*]}); do
if [[ $tpq -ge $cqueue ]]; then
echo "Thread Pool ${tpname[$i]} is critical: Queue ($tpq) is equal or higher than threshold ($cqueue)|${perfdata[*]}"
exit $STATE_CRITICAL
elif [[ $tpq -ge $wqueue ]]; then
echo "Thread Pool ${tpname[$i]} is warning: Queue ($tpq) is equal or higher than threshold ($wqueue)|${perfdata[*]}"
exit $STATE_WARNING
fi
let i++
done
i=0
for tpr in $(echo ${tprejected[*]}); do
if [[ $tpr -ge $crejected ]]; then
echo "Thread Pool ${tpname[$i]} is critical: Rejected ($tpr) is equal or higher than threshold ($crejected)|${perfdata[*]}"
exit $STATE_CRITICAL
elif [[ $tpr -ge $wrejected ]]; then
echo "Thread Pool ${tpname[$i]} is warning: Rejected ($tpr) is equal or higher than threshold ($wrejected)|${perfdata[*]}"
exit $STATE_WARNING
fi
let i++
done
echo "ES SYSTEM OK - Found ${#tpname[*]} thread pools in cluster|${perfdata[*]}"
exit $STATE_OK
fi
# No Thresholds
i=0; for tp in ${tpname[*]}; do
perfdata[$i]="tp_${tp}_active=${tpactive[$i]};;;; tp_${tp}_queue=${tpqueue[$i]};;;; tp_${tp}_rejected=${tprejected[$i]};;;; "
let i++
done
echo "ES SYSTEM OK - Found ${#tpname[*]} thread pools in cluster|${perfdata[*]}"
exit $STATE_OK
;;
master) # Check Cluster Master
getstatus
if [[ -z $user ]]; then
# Without authentication
master=$(curl -k -s --max-time ${max_time} ${httpscheme}://${host}:${port}/_cat/master)
masterrc=$?
if [[ $masterrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $masterrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
fi
fi
if [[ -n $user ]] || [[ -n $(echo $esstatus | grep -i authentication) ]] ; then
# Authentication required
authlogic
master=$(curl -k -s --max-time ${max_time} --basic -u ${user}:${pass} ${httpscheme}://${host}:${port}/_cat/master)
masterrc=$?
if [[ $threadpoolrc -eq 7 ]]; then
echo "ES SYSTEM CRITICAL - Failed to connect to ${host} port ${port}: Connection refused"
exit $STATE_CRITICAL
elif [[ $threadpoolrc -eq 28 ]]; then
echo "ES SYSTEM CRITICAL - server did not respond within ${max_time} seconds"
exit $STATE_CRITICAL
elif [[ -n $(echo $esstatus | grep -i "unable to authenticate") ]]; then
echo "ES SYSTEM CRITICAL - Unable to authenticate user $user for REST request"
exit $STATE_CRITICAL
elif [[ -n $(echo $esstatus | grep -i "unauthorized") ]]; then
echo "ES SYSTEM CRITICAL - User $user is unauthorized"
exit $STATE_CRITICAL
fi
fi
masternode=$(echo "$master" | awk '{print $NF}')
if [[ -n ${expect_master} ]]; then
if [[ "${expect_master}" = "${masternode}" ]]; then
echo "ES SYSTEM OK - Master node is $masternode"
exit $STATE_OK
else
echo "ES SYSTEM WARNING - Master node is $masternode but expected ${expect_master}"
exit $STATE_WARNING
fi
else
echo "ES SYSTEM OK - Master node is $masternode"
exit $STATE_OK
fi
;;
*) help
esac

View file

@ -1,27 +0,0 @@
#!/bin/bash
echo "Test Elasticsearch status"
./check_es_system.sh -H 127.0.0.1 -P 9200 -t readonly
if [[ $? -eq 0 ]]; then
echo -e "\e[1m\e[32m✔ Test 2.1 OK: Readonly check worked and no read_only indexes were found\e[0m"
exitcode=0
else
echo -e "\e[1m\e[31m✘ Test 2.1 ERROR: Readonly check has not worked or read_only indexes were found\e[0m"
exitcode=1
fi
# Create an index with read_only setting
curl -X PUT "127.0.0.1:9200/my-index-002" -H 'Content-Type: application/json' -d'{ "settings": { "index": { "blocks.read_only": true } } }'
sleep 5
./check_es_system.sh -H 127.0.0.1 -P 9200 -t readonly
if [[ $? -eq 2 ]]; then
echo -e "\e[1m\e[32m✔ Test 2.1 OK: Readonly check worked and detected a read only index\e[0m"
exitcode=0
else
echo -e "\e[1m\e[31m✘ Test 2.1 ERROR: Readonly check has not worked as expected\e[0m"
exitcode=1
fi
exit $exitcode

View file

@ -1,27 +0,0 @@
#!/bin/bash
echo "Test Elasticsearch status"
./check_es_system.sh -H 127.0.0.1 -P 9200 -t status
if [[ $? -eq 0 ]]; then
echo -e "\e[1m\e[32m✔ Test 1.1 OK: Status check worked and shows green\e[0m"
exitcode=0
else
echo -e "\e[1m\e[31m✘ Test 1.1 ERROR: Status check has not worked\e[0m"
exitcode=1
fi
# Create index with a replica, this should result in unassigned shards and yellow status
curl -X PUT "127.0.0.1:9200/my-index-001" -H 'Content-Type: application/json' -d'{ "settings": { "index": { "number_of_shards": 2, "number_of_replicas": 1 } } }'
sleep 5
./check_es_system.sh -H 127.0.0.1 -P 9200 -t status
if [[ $? -eq 1 ]]; then
echo -e "\e[1m\e[32m✔ Test 1.2 OK: Status check worked and shows yellow\e[0m"
exitcode=0
else
echo -e "\e[1m\e[31m✘ Test 1.2 ERROR: Status check has not worked as expected\e[0m"
exitcode=1
fi
exit $exitcode

View file

@ -1,6 +0,0 @@
Uploaders: Jan Wagner <waja@cyconet.org>
Recommends: curl, jshon | jq
Version: 1.12.0
Homepage: https://github.com/Napsty/check_es_system/
Watch: https://github.com/Napsty/check_es_system/tags .*/v?(\d\S+)\.tar\.gz
Description: Plugin script to check the status of an ElasticSearch cluster node.

View file

@ -1 +0,0 @@
check_es_system-1.12.0/

13
check_esxi_hardware/check_esxi_hardware.py Executable file → Normal file
View file

@ -22,7 +22,7 @@
# Copyright (c) 2008 David Ligeret
# Copyright (c) 2009 Joshua Daniel Franklin
# Copyright (c) 2010 Branden Schneider
# Copyright (c) 2010-2021 Claudio Kuenzler
# Copyright (c) 2010-2020 Claudio Kuenzler
# Copyright (c) 2010 Samir Ibradzic
# Copyright (c) 2010 Aaron Rogers
# Copyright (c) 2011 Ludovic Hutin
@ -280,11 +280,6 @@
#@ Reason : Improve missing mandatory parameter error text (issue #47)
#@ Delete temporary openssl config file after use (issue #48)
#@---------------------------------------------------
#@ Date : 20210809
#@ Author : Claudio Kuenzler
#@ Reason : Fix TLSv1 usage (issue #51)
#@---------------------------------------------------
from __future__ import print_function
import sys
@ -294,7 +289,7 @@ import re
import pkg_resources
from optparse import OptionParser,OptionGroup
version = '20210809'
version = '20200710'
NS = 'root/cimv2'
hosturl = ''
@ -535,7 +530,7 @@ def getopts() :
help="password, if password matches file:<path>, first line of given file will be used as password", metavar="PASS")
group2.add_option("-C", "--cimport", dest="cimport", help="CIM port (default 5989)", metavar="CIMPORT")
group2.add_option("-S", "--sslproto", dest="sslproto", help="SSL/TLS protocol version to overwrite system default: SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3", metavar="SSLPROTO")
group2.add_option("-S", "--sslproto", dest="sslproto", help="SSL/TLS protocol version to overwrite system default: SSLv2, SSLv3, TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3", metavar="SSLPROTO")
group2.add_option("-V", "--vendor", dest="vendor", help="Vendor code: auto, dell, hp, ibm, intel, or unknown (default)", \
metavar="VENDOR", type='choice', choices=['auto','dell','hp','ibm','intel','unknown'],default="unknown")
group2.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, \
@ -664,7 +659,7 @@ if cimport:
# Use non-default SSL protocol version
if sslproto:
verboseoutput("Using non-default SSL protocol: "+sslproto)
allowed_protos = ["SSLv2", "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
allowed_protos = ["SSLv2", "SSLv3", "TLSv1.0", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
if any(proto.lower() == sslproto.lower() for proto in allowed_protos):
import os
sslconfpath = '/tmp/'+hostname+'_openssl.conf'

View file

@ -1,6 +1,6 @@
Uploaders: Jan Wagner <waja@cyconet.org>
Recommends: python3-minimal, python-pywbem
Version: 20210809
Version: 20200710
Homepage: https://github.com/Napsty/check_esxi_hardware
Watch: https://github.com/Napsty/check_esxi_hardware/tags .*/v?(\d\S+)\.tar\.gz
Watch: https://raw.githubusercontent.com/Napsty/check_esxi_hardware/master/check_esxi_hardware.py version = '([0-9.]+)'
Description: Plugin for checking global health of VMware ESX/ESXi host

194
check_ipsec/check_ipsec Normal file
View file

@ -0,0 +1,194 @@
#!/bin/bash
# Written By Nicole
# Any Comments or Questions please e-mail to ml@nicole-haehnel.de
#
# Plugin Name: check_ipsec
# Version: 2.0
# Date: 26/08/2008
#
# Usage: check_ipsec --tunnels <n>
#
# gateways.txt file must be located in same directory
# and has to look like:
# nameofconn1 192.168.0.1
# nameofconn2 192.168.1.1
#
# ------------Defining Variables------------
PROGNAME=`basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
REVISION=`echo '$Revision: 2.0 $' | sed -e 's/[^0-9.]//g'`
#STRONG=`$IPSECBIN --version |grep strongSwan | wc -l`
DOWN=""
# ---------- Change to your needs ----------
PLUGINPATH="/usr/lib64/nagios/plugins"
GATEWAYLIST="gateways.txt"
IPSECBIN="/usr/sbin/ipsec"
FPINGBIN="/usr/sbin/fping"
# ping server in network on the other side of the tunnel
PINGIP=1 # ping yes or no (1/0)
# ------------------------------------------
. $PROGPATH/utils.sh
# Testing availability of $IPSECBIN, $FPINGBIN and $GATEWAYLIST
if [ $# -eq 0 ];
then
echo UNKNOWN - missing Arguments. Run check_ipsec --help
exit $STATE_UNKNOWN
fi
test -e $IPSECBIN
if [ $? -ne 0 ];
then
echo CRITICAL - $IPSECBIN not exist
exit $STATE_CRITICAL
else
STRONG=`$IPSECBIN --version |grep strongSwan | wc -l`
fi
if [ $PINGIP -eq 1 ]
then
test -e $FPINGBIN
if [ $? -ne 0 ];
then
echo CRITICAL - $FPINGBIN not exist
exit $STATE_CRITICAL
fi
fi
test -e $PROGPATH/$GATEWAYLIST
if [ $? -ne 0 ];
then
echo CRITICAL - $GATEWAYLIST not exist
exit $STATE_CRITICAL
fi
print_usage() {
echo "Usage:"
echo " $PROGNAME --tunnels <number of configured tunnels>"
echo " $PROGNAME --help"
echo " $PROGNAME --version"
echo " Created by Nicole, questions or problems e-mail ml@nicole-haehnel.de"
echo ""
}
print_help() {
print_revision $PROGNAME $REVISION
echo ""
print_usage
echo " Checks vpn connection status of an openswan or strongswan installation."
echo ""
echo " --tunnels <number of configured tunnels>"
echo " -T <number of configured tunnels>"
echo " provides the tunnel status of the openswan or strongswan installation"
echo ""
echo " --help"
echo " -h"
echo " prints this help screen"
echo ""
echo " --version"
echo " -V"
echo " Print version and license information"
echo ""
}
check_tunnel() {
if [[ "$STRONG" -eq "1" ]]
then
eroutes=`$IPSECBIN status | grep -e "IPsec SA established" | grep -e "newest IPSEC" | wc -l`
else
eroutes=`$IPSECBIN whack --status | grep -e "IPsec SA established" | grep -e "newest IPSEC" | wc -l`
fi
if [[ "$eroutes" -eq "$2" ]]
then
echo "OK - All $2 tunnels are up an running"
exit $STATE_OK
elif [[ "$eroutes" -gt "$2" ]]
then
echo "WARNING - More than $2 ($eroutes) tunnels are up an running"
exit $STATE_WARNING
else
echo "CRITICAL - Only $eroutes tunnels from $2 are up an running - $(location)"
exit $STATE_CRITICAL
fi
}
location() {
count=0
i=1
while read line; do
CONN=`echo $line| awk '{print $1}'`
IP=`echo $line| awk '{print $2}'`
if [[ "$STRONG" -eq "1" ]]
then
tunneltest=`$IPSECBIN status | grep -e "IPsec SA established" | grep -e "newest IPSEC" |grep -e $CONN | wc -l`
else
tunneltest=`$IPSECBIN whack --status | grep -e "IPsec SA established" | grep -e "newest IPSEC" |grep -e "$CONN" | wc -l`
fi
if [[ "$tunneltest" -eq "0" ]]
then
count=$[$count+1]
DOWN="$DOWN $CONN"
fi
if [[ "$PINGIP" -eq "1" && "$tunneltest" -eq "1" ]]
then
alive=`$FPINGBIN $IP -r 1 | grep alive | wc -l`
if [[ "$alive" -eq "0" ]]
then
count=$[$count+1]
DOWN="$DOWN $CONN (no ping)"
fi
fi
i=$[$i+1]
done < $PLUGINPATH/$GATEWAYLIST
echo $DOWN
}
case "$1" in
--help)
print_help
exit $STATE_OK
;;
-h)
print_help
exit $STATE_OK
;;
--version)
print_revision $PLUGIN $REVISION
exit $STATE_OK
;;
-V)
print_revision $PLUGIN $REVISION
exit $STATE_OK
;;
--tunnels)
check_tunnel $1 $2
;;
-T)
check_tunnel $1 $2
;;
*)
print_help
exit $STATE_OK
esac

6
check_ipsec/control Normal file
View file

@ -0,0 +1,6 @@
Homepage: https://raw.githubusercontent.com/Inuits/monitoring-plugins/master/check_ipsec
Watch: https://raw.githubusercontent.com/Inuits/monitoring-plugins/master/check_ipsec # Version: ([0-9.]+)
Recommends: monitoring-plugins-common | nagios-plugins-common, fping, strongswan-starter | openswan
Version: 2.0
Uploaders: Jan Wagner <waja@cyconet.org>
Description: plugin checking ipsec connections from open- or stongswan

View file

@ -1,6 +1,6 @@
Copyright (c) Claudio Kuenzler <ck@claudiokuenzler.com>
Copyright (c) 2008 ml@nicole-haehnel.de
License: GPL v2
License: N/A
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

View file

@ -1,254 +0,0 @@
#!/bin/bash
# Monitoring plugin to check the keepalived status
usage(){
echo "Check: Is the keepalived service operate as it should.
--status | -s <state> ) Target state of the system (MASTER, BACKUP)
--interface | -i <interface> ) Interface for vrrp instance
--ha-ip | -ip <ip> ) Vrrp-ip
--interface2 | -i2 <interface> ) Interface for 2nd vrrp instance
--ha-ip2 | -ip2 <ip> ) 2nd vrrp-ip
--help | -h ) Usage
"
}
# Exit Codes
OK=0
WARNING=1
CRITICAL=2
UNKNOWN=3
# Command definitions
if [ -x "$(which cat)" ];
then
CAT="$(which cat)"
fi
if [ -x "$(which grep)" ];
then
GREP="$(which grep)"
fi
if [ -x "$(which ip)" ];
then
IP="$(which ip)"
fi
if [ -x "$(which pgrep)" ];
then
PG="$(which pgrep)"
fi
if [ -x "$(which wc)" ];
then
WC="$(which wc)"
fi
if [ "$1" = "" ]
then
echo "CRITICAL: No arguments given. Take a look at the usage:"
usage
exit "${CRITICAL}"
fi
# shifting through our command line arguments and setting our values
while [ "$1" != "" ]; do
case $1 in
--status | -s ) shift
TARGET_STATE="$1"
;;
--interface | -i ) shift
IFACE="$1"
;;
--ha-ip | -ip ) shift
HAIP="$1"
;;
--interface2 | -i2 ) shift
IFACE2="$1"
SEC_IP=true
;;
--ha-ip2 | -ip2 ) shift
HAIP2="$1"
;;
--help | -h ) usage
exit
;;
* ) usage
echo "CRITICAL: No valid arguments given. Take a look at the usage."
exit "${CRITICAL}"
esac
shift
done
# Config and commands
STAT_FILE='/tmp/keepalived.status'
PID_FILE='/run/keepalived.pid'
PID=$("${CAT}" "${PID_FILE}" 2>/dev/null)
SERVICE=$("${PG}" keepalived)
STATUS=(MASTER BACKUP FAULT)
CHECK_HAIP=$("${IP}" 2>/dev/null addr sh "${IFACE}" | "${GREP}" "${HAIP}" | "${WC}" -l)
CHECK_HAIP2=$("${IP}" 2>/dev/null addr sh "${IFACE2}" | "${GREP}" "${HAIP2}" | "${WC}" -l)
# Check files are valid
if [ ! -e "${STAT_FILE}" ]
then
echo "CRITICAL: Generated status file is missing. State could not be determined."
exit "${CRITICAL}"
fi
FILE_CONT=$("${CAT}" "${STAT_FILE}" 2>/dev/null)
if [ ! -e "${PID_FILE}" ]
then
echo "CRITICAL: PID file is missing, keepalived is not running."
exit "${CRITICAL}"
fi
# Check variables exists
if [ -z "${TARGET_STATE}" ]
then
echo "CRITICAL: Parameter 'status' not given. Check usage:"
usage
exit "${CRITICAL}"
fi
if [ -z "${IFACE}" ]
then
echo "CRITICAL: Parameter 'interface' not given. Check usage:"
usage
exit "${CRITICAL}"
fi
if [ -z "${HAIP}" ]
then
echo "CRITICAL: Parameter 'ha-ip' not given. Check usage:"
usage
exit "${CRITICAL}"
fi
# Check service is running
if [[ ! "${SERVICE}" =~ ${PID} ]]
then
echo "CRITICAL: keepalived is not running."
exit "${CRITICAL}"
fi
# Confirm valid STATUS
if [[ ! "${STATUS[*]}" =~ ${FILE_CONT} ]]
then
echo "CRITICAL: Status file contains unknown status or is empty. Take a look at ${STAT_FILE}."
exit "${CRITICAL}"
fi
# Check ha ip and status
if [ "${TARGET_STATE}" = "${STATUS[0]}" ] # Machine is defined as MASTER
then
case "${FILE_CONT}" in
MASTER ) STAT=ok
;;
BACKUP ) STAT=fail
;;
FAULT ) echo "CRITICAL: Machine status is FAULT."
exit "${CRITICAL}"
;;
* ) echo "CRITICAL: Status file contains unknown status or is empty. Take a look at ${STAT_FILE}."
exit "${CRITICAL}"
esac
if [ "${SEC_IP}" == "true" ] # 2nd ha instance
then
if [ "${CHECK_HAIP2}" == 0 ] && [ "${STAT}" == ok ]
then
echo "CRITICAL: 2nd HA IP ${HAIP2} is not up but machine is MASTER according to ${STAT_FILE}."
STAT_SEC_IP=CRIT
elif [ "${CHECK_HAIP2}" == 0 ] && [ "${STAT}" == fail ]
then
echo "CRITICAL: 2nd HA IP ${HAIP2} is not up, machine is BACKUP. Should be MASTER."
elif [ "${CHECK_HAIP2}" == 1 ] && [ "${STAT}" == fail ]
then
echo "CRITICAL: 2nd HA IP ${HAIP2} is up, but machine is BACKUP according to ${STAT_FILE}. Should be MASTER."
else
echo "OK: 2nd HA IP ${HAIP2} is up and machine is MASTER."
fi
fi
if [ "${CHECK_HAIP}" == 0 ] && [ "${STAT}" == ok ] # Target-actual comparison machine state; IP should be up
then
echo "CRITICAL: HA IP ${HAIP} is not up but machine is MASTER according to ${STAT_FILE}."
exit "${CRITICAL}"
elif [ "${CHECK_HAIP}" == 0 ] && [ "${STAT}" == fail ]
then
echo "CRITICAL: HA IP ${HAIP} is not up, machine is BACKUP. Should be MASTER."
exit "${CRITICAL}"
elif [ "${CHECK_HAIP}" == 1 ] && [ "${STAT}" == fail ]
then
echo "CRITICAL: HA IP ${HAIP} is up, but machine is BACKUP according to ${STAT_FILE}. Should be MASTER."
exit "${CRITICAL}"
else
echo "OK: HA IP ${HAIP} is up and machine is MASTER."
if [ "${STAT_SEC_IP}" == CRIT ]
then
exit "${CRITICAL}"
else
exit "${OK}"
fi
fi
elif [ "${TARGET_STATE}" = "${STATUS[1]}" ] # Machine is defined as BACKUP
then
case "${FILE_CONT}" in
MASTER ) STAT=fail
;;
BACKUP ) STAT=ok
;;
FAULT ) echo "CRITICAL: Machine status is FAULT."
exit "${CRITICAL}"
;;
* ) echo "CRITICAL: Status file contains unknown status or is empty."
exit "${CRITICAL}"
esac
if [ "${SEC_IP}" == "true" ] # 2nd ha instance
then
if [ "${CHECK_HAIP2}" == 1 ] && [ "${STAT}" == ok ]
then
echo "CRITICAL: 2nd HA IP ${HAIP2} is up but machine is BACKUP according to ${STAT_FILE}."
STAT_SEC_IP=CRIT
elif [ "${CHECK_HAIP2}" == 1 ] && [ "${STAT}" == fail ]
then
echo "WARNING: 2nd HA IP ${HAIP2} is up, machine is MASTER. Should be BACKUP."
elif [ "${CHECK_HAIP2}" == 0 ] && [ "${STAT}" == fail ]
then
echo "CRITICAL: 2nd HA IP ${HAIP2} is not up but machine is MASTER according to ${STAT_FILE}. Should be BACKUP."
else
echo "OK: 2nd HA IP ${HAIP2} is not up and machine is BACKUP."
fi
fi
if [ "${CHECK_HAIP}" == 1 ] && [ "${STAT}" == ok ] # Target-actual comparison machine state; IP should be down
then
echo "CRITICAL: HA IP ${HAIP} is up but machine is BACKUP according to ${STAT_FILE}."
exit "${CRITICAL}"
elif [ "${CHECK_HAIP}" == 1 ] && [ "${STAT}" == fail ]
then
echo "WARNING: HA IP ${HAIP} is up, machine is MASTER. Should be BACKUP."
exit "${WARNING}"
elif [ "${CHECK_HAIP}" == 0 ] && [ "${STAT}" == fail ]
then
echo "CRITICAL: HA IP ${HAIP} is not up but machine is MASTER according to ${STAT_FILE}. Should be BACKUP."
exit "${CRITICAL}"
else
echo "OK: HA IP ${HAIP} is not up and machine is BACKUP."
if [ "${STAT_SEC_IP}" == CRIT ]
then
exit "${CRITICAL}"
else
exit "${OK}"
fi
fi
else
echo "Unknown: Unknown status given. Check ${STAT_FILE} and script usage."
exit "${UNKNOWN}"
fi

View file

@ -1,4 +0,0 @@
Uploaders: Jan Wagner <waja@cyconet.org>
Description: plugin checking keepalived status
Recommends: procps
Version: 0.0.1

View file

@ -1,7 +0,0 @@
Copyright (C) 2021 Stella Sieber / TMT GmbH & Co. KG
License: GPL+
On Debian systems, the complete text of the GNU General
Public License can be found in "/usr/share/common-licenses/GPL".

View file

@ -1,29 +1,23 @@
#!/usr/bin/python
###############################################################################################################
# Language : Python 3
# Language : Python (3.*)
# Filename : check_nextcloud.py
# Autor : https://github.com/BornToBeRoot
# Description : Nagios/Centreon plugin for nextcloud serverinfo API (https://github.com/nextcloud/serverinfo)
# Repository : https://github.com/BornToBeRoot/check_nextcloud
###############################################################################################################
### Changelog ###
#
# ~~ Version 1.2 ~~
# - Parameter "--ignore-sslcert" added. (Note: If you use an ip address as hostname... you need to add the ip
# address as trusted domain in the config.php)
# - Parameter "--perfdata-format" added [centreon|nagios] (default="centreon")
# ~~ Version 1.3 ~~
# - Check for app updates added (Thanks @thinkl33t)
# ~~ Version 1.4 ~~
# - Parameter "--nc-token" added (Thanks @sblatt)
# ~~ Version 2.0 ~~
# - Migrated from Python 2.7 to 3 (Thanks @waja)
#
#################
### Changelog #################################################################################################
# ~~ Version 2.0 ~~
# - Update to Python 3.*
# - Check: Theme
# - [not implemented yet] Check: App + Updates available
# - [not implemented yet] Check: Cache/Filelocking
# - [not implemented yet] Open pull requests...
###############################################################################################################
import urllib.request, urllib.error, urllib.parse, base64, xml.etree.ElementTree, sys, traceback, ssl, re
import urllib.parse, urllib.request, urllib.response, base64, xml.etree.ElementTree, sys, traceback, re
# Some helper functions
def calc_size_suffix(num, suffix='B'):
@ -47,38 +41,35 @@ def calc_size_nagios(num, suffix='B'):
# Command line parser
from optparse import OptionParser
parser = OptionParser(usage='%prog -u username -p password -H cloud.example.com -c [system|storage|shares|webserver|php|database|activeUsers|uploadFilesize|apps]')
parser = OptionParser(usage='%prog -u username -p password -H cloud.example.com -c [system|theme|storage|shares|webserver|php|database|activeUsers|uploadFilesize]')
parser.add_option('-v', '--version', dest='version', default=False, action='store_true', help='Print the version of this script')
parser.add_option('-u', '--username', dest='username', type='string', help='Username of the user with administrative permissions on the nextcloud server')
parser.add_option('-p', '--password', dest='password', type='string', help='Password of the user')
parser.add_option('-t', '--nc-token', dest='nc_token', type='string', help='Token to access the nextcloud serverinfo api. You can generate the token with "occ config:app:set serverinfo token --value yourtoken"; replaces username/password')
parser.add_option('-H', '--hostname', dest='hostname', type='string', help='Nextcloud server address (make sure that the address is a trusted domain in the config.php)')
parser.add_option('-c', '--check', dest='check', choices=['system','storage','shares','webserver','php','database','activeUsers','uploadFilesize','apps'], help='The thing you want to check [system|storage|shares|webserver|php|database|activeUsers|uploadFilesize|apps]')
parser.add_option('--perfdata-format', dest='perfdata_format', default='centreon', choices=['centreon','nagios'], help='Format for the performance data [centreon|nagios] (default="centreon")')
parser.add_option('--upload-filesize', dest='upload_filesize', default='512.0MiB', help='Filesize in MiB, GiB without spaces (default="512.0MiB")')
parser.add_option('-c', '--check', dest='check', choices=['system','theme','storage','shares','webserver','php','database','activeUsers','uploadFilesize'], help='The thing you want to check [system|theme|storage|shares|webserver|php|database|activeUsers|uploadFilesize]')
parser.add_option('--upload-filesize', dest='upload_filesize', default='512.0MiB', help='Filesize in MiB, GiB without spaces (default="512.0GiB")')
parser.add_option('--protocol', dest='protocol', choices=['https', 'http'], default='https', help='Protocol you want to use [http|https] (default="https")')
parser.add_option('--ignore-proxy', dest='ignore_proxy', default=False, action='store_true', help='Ignore any configured proxy server on this system for this request (default="false")')
parser.add_option('--ignore-sslcert', dest='ignore_sslcert', default=False, action='store_true', help='Ignore ssl certificate (default="false")')
parser.add_option('--ignore-proxy', dest='ignore_proxy', default=False, action='store_true', help='Ignore any configured proxy server on this system for this request')
parser.add_option('--api-url', dest='api_url', type='string', default='/ocs/v2.php/apps/serverinfo/api/v1/info', help='Url of the api (default="/ocs/v2.php/apps/serverinfo/api/v1/info")')
(options, args) = parser.parse_args()
# Print the version of this script
if options.version:
print('Version 2.0')
sys.exit(0)
print('Version 2.0')
sys.exit(0)
# Validate the user input...
if not options.username and not options.password and not options.hostname and not options.check:
parser.print_help()
sys.exit(3)
if not options.username and not options.nc_token:
parser.error('Username or nc-token is required, use parameter [-u|--username] or [--nc-token].')
if not options.username:
parser.error('Username is required, use parameter [-u|--username].')
sys.exit(3)
if not options.password and not options.nc_token:
parser.error('Password or nc-token is required, use parameter [-p|--password] or [--nc-token].')
if not options.password:
parser.error('Password is required, use parameter [-p|--password].')
sys.exit(3)
if not options.hostname:
@ -94,7 +85,7 @@ url_strip = re.compile(r"https?://")
hostname = url_strip.sub('', options.hostname).split('/')[0]
# Re-validate the api_url
if options.api_url.startswith('/'):
if options.api_url.startswith('/'):
api_url = options.api_url
else:
api_url = '/{0}'.format(options.api_url)
@ -102,44 +93,22 @@ else:
# Create the url to access the api
url = '{0}://{1}{2}'.format(options.protocol, hostname, api_url)
# Encode credentials as base64
# Create the request
request = urllib.request.Request(url)
# Basic authentication...
credential = base64.b64encode(bytes('%s:%s' % (options.username, options.password), 'ascii'))
request.add_header("Authorization", "Basic %s" % credential.decode('utf-8'))
request.add_header('OCS-APIRequest', 'true')
try:
# Create the request
request = urllib.request.Request(url)
# Add the token header
if options.nc_token:
request.add_header('NC-Token',"%s" % options.nc_token)
else:
# Add the authentication and api request header
request.add_header("Authorization", "Basic %s" % credential.decode('utf-8'))
request.add_header('OCS-APIRequest','true')
# SSL/TLS certificate validation (see: https://stackoverflow.com/questions/19268548/python-ignore-certificate-validation-urllib2)
ctx = ssl.create_default_context()
if(options.ignore_sslcert):
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
# Proxy handler
if(options.ignore_proxy):
proxy_handler = urllib.request.ProxyHandler({})
ctx_handler = urllib.request.HTTPSHandler(context=ctx)
opener = urllib.request.build_opener(proxy_handler, ctx_handler)
response = opener.open(request)
else:
response = urllib.request.urlopen(request, context=ctx)
# Read the content
content = response.read()
with urllib.request.urlopen(request) as response:
content = response.read()
except urllib.error.HTTPError as error: # User is not authorized (401)
print('UNKOWN - [WEBREQUEST] {0} {1}'.format(error.code, error.reason))
sys.exit(3)
print('UNKOWN - [WEBREQUEST] {0} {1}'.format(error.code, error.reason))
sys.exit(3)
except urllib.error.URLError as error: # Connection has timed out (wrong url / server down)
print('UNKOWN - [WEBREQUEST] {0}'.format(str(error.reason).split(']')[0].strip()))
@ -170,24 +139,25 @@ except AttributeError:
print('UNKOWN - [XML] Content contains no or wrong xml data... check the url and if the api is reachable!')
sys.exit(3)
# Performance data format
perfdata_format = "" # nagios
if(options.perfdata_format == 'centreon'): # centreon
perfdata_format = ","
# Get the nextcloud version...
# [output]
# Get the nextcloud version... other informations about the system like RAM/CPU/DISK are nagios/centreon own checks - so we don't need them here...
if options.check == 'system':
xml_system = xml_root.find('data').find('nextcloud').find('system')
xml_system_version = str(xml_system.find('version').text)
xml_system_version = str(xml_system.find('version').text)
print('OK - Nextcloud version: {0}'.format(xml_system_version))
sys.exit(0)
# Get the nextcloud theme
if options.check == 'theme':
xml_system = xml_root.find('data').find('nextcloud').find('system')
xml_system_theme = str(xml_system.find('theme').text)
print('OK - Nextcloud theme: {0}'.format(xml_system_theme))
sys.exit(0)
# Get informations about the storage
# [output + performance data]
if options.check == 'storage':
xml_storage = xml_root.find('data').find('nextcloud').find('storage')
@ -198,11 +168,10 @@ if options.check == 'storage':
xml_storage_storages_home = int(xml_storage.find('num_storages_home').text)
xml_storage_storages_other = int(xml_storage.find('num_storages_other').text)
print('OK - Users: {1}, files: {2}, storages: {3}, storages local: {4}, storages home: {5}, storages other: {6} | users={1}{0} files={2}{0} storages={3}{0} storages_local={4}{0} storages_home={5}{0} storage_other={6}'.format(perfdata_format, xml_storage_users, xml_storage_files, xml_storage_storages, xml_storage_storages_local, xml_storage_storages_home, xml_storage_storages_other))
print('OK - Users: {0}, files: {1}, storages: {2}, storages local: {3}, storages home: {4}, storages other: {5} | users={0}, files={1}, storages={2}, storages_local={3}, storages_home={4}, storage_other={5}'.format(xml_storage_users, xml_storage_files, xml_storage_storages, xml_storage_storages_local, xml_storage_storages_home, xml_storage_storages_other))
sys.exit(0)
# Get informations about the shares
# [output + performance data]
if options.check == 'shares':
xml_shares = xml_root.find('data').find('nextcloud').find('shares')
@ -214,11 +183,10 @@ if options.check == 'shares':
xml_shares_fed_shares_sent = int(xml_shares.find('num_fed_shares_sent').text)
xml_shares_fed_shares_received = int(xml_shares.find('num_fed_shares_received').text)
print('OK - Shares: {1}, shares user: {2}, shares groups: {3}, shares link: {4}, shares link no password: {5}, shares federation sent: {6}, shares federation received: {7} | shares={1}{0} shares_user={2}{0} shares_groups={3}{0} shares_link={4}{0} shares_link_no_password={5}{0} federation_shares_sent={6}{0} federation_shares_received={7}'.format(perfdata_format, xml_shares_shares, xml_shares_shares_user, xml_shares_shares_groups, xml_shares_shares_link, xml_shares_shares_link_no_password, xml_shares_fed_shares_sent, xml_shares_fed_shares_received))
print('OK - Shares: {0}, shares user: {1}, shares groups: {2}, shares link: {3}, shares link no password: {4}, shares federation sent: {5}, shares federation received: {6} | shares={0}, shares_user={1}, shares_groups={2}, shares_link={3}, shares_link_no_password={4}, federation_shares_sent={5}, federation_shares_received={6}'.format(xml_shares_shares, xml_shares_shares_user, xml_shares_shares_groups, xml_shares_shares_link, xml_shares_shares_link_no_password, xml_shares_fed_shares_sent, xml_shares_fed_shares_received))
sys.exit(0)
# Get informations about the webserver
# [output]
if options.check == 'webserver':
xml_webserver = str(xml_root.find('data').find('server').find('webserver').text)
@ -226,7 +194,6 @@ if options.check == 'webserver':
sys.exit(0)
# Get informations about php
# [output]
if options.check == 'php':
xml_php = xml_root.find('data').find('server').find('php')
@ -239,7 +206,6 @@ if options.check == 'php':
sys.exit(0)
# Get informations about the database
# [output + performance data]
if options.check == 'database':
xml_database = xml_root.find('data').find('server').find('database')
@ -251,7 +217,6 @@ if options.check == 'database':
sys.exit(0)
# Check the active users
# [output + performance data]
if options.check == 'activeUsers':
xml_activeUsers = xml_root.find('data').find('activeUsers')
@ -259,12 +224,12 @@ if options.check == 'activeUsers':
xml_activeUsers_last1hour = int(xml_activeUsers.find('last1hour').text)
xml_activeUsers_last24hours = int(xml_activeUsers.find('last24hours').text)
print('OK - Last 5 minutes: {1} user(s), last 1 hour: {2} user(s), last 24 hour: {3} user(s) | users_last_5_minutes={1}{0} users_last_1_hour={2}{0} users_last_24_hours={3}'.format(perfdata_format, xml_activeUsers_last5minutes, xml_activeUsers_last1hour, xml_activeUsers_last24hours))
print('OK - Last 5 minutes: {0} user(s), last 1 hour: {1} user(s), last 24 hour: {2} user(s) | users_last_5_minutes={0}, users_last_1_hour={1}, users_last_24_hours={2}'.format(xml_activeUsers_last5minutes, xml_activeUsers_last1hour, xml_activeUsers_last24hours))
sys.exit(0)
if options.check == 'uploadFilesize':
xml_php = xml_root.find('data').find('server').find('php')
# Get upload max filesize
xml_php_upload_max_filesize = int(xml_php.find('upload_max_filesize').text)
@ -273,25 +238,7 @@ if options.check == 'uploadFilesize':
if options.upload_filesize == upload_max_filesize:
print('OK - Upload max filesize: {0}'.format(upload_max_filesize))
sys.exit(0)
sys.exit(0)
else:
print('CRITICAL - Upload max filesize is set to {0}, but should be {1}'.format(upload_max_filesize, options.upload_filesize))
sys.exit(2)
# Get informations about any app updates
# [output]
if options.check == 'apps':
xml_apps = xml_root.find('data').find('nextcloud').find('system').find('apps')
xml_apps_num_updates_available = int(xml_apps.find('num_updates_available').text)
if xml_apps_num_updates_available == 0:
print('OK - No apps requiring update')
sys.exit(0)
else:
xml_apps_updates = xml_apps.find('app_updates')
xml_apps_list = []
for app in xml_apps_updates:
xml_apps_list.append('{0}->{1}'.format(app.tag, app.text))
print('WARNING - {0} apps require update: {1}'.format(xml_apps_num_updates_available, ' ,'.join(xml_apps_list)))
sys.exit(1)

View file

@ -1,6 +1,6 @@
Uploaders: Jan Wagner <waja@cyconet.org>
Recommends: python3-minimal
Version: 2.0
Version: b7e5755
Homepage: https://github.com/BornToBeRoot/check_nextcloud
Watch: https://raw.githubusercontent.com/BornToBeRoot/check_nextcloud/master/check/check_nextcloud.py # ~~ Version ([0-9.]+) ~~
Watch: https://github.com/BornToBeRoot/check_nextcloud <a class="commit-tease-sha"[^>]*>\s+([0-9a-f]+)\s+</a>
Description: Plugin script to monitor your nextcloud serverinfo API

View file

@ -1,101 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ADONISDNSMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ADONIS-DNS-MIB'} = {
url => '',
name => 'ADONIS-DNS-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ADONIS-DNS-MIB'} =
'1.3.6.1.4.1.13315.100.101';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ADONIS-DNS-MIB'} = {
'adonis' => '1.3.6.1.4.1.13315.100.101',
'adonisObjects' => '1.3.6.1.4.1.13315.100.101.1',
'dns' => '1.3.6.1.4.1.13315.100.101.1.1',
'dnsDaemon' => '1.3.6.1.4.1.13315.100.101.1.1.1',
'dnsDaemonRunning' => '1.3.6.1.4.1.13315.100.101.1.1.1.1',
'dnsDaemonNumberOfZones' => '1.3.6.1.4.1.13315.100.101.1.1.1.2',
'dnsDaemonDebugLevel' => '1.3.6.1.4.1.13315.100.101.1.1.1.3',
'dnsDaemonZoneTransfersInProgress' => '1.3.6.1.4.1.13315.100.101.1.1.1.4',
'dnsDaemonZoneTransfersDeferred' => '1.3.6.1.4.1.13315.100.101.1.1.1.5',
'dnsDaemonSOAQueriesInProgress' => '1.3.6.1.4.1.13315.100.101.1.1.1.6',
'dnsDaemonQueryLoggingState' => '1.3.6.1.4.1.13315.100.101.1.1.1.7',
'dnsDaemonZoneTransferFailure' => '1.3.6.1.4.1.13315.100.101.1.1.1.8',
'dnsStats' => '1.3.6.1.4.1.13315.100.101.1.1.2',
'dnsStatsSuccess' => '1.3.6.1.4.1.13315.100.101.1.1.2.1',
'dnsStatsReferral' => '1.3.6.1.4.1.13315.100.101.1.1.2.2',
'dnsStatsNXRRSet' => '1.3.6.1.4.1.13315.100.101.1.1.2.3',
'dnsStatsNXDomain' => '1.3.6.1.4.1.13315.100.101.1.1.2.4',
'dnsStatsRecursion' => '1.3.6.1.4.1.13315.100.101.1.1.2.5',
'dnsStatsFailure' => '1.3.6.1.4.1.13315.100.101.1.1.2.6',
'dhcp' => '1.3.6.1.4.1.13315.100.101.1.2',
'dhcpDaemon' => '1.3.6.1.4.1.13315.100.101.1.2.1',
'dhcpDaemonRunning' => '1.3.6.1.4.1.13315.100.101.1.2.1.1',
'dhcpDaemonSubnetAlert' => '1.3.6.1.4.1.13315.100.101.1.2.1.2',
'dhcpDaemonLeaseStatsSuccess' => '1.3.6.1.4.1.13315.100.101.1.2.1.3',
'dhcpFailOverState' => '1.3.6.1.4.1.13315.100.101.1.2.1.4',
'dhcpStats' => '1.3.6.1.4.1.13315.100.101.1.2.2',
'dhcpLeaseTable' => '1.3.6.1.4.1.13315.100.101.1.2.2.1',
'dhcpLeaseEntry' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1',
'dhcpIP' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.1',
'dhcpLeaseStartTime' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.2',
'dhcpLeaseEndTime' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.3',
'dhcpLeaseTimeStamp' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.4',
'dhcpLeaseBindState' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.5',
'dhcpLeaseBindStateDefinition' => 'ADONIS-DNS-MIB::dhcpLeaseBindState',
'dhcpLeaseHardwareAddress' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.6',
'dhcpLeaseHostname' => '1.3.6.1.4.1.13315.100.101.1.2.2.1.1.7',
'dhcpSubnetTable' => '1.3.6.1.4.1.13315.100.101.1.2.2.2',
'dhcpSubnetEntry' => '1.3.6.1.4.1.13315.100.101.1.2.2.2.1',
'dhcpSubnetIP' => '1.3.6.1.4.1.13315.100.101.1.2.2.2.1.1',
'dhcpSubnetMask' => '1.3.6.1.4.1.13315.100.101.1.2.2.2.1.2',
'dhcpSubnetSize' => '1.3.6.1.4.1.13315.100.101.1.2.2.2.1.3',
'dhcpSubnetUsed' => '1.3.6.1.4.1.13315.100.101.1.2.2.2.1.4',
'dhcpSubnetAlert' => '1.3.6.1.4.1.13315.100.101.1.2.2.2.1.5',
'dhcpPoolTable' => '1.3.6.1.4.1.13315.100.101.1.2.2.3',
'dhcpPoolEntry' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1',
'dhcpPoolSubnetIP' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1.1',
'dhcpPoolStartIP' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1.2',
'dhcpPoolEndIP' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1.3',
'dhcpPoolSize' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1.4',
'dhcpPoolUsed' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1.5',
'dhcpPoolAlert' => '1.3.6.1.4.1.13315.100.101.1.2.2.3.1.6',
'dhcpConfig' => '1.3.6.1.4.1.13315.100.101.1.2.3',
'dhcpFixedIPTable' => '1.3.6.1.4.1.13315.100.101.1.2.3.1',
'dhcpFixedIPEntry' => '1.3.6.1.4.1.13315.100.101.1.2.3.1.1',
'dhcpFixedIP' => '1.3.6.1.4.1.13315.100.101.1.2.3.1.1.1',
'ha' => '1.3.6.1.4.1.13315.100.101.1.3',
'haService' => '1.3.6.1.4.1.13315.100.101.1.3.1',
'haServiceRunning' => '1.3.6.1.4.1.13315.100.101.1.3.1.1',
'haServiceNodeType' => '1.3.6.1.4.1.13315.100.101.1.3.1.2',
'haReplicationBinding' => '1.3.6.1.4.1.13315.100.101.1.3.1.3',
'commandServer' => '1.3.6.1.4.1.13315.100.101.1.4',
'commandServerDaemon' => '1.3.6.1.4.1.13315.100.101.1.4.1',
'commandServerDaemonRunning' => '1.3.6.1.4.1.13315.100.101.1.4.1.1',
'lcd' => '1.3.6.1.4.1.13315.100.101.1.5',
'lcdDaemon' => '1.3.6.1.4.1.13315.100.101.1.5.1',
'licenseValid' => '1.3.6.1.4.1.13315.100.101.1.5.1.1',
'licenseExpiry' => '1.3.6.1.4.1.13315.100.101.1.5.1.2',
'tftp' => '1.3.6.1.4.1.13315.100.101.1.6',
'tftpDaemon' => '1.3.6.1.4.1.13315.100.101.1.6.1',
'tftpDaemonRunning' => '1.3.6.1.4.1.13315.100.101.1.6.1.1',
'system' => '1.3.6.1.4.1.13315.100.101.1.7',
'systemDaemon' => '1.3.6.1.4.1.13315.100.101.1.7.1',
'systemState' => '1.3.6.1.4.1.13315.100.101.1.7.1.1',
'adonisTraps' => '1.3.6.1.4.1.13315.100.101.2',
'trapDNS' => '1.3.6.1.4.1.13315.100.101.2.1',
'trapHA' => '1.3.6.1.4.1.13315.100.101.2.2',
'trapCommandServer' => '1.3.6.1.4.1.13315.100.101.2.3',
'trapDHCP' => '1.3.6.1.4.1.13315.100.101.2.4',
'trapReplication' => '1.3.6.1.4.1.13315.100.101.2.5',
'trapTFTP' => '1.3.6.1.4.1.13315.100.101.2.6',
'trapSystem' => '1.3.6.1.4.1.13315.100.101.2.7',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ADONIS-DNS-MIB'} = {
'dhcpLeaseBindState' => {
'0' => 'free',
'1' => 'active',
'2' => 'fixed',
},
};

View file

@ -1,20 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ARUBAWIREDCHASSISMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ARUBAWIRED-CHASSIS-MIB'} = {
url => '',
name => 'ARUBAWIRED-CHASSIS-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ARUBAWIRED-CHASSIS-MIB'} =
'1.3.6.1.4.1.47196.4.1.1.3.11';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ARUBAWIRED-CHASSIS-MIB'} = {
'arubaWiredChassisMIB' => '1.3.6.1.4.1.47196.4.1.1.3.11',
'arubaWiredPowerSupply' => '1.3.6.1.4.1.47196.4.1.1.3.11.2',
'arubaWiredTempSensor' => '1.3.6.1.4.1.47196.4.1.1.3.11.3',
'arubaWiredFanTray' => '1.3.6.1.4.1.47196.4.1.1.3.11.4',
'arubaWiredFan' => '1.3.6.1.4.1.47196.4.1.1.3.11.5',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ARUBAWIRED-CHASSIS-MIB'} = {
};

View file

@ -1,31 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ARUBAWIREDFANMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ARUBAWIRED-FAN-MIB'} = {
url => '',
name => 'ARUBAWIRED-FAN-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ARUBAWIRED-FAN-MIB'} =
'1.3.6.1.4.1.47196.4.1.1.3.11.5';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ARUBAWIRED-FAN-MIB'} = {
'arubaWiredFan' => '1.3.6.1.4.1.47196.4.1.1.3.11.5',
'arubaWiredFanNotifications' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.0',
'arubaWiredFanTable' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1',
'arubaWiredFanEntry' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1',
'arubaWiredFanGroupIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.1',
'arubaWiredFanTrayIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.2',
'arubaWiredFanSlotIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.3',
'arubaWiredFanName' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.4',
'arubaWiredFanState' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.5',
'arubaWiredFanProductName' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.6',
'arubaWiredFanSerialNumber' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.7',
'arubaWiredFanRPM' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.8',
'arubaWiredFanAirflowDirection' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.1.1.9',
'arubaWiredFanConformance' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.99',
'arubaWiredFanCompliances' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.99.1',
'arubaWiredFanGroups' => '1.3.6.1.4.1.47196.4.1.1.3.11.5.99.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ARUBAWIRED-FAN-MIB'} = {
};

View file

@ -1,29 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ARUBAWIREDFANTRAYMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ARUBAWIRED-FANTRAY-MIB'} = {
url => '',
name => 'ARUBAWIRED-FANTRAY-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ARUBAWIRED-FANTRAY-MIB'} =
'1.3.6.1.4.1.47196.4.1.1.3.11.4';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ARUBAWIRED-FANTRAY-MIB'} = {
'arubaWiredFanTray' => '1.3.6.1.4.1.47196.4.1.1.3.11.4',
'arubaWiredFanTrayNotifications' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.0',
'arubaWiredFanTrayTable' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1',
'arubaWiredFanTrayEntry' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1',
'arubaWiredFanTrayGroupIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.1',
'arubaWiredFanTraySlotIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.2',
'arubaWiredFanTrayName' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.3',
'arubaWiredFanTrayState' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.4',
'arubaWiredFanTrayProductName' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.5',
'arubaWiredFanTraySerialNumber' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.6',
'arubaWiredFanTrayNumberFans' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.1.1.7',
'arubaWiredFanTrayConformance' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.99',
'arubaWiredFanTrayCompliances' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.99.1',
'arubaWiredFanTrayGroups' => '1.3.6.1.4.1.47196.4.1.1.3.11.4.99.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ARUBAWIRED-FANTRAY-MIB'} = {
};

View file

@ -1,32 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ARUBAWIREDPOWERSUPPLYMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ARUBAWIRED-POWERSUPPLY-MIB'} = {
url => '',
name => 'ARUBAWIRED-POWERSUPPLY-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ARUBAWIRED-POWERSUPPLY-MIB'} =
'1.3.6.1.4.1.47196.4.1.1.3.11.2';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ARUBAWIRED-POWERSUPPLY-MIB'} = {
'arubaWiredPowerSupply' => '1.3.6.1.4.1.47196.4.1.1.3.11.2',
'arubaWiredPSUNotifications' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.0',
'arubaWiredPowerSupplyTable' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1',
'arubaWiredPowerSupplyEntry' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1',
'arubaWiredPSUGroupIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.1',
'arubaWiredPSUSlotIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.2',
'arubaWiredPSUName' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.3',
'arubaWiredPSUState' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.4',
'arubaWiredPSUProductName' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.5',
'arubaWiredPSUSerialNumber' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.6',
'arubaWiredPSUInstantaneousPower' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.7',
'arubaWiredPSUMaximumPower' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.8',
'arubaWiredPSUNumberFailures' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.9',
'arubaWiredPSUAirflowDirection' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.1.1.10',
'arubaWiredPowerSupplyConformance' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.99',
'arubaWiredPowerSupplyCompliances' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.99.1',
'arubaWiredPowerSupplyGroups' => '1.3.6.1.4.1.47196.4.1.1.3.11.2.99.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ARUBAWIRED-POWERSUPPLY-MIB'} = {
};

View file

@ -1,31 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ARUBAWIREDTEMPSENSORMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ARUBAWIRED-TEMPSENSOR-MIB'} = {
url => '',
name => 'ARUBAWIRED-TEMPSENSOR-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ARUBAWIRED-TEMPSENSOR-MIB'} =
'1.3.6.1.4.1.47196.4.1.1.3.11.3';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ARUBAWIRED-TEMPSENSOR-MIB'} = {
'arubaWiredTempSensor' => '1.3.6.1.4.1.47196.4.1.1.3.11.3',
'arubaWiredTempSensorNotifications' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.0',
'arubaWiredTempSensorTable' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1',
'arubaWiredTempSensorEntry' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1',
'arubaWiredTempSensorGroupIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.1',
'arubaWiredTempSensorSlotTypeIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.2',
'arubaWiredTempSensorSlotIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.3',
'arubaWiredTempSensorIndex' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.4',
'arubaWiredTempSensorName' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.5',
'arubaWiredTempSensorState' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.6',
'arubaWiredTempSensorTemperature' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.7',
'arubaWiredTempSensorMinTemp' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.8',
'arubaWiredTempSensorMaxTemp' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.1.1.9',
'arubaWiredTempSensorConformance' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.99',
'arubaWiredTempSensorCompliances' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.99.1',
'arubaWiredTempSensorGroups' => '1.3.6.1.4.1.47196.4.1.1.3.11.3.99.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ARUBAWIRED-TEMPSENSOR-MIB'} = {
};

View file

@ -1,56 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::ARUBAWIREDVSFMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ARUBAWIRED-VSF-MIB'} = {
url => '',
name => 'ARUBAWIRED-VSF-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ARUBAWIRED-VSF-MIB'} =
'1.3.6.1.4.1.47196.4.1.1.3.10';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ARUBAWIRED-VSF-MIB'} = {
'arubaWiredVsfMIB' => '1.3.6.1.4.1.47196.4.1.1.3.10',
'arubaWiredVsfObjects' => '1.3.6.1.4.1.47196.4.1.1.3.10.0',
'arubaWiredVsfConfig' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.1',
'arubaWiredVsfTrapEnable' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.1.1',
'arubaWiredVsfOobmMADEnable' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.1.2',
'arubaWiredVsfOobmMADEnableDefinition' => 'ARUBAWIRED-VSF-MIB::arubaWiredVsfOobmMADEnable',
'arubaWiredVsfStatus' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.2',
'arubaWiredVsfOperStatus' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.2.1',
'arubaWiredVsfTopology' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.2.2',
'arubaWiredVsfMemberTable' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3',
'arubaWiredVsfMemberEntry' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1',
'arubaWiredVsfMemberIndex' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.1',
'arubaWiredVsfMemberRole' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.2',
'arubaWiredVsfMemberStatus' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.3',
'arubaWiredVsfMemberPartNumber' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.4',
'arubaWiredVsfMemberMacAddr' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.5',
'arubaWiredVsfMemberProductName' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.6',
'arubaWiredVsfMemberSerialNum' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.7',
'arubaWiredVsfMemberBootImage' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.8',
'arubaWiredVsfMemberCpuUtil' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.9',
'arubaWiredVsfMemberMemoryUtil' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.10',
'arubaWiredVsfMemberBootTime' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.11',
'arubaWiredVsfMemberBootRomVersion' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.12',
'arubaWiredVsfMemberTotalMemory' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.13',
'arubaWiredVsfMemberCurrentUsage' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.3.1.14',
'arubaWiredVsfLinkTable' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4',
'arubaWiredVsfLinkEntry' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1',
'arubaWiredVsfLinkMemberId' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1.1',
'arubaWiredVsfLinkId' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1.2',
'arubaWiredVsfLinkOperStatus' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1.3',
'arubaWiredVsfLinkPeerMemberId' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1.4',
'arubaWiredVsfLinkPeerLinkId' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1.5',
'arubaWiredVsfLinkPortList' => '1.3.6.1.4.1.47196.4.1.1.3.10.0.4.1.6',
'arubaWiredVsfNotifications' => '1.3.6.1.4.1.47196.4.1.1.3.10.1',
'arubaWiredVsfConformance' => '1.3.6.1.4.1.47196.4.1.1.3.10.2',
'arubaWiredVsfCompliances' => '1.3.6.1.4.1.47196.4.1.1.3.10.2.1',
'arubaWiredVsfGroups' => '1.3.6.1.4.1.47196.4.1.1.3.10.2.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ARUBAWIRED-VSF-MIB'} = {
'arubaWiredVsfOobmMADEnable' => {
'1' => 'none',
'2' => 'mgmt',
},
};

View file

@ -1,82 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::BAMSNMPMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'BAM-SNMP-MIB'} = {
url => '',
name => 'BAM-SNMP-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'BAM-SNMP-MIB'} =
'1.3.6.1.4.1.13315.100.210';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'BAM-SNMP-MIB'} = {
'bam' => '1.3.6.1.4.1.13315.100.210',
'app' => '1.3.6.1.4.1.13315.100.210.1',
'common' => '1.3.6.1.4.1.13315.100.210.1.1',
'version' => '1.3.6.1.4.1.13315.100.210.1.1.1',
'startTime' => '1.3.6.1.4.1.13315.100.210.1.1.2',
'startTimeDefinition' => 'MIB-2-MIB::DateAndTime',
'notificationMessage' => '1.3.6.1.4.1.13315.100.210.1.1.3',
'database' => '1.3.6.1.4.1.13315.100.210.1.2',
'maxPoolSize' => '1.3.6.1.4.1.13315.100.210.1.2.1',
'numConnections' => '1.3.6.1.4.1.13315.100.210.1.2.2',
'deployer' => '1.3.6.1.4.1.13315.100.210.1.3',
'serverCountInQueue' => '1.3.6.1.4.1.13315.100.210.1.3.1',
'executingServerCount' => '1.3.6.1.4.1.13315.100.210.1.3.2',
'numberOfTasks' => '1.3.6.1.4.1.13315.100.210.1.3.3',
'eventNotification' => '1.3.6.1.4.1.13315.100.210.1.4',
'queueCount' => '1.3.6.1.4.1.13315.100.210.1.4.1',
'reconciliation' => '1.3.6.1.4.1.13315.100.210.1.5',
'poolSize' => '1.3.6.1.4.1.13315.100.210.1.5.1',
'scheduledDeployer' => '1.3.6.1.4.1.13315.100.210.1.6',
'numOfTimers' => '1.3.6.1.4.1.13315.100.210.1.6.1',
'running' => '1.3.6.1.4.1.13315.100.210.1.6.2',
'scheduledTaskService' => '1.3.6.1.4.1.13315.100.210.1.7',
'queueSize' => '1.3.6.1.4.1.13315.100.210.1.7.1',
'replication' => '1.3.6.1.4.1.13315.100.210.1.8',
'walFilesTotalSize' => '1.3.6.1.4.1.13315.100.210.1.8.1',
'replicationNodeStatus' => '1.3.6.1.4.1.13315.100.210.1.8.2',
'replicationNodeStatusDefinition' => 'BAM-SNMP-MIB::replicationNodeStatus',
'replicationAverageLatency' => '1.3.6.1.4.1.13315.100.210.1.8.3',
'replicationWarningThreshold' => '1.3.6.1.4.1.13315.100.210.1.8.4',
'replicationBreakThreshold' => '1.3.6.1.4.1.13315.100.210.1.8.5',
'replicationLatencyWarningThreshold' => '1.3.6.1.4.1.13315.100.210.1.8.6',
'replicationLatencyCriticalThreshold' => '1.3.6.1.4.1.13315.100.210.1.8.7',
'replicationStatusTable' => '1.3.6.1.4.1.13315.100.210.1.8.8',
'replicationStatusEntry' => '1.3.6.1.4.1.13315.100.210.1.8.8.1',
'hostname' => '1.3.6.1.4.1.13315.100.210.1.8.8.1.1',
'ipv4Address' => '1.3.6.1.4.1.13315.100.210.1.8.8.1.2',
'currentLatency' => '1.3.6.1.4.1.13315.100.210.1.8.8.1.3',
'replicationHealth' => '1.3.6.1.4.1.13315.100.210.1.8.8.1.4',
'replicationHealthDefinition' => 'BAM-SNMP-MIB::replicationHealth',
'replicationRole' => '1.3.6.1.4.1.13315.100.210.1.8.8.1.5',
'notification' => '1.3.6.1.4.1.13315.100.210.1.9',
'messagesReceived' => '1.3.6.1.4.1.13315.100.210.1.9.1',
'messagesAccepted' => '1.3.6.1.4.1.13315.100.210.1.9.2',
'ackSent' => '1.3.6.1.4.1.13315.100.210.1.9.3',
'messagesProcessed' => '1.3.6.1.4.1.13315.100.210.1.9.4',
'dbBackup' => '1.3.6.1.4.1.13315.100.210.1.10',
'lastSuccessfulBackupTime' => '1.3.6.1.4.1.13315.100.210.1.10.1',
'lastSuccessfulBackupTimeDefinition' => 'MIB-2-MIB::DateAndTime',
'lastSuccessfulRemoteBackupTime' => '1.3.6.1.4.1.13315.100.210.1.10.2',
'lastSuccessfulRemoteBackupTimeDefinition' => 'MIB-2-MIB::DateAndTime',
'jvm' => '1.3.6.1.4.1.13315.100.210.3',
'freeMemory' => '1.3.6.1.4.1.13315.100.210.3.1',
'maxMemory' => '1.3.6.1.4.1.13315.100.210.3.2',
'gcTime' => '1.3.6.1.4.1.13315.100.210.3.3',
'usageThresholdExceeded' => '1.3.6.1.4.1.13315.100.210.3.4',
'activeThreadCount' => '1.3.6.1.4.1.13315.100.210.3.5',
'traps' => '1.3.6.1.4.1.13315.100.210.255',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'BAM-SNMP-MIB'} = {
'replicationNodeStatus' => {
'0' => 'standalone',
'1' => 'primary',
'2' => 'standby',
},
'replicationHealth' => {
'0' => 'Not Replicating',
'1' => 'Initializing',
'2' => 'Replicating',
}
};

View file

@ -1,80 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::BCNDHCPV4MIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'BCN-DHCPV4-MIB'} = {
url => '',
name => 'BCN-DHCPV4-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'BCN-DHCPV4-MIB'} =
'bcnDhcpv4MIB';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'BCN-DHCPV4-MIB'} = {
'bcnDhcpv4' => '1.3.6.1.4.1.13315.3.1.1',
'bcnDhcpv4MIB' => '1.3.6.1.4.1.13315.3.1.1.1',
'bcnDhcpv4Objects' => '1.3.6.1.4.1.13315.3.1.1.2',
'bcnDhcpv4ServiceStatus' => '1.3.6.1.4.1.13315.3.1.1.2.1',
'bcnDhcpv4SerOperState' => '1.3.6.1.4.1.13315.3.1.1.2.1.1',
'bcnDhcpv4SerOperStateDefinition' => 'BCN-DHCPV4-MIB::bcnDhcpv4SerOperState',
'bcnDhcpv4FirstAlertIpAddr' => '1.3.6.1.4.1.13315.3.1.1.2.1.2',
'bcnDhcpv4LeaseStatsSuccess' => '1.3.6.1.4.1.13315.3.1.1.2.1.3',
'bcnDhcpv4ServiceStatistics' => '1.3.6.1.4.1.13315.3.1.1.2.2',
'bcnDhcpv4LeaseTable' => '1.3.6.1.4.1.13315.3.1.1.2.2.1',
'bcnDhcpv4LeaseEntry' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1',
'bcnDhcpv4LeaseIP' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1.1',
'bcnDhcpv4LeaseStartTime' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1.2',
'bcnDhcpv4LeaseEndTime' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1.3',
'bcnDhcpv4LeaseTimeStamp' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1.4',
'bcnDhcpv4LeaseMacAddress' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1.5',
'bcnDhcpv4LeaseHostname' => '1.3.6.1.4.1.13315.3.1.1.2.2.1.1.6',
'bcnDhcpv4SubnetTable' => '1.3.6.1.4.1.13315.3.1.1.2.2.2',
'bcnDhcpv4SubnetEntry' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1',
'bcnDhcpv4SubnetIP' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1.1',
'bcnDhcpv4SubnetMask' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1.2',
'bcnDhcpv4SubnetSize' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1.3',
'bcnDhcpv4SubnetFreeAddresses' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1.4',
'bcnDhcpv4SubnetLowThreshold' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1.5',
'bcnDhcpv4SubnetHighThreshold' => '1.3.6.1.4.1.13315.3.1.1.2.2.2.1.6',
'bcnDhcpv4PoolTable' => '1.3.6.1.4.1.13315.3.1.1.2.2.3',
'bcnDhcpv4PoolEntry' => '1.3.6.1.4.1.13315.3.1.1.2.2.3.1',
'bcnDhcpv4PoolStartIP' => '1.3.6.1.4.1.13315.3.1.1.2.2.3.1.1',
'bcnDhcpv4PoolEndIP' => '1.3.6.1.4.1.13315.3.1.1.2.2.3.1.2',
'bcnDhcpv4PoolSubnetIP' => '1.3.6.1.4.1.13315.3.1.1.2.2.3.1.3',
'bcnDhcpv4PoolSize' => '1.3.6.1.4.1.13315.3.1.1.2.2.3.1.4',
'bcnDhcpv4PoolFreeAddresses' => '1.3.6.1.4.1.13315.3.1.1.2.2.3.1.5',
'bcnDhcpv4FixedIPTable' => '1.3.6.1.4.1.13315.3.1.1.2.2.4',
'bcnDhcpv4FixedIPEntry' => '1.3.6.1.4.1.13315.3.1.1.2.2.4.1',
'bcnDhcpv4FixedIP' => '1.3.6.1.4.1.13315.3.1.1.2.2.4.1.1',
'bcnDhcpv4Notification' => '1.3.6.1.4.1.13315.3.1.1.3',
'bcnDhcpv4NotificationEvents' => '1.3.6.1.4.1.13315.3.1.1.3.0',
'bcnDhcpv4NotificationData' => '1.3.6.1.4.1.13315.3.1.1.3.1',
'bcnDhcpv4AlarmSeverity' => '1.3.6.1.4.1.13315.3.1.1.3.1.1',
'bcnDhcpv4AlarmInfo' => '1.3.6.1.4.1.13315.3.1.1.3.1.2',
'bcnDhcpv4FailOverState' => '1.3.6.1.4.1.13315.3.1.1.3.1.3',
'bcnDhcpv4FailOverStateDefinition' => 'BCN-DHCPV4-MIB::bcnDhcpv4FailOverState',
'bcnDhcpv4SubnetAlertIpAddr' => '1.3.6.1.4.1.13315.3.1.1.3.1.4',
'bcnDhcpv4Conformance' => '1.3.6.1.4.1.13315.3.1.1.4',
'bcnDhcpv4ServiceCompliances' => '1.3.6.1.4.1.13315.3.1.1.4.1',
'bcnDhcpv4ServiceGroups' => '1.3.6.1.4.1.13315.3.1.1.4.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'BCN-DHCPV4-MIB'} = {
'bcnDhcpv4FailOverState' => {
'1' => 'startup',
'2' => 'normal',
'3' => 'communicationsInterrupted',
'4' => 'partnerDown',
'5' => 'potentialConflict',
'6' => 'recover',
'7' => 'paused',
'8' => 'shutdown',
'9' => 'recoverDone',
'254' => 'recoverWait',
},
'bcnDhcpv4SerOperState' => {
'1' => 'running',
'2' => 'notRunning',
'3' => 'starting',
'4' => 'stopping',
'5' => 'fault',
},
};

View file

@ -1,55 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::BCNDNSMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'BCN-DNS-MIB'} = {
url => '',
name => 'BCN-DNS-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'BCN-DNS-MIB'} =
'1.3.6.1.4.1.13315.3.1.2.1';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'BCN-DNS-MIB'} = {
'bcnDns' => '1.3.6.1.4.1.13315.3.1.2',
'bcnDnsMIB' => '1.3.6.1.4.1.13315.3.1.2.1',
'bcnDnsObjects' => '1.3.6.1.4.1.13315.3.1.2.2',
'bcnDnsServiceStatus' => '1.3.6.1.4.1.13315.3.1.2.2.1',
'bcnDnsSerOperState' => '1.3.6.1.4.1.13315.3.1.2.2.1.1',
'bcnDnsSerOperStateDefinition' => 'BCN-DNS-MIB::bcnDnsSerOperState',
'bcnDnsSerNumberOfZones' => '1.3.6.1.4.1.13315.3.1.2.2.1.2',
'bcnDnsSerTransfersRunning' => '1.3.6.1.4.1.13315.3.1.2.2.1.3',
'bcnDnsSerTransfersDeferred' => '1.3.6.1.4.1.13315.3.1.2.2.1.4',
'bcnDnsSerSOAQueriesInProgress' => '1.3.6.1.4.1.13315.3.1.2.2.1.5',
'bcnDnsSerQueryLogging' => '1.3.6.1.4.1.13315.3.1.2.2.1.6',
'bcnDnsSerQueryLoggingDefinition' => 'BCN-DNS-MIB::bcnDnsSerQueryLogging',
'bcnDnsSerDebugLevel' => '1.3.6.1.4.1.13315.3.1.2.2.1.7',
'bcnDnsServiceStatistics' => '1.3.6.1.4.1.13315.3.1.2.2.2',
'bcnDnsStatServer' => '1.3.6.1.4.1.13315.3.1.2.2.2.1',
'bcnDnsStatSrvQrySuccess' => '1.3.6.1.4.1.13315.3.1.2.2.2.1.1',
'bcnDnsStatSrvQryReferral' => '1.3.6.1.4.1.13315.3.1.2.2.2.1.2',
'bcnDnsStatSrvQryNXRRSet' => '1.3.6.1.4.1.13315.3.1.2.2.2.1.3',
'bcnDnsStatSrvQryNXDomain' => '1.3.6.1.4.1.13315.3.1.2.2.2.1.4',
'bcnDnsStatSrvQryRecursion' => '1.3.6.1.4.1.13315.3.1.2.2.2.1.5',
'bcnDnsStatSrvQryFailure' => '1.3.6.1.4.1.13315.3.1.2.2.2.1.6',
'bcnDnsNotification' => '1.3.6.1.4.1.13315.3.1.2.3',
'bcnDnsNotificationEvents' => '1.3.6.1.4.1.13315.3.1.2.3.0',
'bcnDnsNotificationData' => '1.3.6.1.4.1.13315.3.1.2.3.1',
'bcnDnsAlarmSeverity' => '1.3.6.1.4.1.13315.3.1.2.3.1.1',
'bcnDnsAlarmInfo' => '1.3.6.1.4.1.13315.3.1.2.3.1.2',
'bcnDnsConformance' => '1.3.6.1.4.1.13315.3.1.2.4',
'bcnDnsServiceCompliances' => '1.3.6.1.4.1.13315.3.1.2.4.1',
'bcnDnsServiceGroups' => '1.3.6.1.4.1.13315.3.1.2.4.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'BCN-DNS-MIB'} = {
'bcnDnsSerOperState' => {
'1' => 'running',
'2' => 'notRunning',
'3' => 'starting',
'4' => 'stopping',
'5' => 'fault',
},
'bcnDnsSerQueryLogging' => {
'1' => 'on',
'2' => 'off',
},
};

View file

@ -1,57 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::BCNSYSTEMMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'BCN-SYSTEM-MIB'} = {
url => '',
name => 'BCN-SYSTEM-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'BCN-SYSTEM-MIB'} =
'1.3.6.1.4.1.13315.3.2.1';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'BCN-SYSTEM-MIB'} = {
'bcnSystem' => '1.3.6.1.4.1.13315.3.2',
'bcnSystemMIB' => '1.3.6.1.4.1.13315.3.2.1',
'bcnSystemObjects' => '1.3.6.1.4.1.13315.3.2.2',
'bcnSysIdentification' => '1.3.6.1.4.1.13315.3.2.2.1',
'bcnSysIdProduct' => '1.3.6.1.4.1.13315.3.2.2.1.1',
'bcnSysIdOSRelease' => '1.3.6.1.4.1.13315.3.2.2.1.2',
'bcnSysIdSerial' => '1.3.6.1.4.1.13315.3.2.2.1.3',
'bcnSysIdServiceTag' => '1.3.6.1.4.1.13315.3.2.2.1.4',
'bcnSysIdPlatform' => '1.3.6.1.4.1.13315.3.2.2.1.5',
'bcnSysIdVendorPlatform' => '1.3.6.1.4.1.13315.3.2.2.1.6',
'bcnSysIdServicesTable' => '1.3.6.1.4.1.13315.3.2.2.1.7',
'bcnSysIdServicesEntry' => '1.3.6.1.4.1.13315.3.2.2.1.7.1',
'bcnSysIdServicesIndex' => '1.3.6.1.4.1.13315.3.2.2.1.7.1.1',
'bcnSysIdServicesOID' => '1.3.6.1.4.1.13315.3.2.2.1.7.1.2',
'bcnSysIdServicesStateTS' => '1.3.6.1.4.1.13315.3.2.2.1.7.1.3',
'bcnSysServices' => '1.3.6.1.4.1.13315.3.2.2.2',
'bcnSysServDNSService' => '1.3.6.1.4.1.13315.3.2.2.2.1',
'bcnSysServDHCPService' => '1.3.6.1.4.1.13315.3.2.2.2.2',
'bcnSysServTFTPService' => '1.3.6.1.4.1.13315.3.2.2.2.3',
'bcnSysServLicensing' => '1.3.6.1.4.1.13315.3.2.2.2.4',
'bcnSysServTFTP' => '1.3.6.1.4.1.13315.3.2.2.2.5',
'bcnSysServNTP' => '1.3.6.1.4.1.13315.3.2.2.2.6',
'bcnSysServPowerSupply' => '1.3.6.1.4.1.13315.3.2.2.2.7',
'bcnSysServNetworkInterface' => '1.3.6.1.4.1.13315.3.2.2.2.8',
'bcnSysServHighAvailability' => '1.3.6.1.4.1.13315.3.2.2.2.9',
'bcnSysServReplication' => '1.3.6.1.4.1.13315.3.2.2.2.10',
'bcnSysServSystem' => '1.3.6.1.4.1.13315.3.2.2.2.11',
'bcnSystemNotification' => '1.3.6.1.4.1.13315.3.2.3',
'bcnSysNotificationEvents' => '1.3.6.1.4.1.13315.3.2.3.0',
'bcnSysNotificationData' => '1.3.6.1.4.1.13315.3.2.3.1',
'bcnSysSerOperState' => '1.3.6.1.4.1.13315.3.2.3.1.1',
'bcnSysSerOperStateDefinition' => 'BCN-SYSTEM-MIB::bcnSysSerOperState',
'bcnSysAlarmSeverity' => '1.3.6.1.4.1.13315.3.2.3.1.2',
'bcnSysAlarmInfo' => '1.3.6.1.4.1.13315.3.2.3.1.3',
'bcnSystemConformance' => '1.3.6.1.4.1.13315.3.2.4',
'bcnSysServliances' => '1.3.6.1.4.1.13315.3.2.4.1',
'bcnSysGroups' => '1.3.6.1.4.1.13315.3.2.4.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'BCN-SYSTEM-MIB'} = {
'bcnSysSerOperState' => {
'1' => 'start',
'2' => 'reboot',
'3' => 'shutdown',
},
};

View file

@ -1,207 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::CISCOLICENSEMGMTMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'CISCO-LICENSE-MGMT-MIB'} = {
url => '',
name => 'CISCO-LICENSE-MGMT-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'CISCO-LICENSE-MGMT-MIB'} =
'1.3.6.1.4.1.9.9.543';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'CISCO-LICENSE-MGMT-MIB'} = {
'ciscoLicenseMgmtMIB' => '1.3.6.1.4.1.9.9.543',
'ciscoLicenseMgmtMIBNotifs' => '1.3.6.1.4.1.9.9.543.0',
'ciscoLicenseMgmtMIBObjects' => '1.3.6.1.4.1.9.9.543.1',
'clmgmtLicenseConfiguration' => '1.3.6.1.4.1.9.9.543.1.1',
'clmgmtNextFreeLicenseActionIndex' => '1.3.6.1.4.1.9.9.543.1.1.1',
'clmgmtLicenseActionTable' => '1.3.6.1.4.1.9.9.543.1.1.2',
'clmgmtLicenseActionEntry' => '1.3.6.1.4.1.9.9.543.1.1.2.1',
'clmgmtLicenseActionIndex' => '1.3.6.1.4.1.9.9.543.1.1.2.1.1',
'clmgmtLicenseActionEntPhysicalIndex' => '1.3.6.1.4.1.9.9.543.1.1.2.1.2',
'clmgmtLicenseActionTransferProtocol' => '1.3.6.1.4.1.9.9.543.1.1.2.1.3',
'clmgmtLicenseActionTransferProtocolDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseTransferProtocol',
'clmgmtLicenseServerAddressType' => '1.3.6.1.4.1.9.9.543.1.1.2.1.4',
'clmgmtLicenseServerAddress' => '1.3.6.1.4.1.9.9.543.1.1.2.1.5',
'clmgmtLicenseServerUsername' => '1.3.6.1.4.1.9.9.543.1.1.2.1.6',
'clmgmtLicenseServerPassword' => '1.3.6.1.4.1.9.9.543.1.1.2.1.7',
'clmgmtLicenseFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.8',
'clmgmtLicenseStore' => '1.3.6.1.4.1.9.9.543.1.1.2.1.9',
'clmgmtLicenseActionLicenseIndex' => '1.3.6.1.4.1.9.9.543.1.1.2.1.10',
'clmgmtLicensePermissionTicketFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.11',
'clmgmtLicenseRehostTicketFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.12',
'clmgmtLicenseBackupFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.13',
'clmgmtLicenseStopOnFailure' => '1.3.6.1.4.1.9.9.543.1.1.2.1.14',
'clmgmtLicenseAction' => '1.3.6.1.4.1.9.9.543.1.1.2.1.15',
'clmgmtLicenseActionDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtLicenseAction',
'clmgmtLicenseActionState' => '1.3.6.1.4.1.9.9.543.1.1.2.1.16',
'clmgmtLicenseActionStateDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionState',
'clmgmtLicenseJobQPosition' => '1.3.6.1.4.1.9.9.543.1.1.2.1.17',
'clmgmtLicenseActionFailCause' => '1.3.6.1.4.1.9.9.543.1.1.2.1.18',
'clmgmtLicenseActionFailCauseDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionFailCause',
'clmgmtLicenseActionStorageType' => '1.3.6.1.4.1.9.9.543.1.1.2.1.19',
'clmgmtLicenseActionRowStatus' => '1.3.6.1.4.1.9.9.543.1.1.2.1.20',
'clmgmtLicenseAcceptEULA' => '1.3.6.1.4.1.9.9.543.1.1.2.1.21',
'clmgmtLicenseEULAFile' => '1.3.6.1.4.1.9.9.543.1.1.2.1.22',
'clmgmtLicenseActionResultTable' => '1.3.6.1.4.1.9.9.543.1.1.3',
'clmgmtLicenseActionResultEntry' => '1.3.6.1.4.1.9.9.543.1.1.3.1',
'clmgmtLicenseNumber' => '1.3.6.1.4.1.9.9.543.1.1.3.1.1',
'clmgmtLicenseIndivActionState' => '1.3.6.1.4.1.9.9.543.1.1.3.1.2',
'clmgmtLicenseIndivActionStateDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionState',
'clmgmtLicenseIndivActionFailCause' => '1.3.6.1.4.1.9.9.543.1.1.3.1.3',
'clmgmtLicenseIndivActionFailCauseDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionFailCause',
'clmgmtLicenseInformation' => '1.3.6.1.4.1.9.9.543.1.2',
'clmgmtLicenseStoreInfoTable' => '1.3.6.1.4.1.9.9.543.1.2.1',
'clmgmtLicenseStoreInfoEntry' => '1.3.6.1.4.1.9.9.543.1.2.1.1',
'clmgmtLicenseStoreIndex' => '1.3.6.1.4.1.9.9.543.1.2.1.1.1',
'clmgmtLicenseStoreName' => '1.3.6.1.4.1.9.9.543.1.2.1.1.2',
'clmgmtLicenseStoreTotalSize' => '1.3.6.1.4.1.9.9.543.1.2.1.1.3',
'clmgmtLicenseStoreSizeRemaining' => '1.3.6.1.4.1.9.9.543.1.2.1.1.4',
'clmgmtLicenseDeviceInfoTable' => '1.3.6.1.4.1.9.9.543.1.2.2',
'clmgmtLicenseDeviceInfoEntry' => '1.3.6.1.4.1.9.9.543.1.2.2.1',
'clmgmtDefaultLicenseStore' => '1.3.6.1.4.1.9.9.543.1.2.2.1.1',
'clmgmtLicenseInfoTable' => '1.3.6.1.4.1.9.9.543.1.2.3',
'clmgmtLicenseInfoEntry' => '1.3.6.1.4.1.9.9.543.1.2.3.1',
'clmgmtLicenseStoreUsed' => '1.3.6.1.4.1.9.9.543.1.2.3.1.1',
'clmgmtLicenseIndex' => '1.3.6.1.4.1.9.9.543.1.2.3.1.2',
'clmgmtLicenseFeatureName' => '1.3.6.1.4.1.9.9.543.1.2.3.1.3',
'clmgmtLicenseFeatureVersion' => '1.3.6.1.4.1.9.9.543.1.2.3.1.4',
'clmgmtLicenseType' => '1.3.6.1.4.1.9.9.543.1.2.3.1.5',
'clmgmtLicenseTypeDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtLicenseType',
'clmgmtLicenseCounted' => '1.3.6.1.4.1.9.9.543.1.2.3.1.6',
'clmgmtLicenseValidityPeriod' => '1.3.6.1.4.1.9.9.543.1.2.3.1.7',
'clmgmtLicenseValidityPeriodRemaining' => '1.3.6.1.4.1.9.9.543.1.2.3.1.8',
'clmgmtLicenseExpiredPeriod' => '1.3.6.1.4.1.9.9.543.1.2.3.1.9',
'clmgmtLicenseMaxUsageCount' => '1.3.6.1.4.1.9.9.543.1.2.3.1.10',
'clmgmtLicenseUsageCountRemaining' => '1.3.6.1.4.1.9.9.543.1.2.3.1.11',
'clmgmtLicenseEULAStatus' => '1.3.6.1.4.1.9.9.543.1.2.3.1.12',
'clmgmtLicenseComments' => '1.3.6.1.4.1.9.9.543.1.2.3.1.13',
'clmgmtLicenseStatus' => '1.3.6.1.4.1.9.9.543.1.2.3.1.14',
'clmgmtLicenseStatusDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtLicenseStatus',
'clmgmtLicenseStartDate' => '1.3.6.1.4.1.9.9.543.1.2.3.1.15',
'clmgmtLicenseEndDate' => '1.3.6.1.4.1.9.9.543.1.2.3.1.16',
'clmgmtLicensePeriodUsed' => '1.3.6.1.4.1.9.9.543.1.2.3.1.17',
'clmgmtLicensableFeatureTable' => '1.3.6.1.4.1.9.9.543.1.2.4',
'clmgmtLicensableFeatureEntry' => '1.3.6.1.4.1.9.9.543.1.2.4.1',
'clmgmtFeatureIndex' => '1.3.6.1.4.1.9.9.543.1.2.4.1.1',
'clmgmtFeatureName' => '1.3.6.1.4.1.9.9.543.1.2.4.1.2',
'clmgmtFeatureVersion' => '1.3.6.1.4.1.9.9.543.1.2.4.1.3',
'clmgmtFeatureValidityPeriodRemaining' => '1.3.6.1.4.1.9.9.543.1.2.4.1.4',
'clmgmtFeatureWhatIsCounted' => '1.3.6.1.4.1.9.9.543.1.2.4.1.5',
'clmgmtFeatureStartDate' => '1.3.6.1.4.1.9.9.543.1.2.4.1.6',
'clmgmtFeatureEndDate' => '1.3.6.1.4.1.9.9.543.1.2.4.1.7',
'clmgmtFeaturePeriodUsed' => '1.3.6.1.4.1.9.9.543.1.2.4.1.8',
'clmgmtLicenseDeviceInformation' => '1.3.6.1.4.1.9.9.543.1.3',
'clmgmtNextFreeDevCredExportActionIndex' => '1.3.6.1.4.1.9.9.543.1.3.1',
'clmgmtDevCredExportActionTable' => '1.3.6.1.4.1.9.9.543.1.3.2',
'clmgmtDevCredExportActionEntry' => '1.3.6.1.4.1.9.9.543.1.3.2.1',
'clmgmtDevCredExportActionIndex' => '1.3.6.1.4.1.9.9.543.1.3.2.1.1',
'clmgmtDevCredEntPhysicalIndex' => '1.3.6.1.4.1.9.9.543.1.3.2.1.2',
'clmgmtDevCredTransferProtocol' => '1.3.6.1.4.1.9.9.543.1.3.2.1.3',
'clmgmtDevCredTransferProtocolDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseTransferProtocol',
'clmgmtDevCredServerAddressType' => '1.3.6.1.4.1.9.9.543.1.3.2.1.4',
'clmgmtDevCredServerAddress' => '1.3.6.1.4.1.9.9.543.1.3.2.1.5',
'clmgmtDevCredServerUsername' => '1.3.6.1.4.1.9.9.543.1.3.2.1.6',
'clmgmtDevCredServerPassword' => '1.3.6.1.4.1.9.9.543.1.3.2.1.7',
'clmgmtDevCredExportFile' => '1.3.6.1.4.1.9.9.543.1.3.2.1.8',
'clmgmtDevCredCommand' => '1.3.6.1.4.1.9.9.543.1.3.2.1.9',
'clmgmtDevCredCommandDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtDevCredCommand',
'clmgmtDevCredCommandState' => '1.3.6.1.4.1.9.9.543.1.3.2.1.10',
'clmgmtDevCredCommandStateDefinition' => 'CISCO-LICENSE-MGMT-MIB::ClmgmtLicenseActionState',
'clmgmtDevCredCommandFailCause' => '1.3.6.1.4.1.9.9.543.1.3.2.1.11',
'clmgmtDevCredCommandFailCauseDefinition' => 'CISCO-LICENSE-MGMT-MIB::clmgmtDevCredCommandFailCause',
'clmgmtDevCredStorageType' => '1.3.6.1.4.1.9.9.543.1.3.2.1.12',
'clmgmtDevCredRowStatus' => '1.3.6.1.4.1.9.9.543.1.3.2.1.13',
'clmgmtLicenseNotifObjects' => '1.3.6.1.4.1.9.9.543.1.4',
'clmgmtLicenseUsageNotifEnable' => '1.3.6.1.4.1.9.9.543.1.4.1',
'clmgmtLicenseDeploymentNotifEnable' => '1.3.6.1.4.1.9.9.543.1.4.2',
'clmgmtLicenseErrorNotifEnable' => '1.3.6.1.4.1.9.9.543.1.4.3',
'ciscoLicenseMgmtMIBConform' => '1.3.6.1.4.1.9.9.543.2',
'ciscoLicenseMgmtCompliances' => '1.3.6.1.4.1.9.9.543.2.1',
'ciscoLicenseMgmtGroups' => '1.3.6.1.4.1.9.9.543.2.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'CISCO-LICENSE-MGMT-MIB'} = {
'ClmgmtLicenseActionFailCause' => {
'1' => 'none',
'2' => 'generalFailure',
'3' => 'transferProtocolNotSupported',
'4' => 'fileServerNotReachable',
'5' => 'unrecognizedEntPhysicalIndex',
'6' => 'invalidLicenseFilePath',
'7' => 'invalidLicenseFile',
'8' => 'invalidLicenseLine',
'9' => 'licenseAlreadyExists',
'10' => 'licenseNotValidForDevice',
'11' => 'invalidLicenseCount',
'12' => 'invalidLicensePeriod',
'13' => 'licenseInUse',
'14' => 'invalidLicenseStore',
'15' => 'licenseStorageFull',
'16' => 'invalidPermissionTicketFile',
'17' => 'invalidPermissionTicket',
'18' => 'invalidRehostTicketFile',
'19' => 'invalidRehostTicket',
'20' => 'invalidLicenseBackupFile',
'21' => 'licenseClearInProgress',
'22' => 'invalidLicenseEULAFile',
},
'ClmgmtLicenseTransferProtocol' => {
'1' => 'none',
'2' => 'local',
'3' => 'tftp',
'4' => 'ftp',
'5' => 'rcp',
'6' => 'http',
'7' => 'scp',
'8' => 'sftp',
},
'clmgmtDevCredCommand' => {
'1' => 'noOp',
'2' => 'getDeviceCredentials',
},
'clmgmtDevCredCommandFailCause' => {
'1' => 'none',
'2' => 'unknownError',
'3' => 'transferProtocolNotSupported',
'4' => 'fileServerNotReachable',
'5' => 'unrecognizedEntPhysicalIndex',
'6' => 'invalidFile',
},
'clmgmtLicenseAction' => {
'1' => 'noOp',
'2' => 'install',
'3' => 'clear',
'4' => 'processPermissionTicket',
'5' => 'regenerateLastRehostTicket',
'6' => 'backup',
'7' => 'generateEULA',
},
'clmgmtLicenseType' => {
'1' => 'demo',
'2' => 'extension',
'3' => 'gracePeriod',
'4' => 'permanent',
'5' => 'paidSubscription',
'6' => 'evaluationSubscription',
'7' => 'extensionSubscription',
'8' => 'evalRightToUse',
'9' => 'rightToUse',
'10' => 'permanentRightToUse',
},
'clmgmtLicenseStatus' => {
'1' => 'inactive',
'2' => 'notInUse',
'3' => 'inUse',
'4' => 'expiredInUse',
'5' => 'expiredNotInUse',
'6' => 'usageCountConsumed',
},
'ClmgmtLicenseActionState' => {
'1' => 'none',
'2' => 'pending',
'3' => 'inProgress',
'4' => 'successful',
'5' => 'partiallySuccessful',
'6' => 'failed',
},
};

View file

@ -1,227 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::CISCOPROCESSMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'CISCO-PROCESS-MIB'} = {
url => '',
name => 'CISCO-PROCESS-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'CISCO-PROCESS-MIB'} =
'1.3.6.1.4.1.9.9.109';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'CISCO-PROCESS-MIB'} = {
'ciscoProcessMIB' => '1.3.6.1.4.1.9.9.109',
'ciscoProcessMIBObjects' => '1.3.6.1.4.1.9.9.109.1',
'cpmCPU' => '1.3.6.1.4.1.9.9.109.1.1',
'cpmCPUTotalTable' => '1.3.6.1.4.1.9.9.109.1.1.1',
'cpmCPUTotalEntry' => '1.3.6.1.4.1.9.9.109.1.1.1.1',
'cpmCPUTotalIndex' => '1.3.6.1.4.1.9.9.109.1.1.1.1.1',
'cpmCPUTotalPhysicalIndex' => '1.3.6.1.4.1.9.9.109.1.1.1.1.2',
'cpmCPUTotal5sec' => '1.3.6.1.4.1.9.9.109.1.1.1.1.3',
'cpmCPUTotal1min' => '1.3.6.1.4.1.9.9.109.1.1.1.1.4',
'cpmCPUTotal5min' => '1.3.6.1.4.1.9.9.109.1.1.1.1.5',
'cpmCPUTotal5secRev' => '1.3.6.1.4.1.9.9.109.1.1.1.1.6',
'cpmCPUTotal1minRev' => '1.3.6.1.4.1.9.9.109.1.1.1.1.7',
'cpmCPUTotal5minRev' => '1.3.6.1.4.1.9.9.109.1.1.1.1.8',
'cpmCPUMonInterval' => '1.3.6.1.4.1.9.9.109.1.1.1.1.9',
'cpmCPUTotalMonIntervalValue' => '1.3.6.1.4.1.9.9.109.1.1.1.1.10',
'cpmCPUInterruptMonIntervalValue' => '1.3.6.1.4.1.9.9.109.1.1.1.1.11',
'cpmCPUMemoryUsed' => '1.3.6.1.4.1.9.9.109.1.1.1.1.12',
'cpmCPUMemoryFree' => '1.3.6.1.4.1.9.9.109.1.1.1.1.13',
'cpmCPUMemoryKernelReserved' => '1.3.6.1.4.1.9.9.109.1.1.1.1.14',
'cpmCPUMemoryLowest' => '1.3.6.1.4.1.9.9.109.1.1.1.1.15',
'cpmCPUMemoryUsedOvrflw' => '1.3.6.1.4.1.9.9.109.1.1.1.1.16',
'cpmCPUMemoryHCUsed' => '1.3.6.1.4.1.9.9.109.1.1.1.1.17',
'cpmCPUMemoryFreeOvrflw' => '1.3.6.1.4.1.9.9.109.1.1.1.1.18',
'cpmCPUMemoryHCFree' => '1.3.6.1.4.1.9.9.109.1.1.1.1.19',
'cpmCPUMemoryKernelReservedOvrflw' => '1.3.6.1.4.1.9.9.109.1.1.1.1.20',
'cpmCPUMemoryHCKernelReserved' => '1.3.6.1.4.1.9.9.109.1.1.1.1.21',
'cpmCPUMemoryLowestOvrflw' => '1.3.6.1.4.1.9.9.109.1.1.1.1.22',
'cpmCPUMemoryHCLowest' => '1.3.6.1.4.1.9.9.109.1.1.1.1.23',
'cpmCPULoadAvg1min' => '1.3.6.1.4.1.9.9.109.1.1.1.1.24',
'cpmCPULoadAvg5min' => '1.3.6.1.4.1.9.9.109.1.1.1.1.25',
'cpmCPULoadAvg15min' => '1.3.6.1.4.1.9.9.109.1.1.1.1.26',
'cpmCPUMemoryCommitted' => '1.3.6.1.4.1.9.9.109.1.1.1.1.27',
'cpmCPUMemoryCommittedOvrflw' => '1.3.6.1.4.1.9.9.109.1.1.1.1.28',
'cpmCPUMemoryHCCommitted' => '1.3.6.1.4.1.9.9.109.1.1.1.1.29',
'cpmCoreTable' => '1.3.6.1.4.1.9.9.109.1.1.2',
'cpmCoreEntry' => '1.3.6.1.4.1.9.9.109.1.1.2.1',
'cpmCoreIndex' => '1.3.6.1.4.1.9.9.109.1.1.2.1.1',
'cpmCorePhysicalIndex' => '1.3.6.1.4.1.9.9.109.1.1.2.1.2',
'cpmCore5sec' => '1.3.6.1.4.1.9.9.109.1.1.2.1.3',
'cpmCore1min' => '1.3.6.1.4.1.9.9.109.1.1.2.1.4',
'cpmCore5min' => '1.3.6.1.4.1.9.9.109.1.1.2.1.5',
'cpmCoreLoadAvg1min' => '1.3.6.1.4.1.9.9.109.1.1.2.1.6',
'cpmCoreLoadAvg5min' => '1.3.6.1.4.1.9.9.109.1.1.2.1.7',
'cpmCoreLoadAvg15min' => '1.3.6.1.4.1.9.9.109.1.1.2.1.8',
'cpmProcess' => '1.3.6.1.4.1.9.9.109.1.2',
'cpmProcessTable' => '1.3.6.1.4.1.9.9.109.1.2.1',
'cpmProcessEntry' => '1.3.6.1.4.1.9.9.109.1.2.1.1',
'cpmProcessPID' => '1.3.6.1.4.1.9.9.109.1.2.1.1.1',
'cpmProcessName' => '1.3.6.1.4.1.9.9.109.1.2.1.1.2',
'cpmProcessuSecs' => '1.3.6.1.4.1.9.9.109.1.2.1.1.4',
'cpmProcessTimeCreated' => '1.3.6.1.4.1.9.9.109.1.2.1.1.5',
'cpmProcessAverageUSecs' => '1.3.6.1.4.1.9.9.109.1.2.1.1.6',
'cpmProcessExtTable' => '1.3.6.1.4.1.9.9.109.1.2.2',
'cpmProcessExtEntry' => '1.3.6.1.4.1.9.9.109.1.2.2.1',
'cpmProcExtMemAllocated' => '1.3.6.1.4.1.9.9.109.1.2.2.1.1',
'cpmProcExtMemFreed' => '1.3.6.1.4.1.9.9.109.1.2.2.1.2',
'cpmProcExtInvoked' => '1.3.6.1.4.1.9.9.109.1.2.2.1.3',
'cpmProcExtRuntime' => '1.3.6.1.4.1.9.9.109.1.2.2.1.4',
'cpmProcExtUtil5Sec' => '1.3.6.1.4.1.9.9.109.1.2.2.1.5',
'cpmProcExtUtil1Min' => '1.3.6.1.4.1.9.9.109.1.2.2.1.6',
'cpmProcExtUtil5Min' => '1.3.6.1.4.1.9.9.109.1.2.2.1.7',
'cpmProcExtPriority' => '1.3.6.1.4.1.9.9.109.1.2.2.1.8',
'cpmProcExtPriorityDefinition' => 'CISCO-PROCESS-MIB::cpmProcExtPriority',
'cpmProcessExtRevTable' => '1.3.6.1.4.1.9.9.109.1.2.3',
'cpmProcessExtRevEntry' => '1.3.6.1.4.1.9.9.109.1.2.3.1',
'cpmProcExtMemAllocatedRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.1',
'cpmProcExtMemFreedRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.2',
'cpmProcExtInvokedRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.3',
'cpmProcExtRuntimeRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.4',
'cpmProcExtUtil5SecRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.5',
'cpmProcExtUtil1MinRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.6',
'cpmProcExtUtil5MinRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.7',
'cpmProcExtPriorityRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.8',
'cpmProcExtPriorityRevDefinition' => 'CISCO-PROCESS-MIB::cpmProcExtPriorityRev',
'cpmProcessType' => '1.3.6.1.4.1.9.9.109.1.2.3.1.9',
'cpmProcessTypeDefinition' => 'CISCO-PROCESS-MIB::cpmProcessType',
'cpmProcessRespawn' => '1.3.6.1.4.1.9.9.109.1.2.3.1.10',
'cpmProcessRespawnCount' => '1.3.6.1.4.1.9.9.109.1.2.3.1.11',
'cpmProcessRespawnAfterLastPatch' => '1.3.6.1.4.1.9.9.109.1.2.3.1.12',
'cpmProcessMemoryCore' => '1.3.6.1.4.1.9.9.109.1.2.3.1.13',
'cpmProcessMemoryCoreDefinition' => 'CISCO-PROCESS-MIB::cpmProcessMemoryCore',
'cpmProcessLastRestartUser' => '1.3.6.1.4.1.9.9.109.1.2.3.1.14',
'cpmProcessTextSegmentSize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.15',
'cpmProcessDataSegmentSize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.16',
'cpmProcessStackSize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.17',
'cpmProcessDynamicMemorySize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.18',
'cpmProcExtMemAllocatedRevOvrflw' => '1.3.6.1.4.1.9.9.109.1.2.3.1.19',
'cpmProcExtHCMemAllocatedRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.20',
'cpmProcExtMemFreedRevOvrflw' => '1.3.6.1.4.1.9.9.109.1.2.3.1.21',
'cpmProcExtHCMemFreedRev' => '1.3.6.1.4.1.9.9.109.1.2.3.1.22',
'cpmProcessTextSegmentSizeOvrflw' => '1.3.6.1.4.1.9.9.109.1.2.3.1.23',
'cpmProcessHCTextSegmentSize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.24',
'cpmProcessDataSegmentSizeOvrflw' => '1.3.6.1.4.1.9.9.109.1.2.3.1.25',
'cpmProcessHCDataSegmentSize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.26',
'cpmProcessStackSizeOvrflw' => '1.3.6.1.4.1.9.9.109.1.2.3.1.27',
'cpmProcessHCStackSize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.28',
'cpmProcessDynamicMemorySizeOvrflw' => '1.3.6.1.4.1.9.9.109.1.2.3.1.29',
'cpmProcessHCDynamicMemorySize' => '1.3.6.1.4.1.9.9.109.1.2.3.1.30',
'cpmCPUThresholdTable' => '1.3.6.1.4.1.9.9.109.1.2.4',
'cpmCPUThresholdEntry' => '1.3.6.1.4.1.9.9.109.1.2.4.1',
'cpmCPUThresholdClass' => '1.3.6.1.4.1.9.9.109.1.2.4.1.1',
'cpmCPUThresholdClassDefinition' => 'CISCO-PROCESS-MIB::cpmCPUThresholdClass',
'cpmCPURisingThresholdValue' => '1.3.6.1.4.1.9.9.109.1.2.4.1.2',
'cpmCPURisingThresholdPeriod' => '1.3.6.1.4.1.9.9.109.1.2.4.1.3',
'cpmCPUFallingThresholdValue' => '1.3.6.1.4.1.9.9.109.1.2.4.1.4',
'cpmCPUFallingThresholdPeriod' => '1.3.6.1.4.1.9.9.109.1.2.4.1.5',
'cpmCPUThresholdEntryStatus' => '1.3.6.1.4.1.9.9.109.1.2.4.1.6',
'cpmCPUHistory' => '1.3.6.1.4.1.9.9.109.1.2.5',
'cpmCPUHistoryThreshold' => '1.3.6.1.4.1.9.9.109.1.2.5.1',
'cpmCPUHistorySize' => '1.3.6.1.4.1.9.9.109.1.2.5.2',
'cpmCPUHistoryTable' => '1.3.6.1.4.1.9.9.109.1.2.5.3',
'cpmCPUHistoryEntry' => '1.3.6.1.4.1.9.9.109.1.2.5.3.1',
'cpmCPUHistoryReportId' => '1.3.6.1.4.1.9.9.109.1.2.5.3.1.1',
'cpmCPUHistoryReportSize' => '1.3.6.1.4.1.9.9.109.1.2.5.3.1.2',
'cpmCPUHistoryTotalUtil' => '1.3.6.1.4.1.9.9.109.1.2.5.3.1.3',
'cpmCPUHistoryInterruptUtil' => '1.3.6.1.4.1.9.9.109.1.2.5.3.1.4',
'cpmCPUHistoryCreatedTime' => '1.3.6.1.4.1.9.9.109.1.2.5.3.1.5',
'cpmCPUProcessHistoryTable' => '1.3.6.1.4.1.9.9.109.1.2.5.4',
'cpmCPUProcessHistoryEntry' => '1.3.6.1.4.1.9.9.109.1.2.5.4.1',
'cpmCPUProcessHistoryIndex' => '1.3.6.1.4.1.9.9.109.1.2.5.4.1.1',
'cpmCPUHistoryProcId' => '1.3.6.1.4.1.9.9.109.1.2.5.4.1.2',
'cpmCPUHistoryProcName' => '1.3.6.1.4.1.9.9.109.1.2.5.4.1.3',
'cpmCPUHistoryProcCreated' => '1.3.6.1.4.1.9.9.109.1.2.5.4.1.4',
'cpmCPUHistoryProcUtil' => '1.3.6.1.4.1.9.9.109.1.2.5.4.1.5',
'cpmThread' => '1.3.6.1.4.1.9.9.109.1.3',
'cpmThreadTable' => '1.3.6.1.4.1.9.9.109.1.3.1',
'cpmThreadEntry' => '1.3.6.1.4.1.9.9.109.1.3.1.1',
'cpmThreadID' => '1.3.6.1.4.1.9.9.109.1.3.1.1.1',
'cpmThreadName' => '1.3.6.1.4.1.9.9.109.1.3.1.1.2',
'cpmThreadPriority' => '1.3.6.1.4.1.9.9.109.1.3.1.1.3',
'cpmThreadState' => '1.3.6.1.4.1.9.9.109.1.3.1.1.4',
'cpmThreadStateDefinition' => 'CISCO-PROCESS-MIB::cpmThreadState',
'cpmThreadBlockingProcess' => '1.3.6.1.4.1.9.9.109.1.3.1.1.5',
'cpmThreadCpuUtilization' => '1.3.6.1.4.1.9.9.109.1.3.1.1.6',
'cpmThreadStackSize' => '1.3.6.1.4.1.9.9.109.1.3.1.1.7',
'cpmThreadStackSizeOvrflw' => '1.3.6.1.4.1.9.9.109.1.3.1.1.8',
'cpmThreadHCStackSize' => '1.3.6.1.4.1.9.9.109.1.3.1.1.9',
'cpmVirtualProcess' => '1.3.6.1.4.1.9.9.109.1.4',
'cpmVirtualProcessTable' => '1.3.6.1.4.1.9.9.109.1.4.1',
'cpmVirtualProcessEntry' => '1.3.6.1.4.1.9.9.109.1.4.1.1',
'cpmVirtualProcessID' => '1.3.6.1.4.1.9.9.109.1.4.1.1.1',
'cpmVirtualProcessName' => '1.3.6.1.4.1.9.9.109.1.4.1.1.2',
'cpmVirtualProcessUtil5Sec' => '1.3.6.1.4.1.9.9.109.1.4.1.1.3',
'cpmVirtualProcessUtil1Min' => '1.3.6.1.4.1.9.9.109.1.4.1.1.4',
'cpmVirtualProcessUtil5Min' => '1.3.6.1.4.1.9.9.109.1.4.1.1.5',
'cpmVirtualProcessMemAllocated' => '1.3.6.1.4.1.9.9.109.1.4.1.1.6',
'cpmVirtualProcessMemFreed' => '1.3.6.1.4.1.9.9.109.1.4.1.1.7',
'cpmVirtualProcessInvokeCount' => '1.3.6.1.4.1.9.9.109.1.4.1.1.8',
'cpmVirtualProcessRuntime' => '1.3.6.1.4.1.9.9.109.1.4.1.1.9',
'cpmVirtualProcessMemAllocatedOvrflw' => '1.3.6.1.4.1.9.9.109.1.4.1.1.10',
'cpmVirtualProcessHCMemAllocated' => '1.3.6.1.4.1.9.9.109.1.4.1.1.11',
'cpmVirtualProcessMemFreedOvrflw' => '1.3.6.1.4.1.9.9.109.1.4.1.1.12',
'cpmVirtualProcessHCMemFreed' => '1.3.6.1.4.1.9.9.109.1.4.1.1.13',
'ciscoProcessMIBNotifPrefix' => '1.3.6.1.4.1.9.9.109.2',
'ciscoProcessMIBNotifs' => '1.3.6.1.4.1.9.9.109.2.0',
'ciscoProcessMIBConformance' => '1.3.6.1.4.1.9.9.109.3',
'cpmCompliances' => '1.3.6.1.4.1.9.9.109.3.1',
'cpmGroups' => '1.3.6.1.4.1.9.9.109.3.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'CISCO-PROCESS-MIB'} = {
'cpmThreadState' => {
'1' => 'other',
'2' => 'dead',
'3' => 'running',
'4' => 'ready',
'5' => 'stopped',
'6' => 'send',
'7' => 'receive',
'8' => 'reply',
'9' => 'stack',
'10' => 'waitpage',
'11' => 'sigsuspend',
'12' => 'sigwaitinfo',
'13' => 'nanosleep',
'14' => 'mutex',
'15' => 'condvar',
'16' => 'join',
'17' => 'intr',
'18' => 'sem',
},
'cpmProcExtPriority' => {
'1' => 'critical',
'2' => 'high',
'3' => 'normal',
'4' => 'low',
'5' => 'notAssigned',
},
'cpmProcExtPriorityRev' => {
'1' => 'critical',
'2' => 'high',
'3' => 'normal',
'4' => 'low',
'5' => 'notAssigned',
},
'cpmProcessType' => {
'1' => 'other',
'2' => 'posix',
'3' => 'ios',
},
'cpmProcessMemoryCore' => {
'1' => 'other',
'2' => 'mainmem',
'3' => 'mainmemSharedmem',
'4' => 'mainmemText',
'5' => 'mainmemTextSharedmem',
'6' => 'sharedmem',
'7' => 'sparse',
'8' => 'off',
},
'cpmCPUThresholdClass' => {
'1' => 'total',
'2' => 'interrupt',
'3' => 'process',
},
};

View file

@ -1,692 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::CISCORTTMONMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'CISCO-RTTMON-MIB'} = {
url => '',
name => 'CISCO-RTTMON-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'CISCO-RTTMON-MIB'} =
'1.3.6.1.4.1.9.9.42';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'CISCO-RTTMON-MIB'} = {
'ciscoRttMonMIB' => '1.3.6.1.4.1.9.9.42',
'ciscoRttMonObjects' => '1.3.6.1.4.1.9.9.42.1',
'rttMonAppl' => '1.3.6.1.4.1.9.9.42.1.1',
'rttMonApplVersion' => '1.3.6.1.4.1.9.9.42.1.1.1',
'rttMonApplMaxPacketDataSize' => '1.3.6.1.4.1.9.9.42.1.1.2',
'rttMonApplTimeOfLastSet' => '1.3.6.1.4.1.9.9.42.1.1.3',
'rttMonApplNumCtrlAdminEntry' => '1.3.6.1.4.1.9.9.42.1.1.4',
'rttMonApplReset' => '1.3.6.1.4.1.9.9.42.1.1.5',
'rttMonApplPreConfigedReset' => '1.3.6.1.4.1.9.9.42.1.1.6',
'rttMonApplSupportedRttTypesTable' => '1.3.6.1.4.1.9.9.42.1.1.7',
'rttMonApplSupportedRttTypesEntry' => '1.3.6.1.4.1.9.9.42.1.1.7.1',
'rttMonApplSupportedRttTypes' => '1.3.6.1.4.1.9.9.42.1.1.7.1.1',
'rttMonApplSupportedRttTypesValid' => '1.3.6.1.4.1.9.9.42.1.1.7.1.2',
'rttMonApplSupportedProtocolsTable' => '1.3.6.1.4.1.9.9.42.1.1.8',
'rttMonApplSupportedProtocolsEntry' => '1.3.6.1.4.1.9.9.42.1.1.8.1',
'rttMonApplSupportedProtocols' => '1.3.6.1.4.1.9.9.42.1.1.8.1.1',
'rttMonApplSupportedProtocolsValid' => '1.3.6.1.4.1.9.9.42.1.1.8.1.2',
'rttMonApplPreConfigedTable' => '1.3.6.1.4.1.9.9.42.1.1.9',
'rttMonApplPreConfigedEntry' => '1.3.6.1.4.1.9.9.42.1.1.9.1',
'rttMonApplPreConfigedType' => '1.3.6.1.4.1.9.9.42.1.1.9.1.2',
'rttMonApplPreConfigedTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonApplPreConfigedType',
'rttMonApplPreConfigedName' => '1.3.6.1.4.1.9.9.42.1.1.9.1.3',
'rttMonApplPreConfigedValid' => '1.3.6.1.4.1.9.9.42.1.1.9.1.4',
'rttMonApplProbeCapacity' => '1.3.6.1.4.1.9.9.42.1.1.10',
'rttMonApplFreeMemLowWaterMark' => '1.3.6.1.4.1.9.9.42.1.1.11',
'rttMonApplLatestSetError' => '1.3.6.1.4.1.9.9.42.1.1.12',
'rttMonApplResponder' => '1.3.6.1.4.1.9.9.42.1.1.13',
'rttMonApplAuthTable' => '1.3.6.1.4.1.9.9.42.1.1.14',
'rttMonApplAuthEntry' => '1.3.6.1.4.1.9.9.42.1.1.14.1',
'rttMonApplAuthIndex' => '1.3.6.1.4.1.9.9.42.1.1.14.1.1',
'rttMonApplAuthKeyChain' => '1.3.6.1.4.1.9.9.42.1.1.14.1.2',
'rttMonApplAuthKeyString1' => '1.3.6.1.4.1.9.9.42.1.1.14.1.3',
'rttMonApplAuthKeyString2' => '1.3.6.1.4.1.9.9.42.1.1.14.1.4',
'rttMonApplAuthKeyString3' => '1.3.6.1.4.1.9.9.42.1.1.14.1.5',
'rttMonApplAuthKeyString4' => '1.3.6.1.4.1.9.9.42.1.1.14.1.6',
'rttMonApplAuthKeyString5' => '1.3.6.1.4.1.9.9.42.1.1.14.1.7',
'rttMonApplAuthStatus' => '1.3.6.1.4.1.9.9.42.1.1.14.1.8',
'rttMonApplLpdGrpStatsReset' => '1.3.6.1.4.1.9.9.42.1.1.15',
'rttMonCtrl' => '1.3.6.1.4.1.9.9.42.1.2',
'rttMonCtrlAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.1',
'rttMonCtrlAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.1.1',
'rttMonCtrlAdminIndex' => '1.3.6.1.4.1.9.9.42.1.2.1.1.1',
'rttMonCtrlAdminOwner' => '1.3.6.1.4.1.9.9.42.1.2.1.1.2',
'rttMonCtrlAdminTag' => '1.3.6.1.4.1.9.9.42.1.2.1.1.3',
'rttMonCtrlAdminRttType' => '1.3.6.1.4.1.9.9.42.1.2.1.1.4',
'rttMonCtrlAdminRttTypeDefinition' => 'CISCO-RTTMON-TC-MIB::RttMonRttType',
'rttMonCtrlAdminThreshold' => '1.3.6.1.4.1.9.9.42.1.2.1.1.5',
'rttMonCtrlAdminFrequency' => '1.3.6.1.4.1.9.9.42.1.2.1.1.6',
'rttMonCtrlAdminTimeout' => '1.3.6.1.4.1.9.9.42.1.2.1.1.7',
'rttMonCtrlAdminVerifyData' => '1.3.6.1.4.1.9.9.42.1.2.1.1.8',
'rttMonCtrlAdminVerifyDataDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonCtrlAdminStatus' => '1.3.6.1.4.1.9.9.42.1.2.1.1.9',
'rttMonCtrlAdminStatusDefinition' => 'SNMPv2-TC-v1-MIB::RowStatus',
'rttMonCtrlAdminNvgen' => '1.3.6.1.4.1.9.9.42.1.2.1.1.10',
'rttMonCtrlAdminNvgenDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonCtrlAdminGroupName' => '1.3.6.1.4.1.9.9.42.1.2.1.1.11',
'rttMonCtrlAdminLongTag' => '1.3.6.1.4.1.9.9.42.1.2.1.1.12',
'rttMonEchoAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.2',
'rttMonEchoAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.2.1',
'rttMonEchoAdminProtocol' => '1.3.6.1.4.1.9.9.42.1.2.2.1.1',
'rttMonEchoAdminProtocolDefinition' => 'CISCO-RTTMON-TC-MIB::RttMonProtocol',
'rttMonEchoAdminTargetAddress' => '1.3.6.1.4.1.9.9.42.1.2.2.1.2',
'rttMonEchoAdminPktDataRequestSize' => '1.3.6.1.4.1.9.9.42.1.2.2.1.3',
'rttMonEchoAdminPktDataResponseSize' => '1.3.6.1.4.1.9.9.42.1.2.2.1.4',
'rttMonEchoAdminTargetPort' => '1.3.6.1.4.1.9.9.42.1.2.2.1.5',
'rttMonEchoAdminSourceAddress' => '1.3.6.1.4.1.9.9.42.1.2.2.1.6',
'rttMonEchoAdminSourcePort' => '1.3.6.1.4.1.9.9.42.1.2.2.1.7',
'rttMonEchoAdminControlEnable' => '1.3.6.1.4.1.9.9.42.1.2.2.1.8',
'rttMonEchoAdminControlEnableDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonEchoAdminTOS' => '1.3.6.1.4.1.9.9.42.1.2.2.1.9',
'rttMonEchoAdminLSREnable' => '1.3.6.1.4.1.9.9.42.1.2.2.1.10',
'rttMonEchoAdminTargetAddressString' => '1.3.6.1.4.1.9.9.42.1.2.2.1.11',
'rttMonEchoAdminNameServer' => '1.3.6.1.4.1.9.9.42.1.2.2.1.12',
'rttMonEchoAdminOperation' => '1.3.6.1.4.1.9.9.42.1.2.2.1.13',
'rttMonEchoAdminHTTPVersion' => '1.3.6.1.4.1.9.9.42.1.2.2.1.14',
'rttMonEchoAdminURL' => '1.3.6.1.4.1.9.9.42.1.2.2.1.15',
'rttMonEchoAdminCache' => '1.3.6.1.4.1.9.9.42.1.2.2.1.16',
'rttMonEchoAdminInterval' => '1.3.6.1.4.1.9.9.42.1.2.2.1.17',
'rttMonEchoAdminNumPackets' => '1.3.6.1.4.1.9.9.42.1.2.2.1.18',
'rttMonEchoAdminProxy' => '1.3.6.1.4.1.9.9.42.1.2.2.1.19',
'rttMonEchoAdminString1' => '1.3.6.1.4.1.9.9.42.1.2.2.1.20',
'rttMonEchoAdminString2' => '1.3.6.1.4.1.9.9.42.1.2.2.1.21',
'rttMonEchoAdminString3' => '1.3.6.1.4.1.9.9.42.1.2.2.1.22',
'rttMonEchoAdminString4' => '1.3.6.1.4.1.9.9.42.1.2.2.1.23',
'rttMonEchoAdminString5' => '1.3.6.1.4.1.9.9.42.1.2.2.1.24',
'rttMonEchoAdminMode' => '1.3.6.1.4.1.9.9.42.1.2.2.1.25',
'rttMonEchoAdminVrfName' => '1.3.6.1.4.1.9.9.42.1.2.2.1.26',
'rttMonEchoAdminCodecType' => '1.3.6.1.4.1.9.9.42.1.2.2.1.27',
'rttMonEchoAdminCodecTypeDefinition' => 'CISCO-RTTMON-TC-MIB::RttMonCodecType',
'rttMonEchoAdminCodecInterval' => '1.3.6.1.4.1.9.9.42.1.2.2.1.28',
'rttMonEchoAdminCodecPayload' => '1.3.6.1.4.1.9.9.42.1.2.2.1.29',
'rttMonEchoAdminCodecNumPackets' => '1.3.6.1.4.1.9.9.42.1.2.2.1.30',
'rttMonEchoAdminICPIFAdvFactor' => '1.3.6.1.4.1.9.9.42.1.2.2.1.31',
'rttMonEchoAdminLSPFECType' => '1.3.6.1.4.1.9.9.42.1.2.2.1.32',
'rttMonEchoAdminLSPFECTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonEchoAdminLSPFECType',
'rttMonEchoAdminLSPSelector' => '1.3.6.1.4.1.9.9.42.1.2.2.1.33',
'rttMonEchoAdminLSPReplyMode' => '1.3.6.1.4.1.9.9.42.1.2.2.1.34',
'rttMonEchoAdminLSPTTL' => '1.3.6.1.4.1.9.9.42.1.2.2.1.35',
'rttMonEchoAdminLSPExp' => '1.3.6.1.4.1.9.9.42.1.2.2.1.36',
'rttMonEchoAdminPrecision' => '1.3.6.1.4.1.9.9.42.1.2.2.1.37',
'rttMonEchoAdminPrecisionDefinition' => 'CISCO-RTTMON-MIB::rttMonEchoAdminPrecision',
'rttMonEchoAdminProbePakPriority' => '1.3.6.1.4.1.9.9.42.1.2.2.1.38',
'rttMonEchoAdminProbePakPriorityDefinition' => 'CISCO-RTTMON-MIB::rttMonEchoAdminProbePakPriority',
'rttMonEchoAdminOWNTPSyncTolAbs' => '1.3.6.1.4.1.9.9.42.1.2.2.1.39',
'rttMonEchoAdminOWNTPSyncTolPct' => '1.3.6.1.4.1.9.9.42.1.2.2.1.40',
'rttMonEchoAdminOWNTPSyncTolType' => '1.3.6.1.4.1.9.9.42.1.2.2.1.41',
'rttMonEchoAdminOWNTPSyncTolTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonEchoAdminOWNTPSyncTolType',
'rttMonEchoAdminCalledNumber' => '1.3.6.1.4.1.9.9.42.1.2.2.1.42',
'rttMonEchoAdminDetectPoint' => '1.3.6.1.4.1.9.9.42.1.2.2.1.43',
'rttMonEchoAdminGKRegistration' => '1.3.6.1.4.1.9.9.42.1.2.2.1.44',
'rttMonEchoAdminSourceVoicePort' => '1.3.6.1.4.1.9.9.42.1.2.2.1.45',
'rttMonEchoAdminCallDuration' => '1.3.6.1.4.1.9.9.42.1.2.2.1.46',
'rttMonEchoAdminLSPReplyDscp' => '1.3.6.1.4.1.9.9.42.1.2.2.1.47',
'rttMonEchoAdminLSPNullShim' => '1.3.6.1.4.1.9.9.42.1.2.2.1.48',
'rttMonEchoAdminTargetMPID' => '1.3.6.1.4.1.9.9.42.1.2.2.1.49',
'rttMonEchoAdminTargetDomainName' => '1.3.6.1.4.1.9.9.42.1.2.2.1.50',
'rttMonEchoAdminTargetVLAN' => '1.3.6.1.4.1.9.9.42.1.2.2.1.51',
'rttMonEchoAdminEthernetCOS' => '1.3.6.1.4.1.9.9.42.1.2.2.1.52',
'rttMonEchoAdminLSPVccvID' => '1.3.6.1.4.1.9.9.42.1.2.2.1.53',
'rttMonEchoAdminTargetEVC' => '1.3.6.1.4.1.9.9.42.1.2.2.1.54',
'rttMonEchoAdminTargetMEPPort' => '1.3.6.1.4.1.9.9.42.1.2.2.1.55',
'rttMonEchoAdminVideoTrafficProfile' => '1.3.6.1.4.1.9.9.42.1.2.2.1.56',
'rttMonEchoAdminDscp' => '1.3.6.1.4.1.9.9.42.1.2.2.1.57',
'rttMonEchoAdminReserveDsp' => '1.3.6.1.4.1.9.9.42.1.2.2.1.58',
'rttMonEchoAdminReserveDspDefinition' => 'CISCO-RTTMON-MIB::rttMonEchoAdminReserveDsp',
'rttMonEchoAdminInputInterface' => '1.3.6.1.4.1.9.9.42.1.2.2.1.59',
'rttMonEchoAdminEmulateSourceAddress' => '1.3.6.1.4.1.9.9.42.1.2.2.1.60',
'rttMonEchoAdminEmulateSourcePort' => '1.3.6.1.4.1.9.9.42.1.2.2.1.61',
'rttMonEchoAdminEmulateTargetAddress' => '1.3.6.1.4.1.9.9.42.1.2.2.1.62',
'rttMonEchoAdminEmulateTargetPort' => '1.3.6.1.4.1.9.9.42.1.2.2.1.63',
'rttMonEchoAdminTargetMacAddress' => '1.3.6.1.4.1.9.9.42.1.2.2.1.64',
'rttMonEchoAdminSourceMacAddress' => '1.3.6.1.4.1.9.9.42.1.2.2.1.65',
'rttMonEchoAdminSourceMPID' => '1.3.6.1.4.1.9.9.42.1.2.2.1.66',
'rttMonEchoAdminEndPointListName' => '1.3.6.1.4.1.9.9.42.1.2.2.1.67',
'rttMonEchoAdminSSM' => '1.3.6.1.4.1.9.9.42.1.2.2.1.68',
'rttMonEchoAdminControlRetry' => '1.3.6.1.4.1.9.9.42.1.2.2.1.69',
'rttMonEchoAdminControlTimeout' => '1.3.6.1.4.1.9.9.42.1.2.2.1.70',
'rttMonEchoAdminIgmpTreeInit' => '1.3.6.1.4.1.9.9.42.1.2.2.1.71',
'rttMonEchoAdminEnableBurst' => '1.3.6.1.4.1.9.9.42.1.2.2.1.72',
'rttMonEchoAdminAggBurstCycles' => '1.3.6.1.4.1.9.9.42.1.2.2.1.73',
'rttMonEchoAdminLossRatioNumFrames' => '1.3.6.1.4.1.9.9.42.1.2.2.1.74',
'rttMonEchoAdminAvailNumFrames' => '1.3.6.1.4.1.9.9.42.1.2.2.1.75',
'rttMonEchoAdminTstampOptimization' => '1.3.6.1.4.1.9.9.42.1.2.2.1.76',
'rttMonEchoAdminTargetSwitchId' => '1.3.6.1.4.1.9.9.42.1.2.2.1.77',
'rttMonEchoAdminProfileId' => '1.3.6.1.4.1.9.9.42.1.2.2.1.78',
'rttMonEchoAdminOutputInterface' => '1.3.6.1.4.1.9.9.42.1.2.2.1.79',
'rttMonFileIOAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.3',
'rttMonFileIOAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.3.1',
'rttMonFileIOAdminFilePath' => '1.3.6.1.4.1.9.9.42.1.2.3.1.1',
'rttMonFileIOAdminSize' => '1.3.6.1.4.1.9.9.42.1.2.3.1.2',
'rttMonFileIOAdminSizeDefinition' => 'CISCO-RTTMON-MIB::rttMonFileIOAdminSize',
'rttMonFileIOAdminAction' => '1.3.6.1.4.1.9.9.42.1.2.3.1.3',
'rttMonFileIOAdminActionDefinition' => 'CISCO-RTTMON-MIB::rttMonFileIOAdminAction',
'rttMonScriptAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.4',
'rttMonScriptAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.4.1',
'rttMonScriptAdminName' => '1.3.6.1.4.1.9.9.42.1.2.4.1.1',
'rttMonScriptAdminCmdLineParams' => '1.3.6.1.4.1.9.9.42.1.2.4.1.2',
'rttMonScheduleAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.5',
'rttMonScheduleAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.5.1',
'rttMonScheduleAdminRttLife' => '1.3.6.1.4.1.9.9.42.1.2.5.1.1',
'rttMonScheduleAdminRttStartTime' => '1.3.6.1.4.1.9.9.42.1.2.5.1.2',
'rttMonScheduleAdminConceptRowAgeout' => '1.3.6.1.4.1.9.9.42.1.2.5.1.3',
'rttMonScheduleAdminRttRecurring' => '1.3.6.1.4.1.9.9.42.1.2.5.1.4',
'rttMonScheduleAdminConceptRowAgeoutV2' => '1.3.6.1.4.1.9.9.42.1.2.5.1.5',
'rttMonScheduleAdminStartType' => '1.3.6.1.4.1.9.9.42.1.2.5.1.6',
'rttMonScheduleAdminStartDelay' => '1.3.6.1.4.1.9.9.42.1.2.5.1.7',
'rttMonReactAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.6',
'rttMonReactAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.6.1',
'rttMonReactAdminConnectionEnable' => '1.3.6.1.4.1.9.9.42.1.2.6.1.1',
'rttMonReactAdminTimeoutEnable' => '1.3.6.1.4.1.9.9.42.1.2.6.1.2',
'rttMonReactAdminThresholdType' => '1.3.6.1.4.1.9.9.42.1.2.6.1.3',
'rttMonReactAdminThresholdTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonReactAdminThresholdType',
'rttMonReactAdminThresholdFalling' => '1.3.6.1.4.1.9.9.42.1.2.6.1.4',
'rttMonReactAdminThresholdCount' => '1.3.6.1.4.1.9.9.42.1.2.6.1.5',
'rttMonReactAdminThresholdCount2' => '1.3.6.1.4.1.9.9.42.1.2.6.1.6',
'rttMonReactAdminActionType' => '1.3.6.1.4.1.9.9.42.1.2.6.1.7',
'rttMonReactAdminActionTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonReactAdminActionType',
'rttMonReactAdminVerifyErrorEnable' => '1.3.6.1.4.1.9.9.42.1.2.6.1.8',
'rttMonStatisticsAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.7',
'rttMonStatisticsAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.7.1',
'rttMonStatisticsAdminNumHourGroups' => '1.3.6.1.4.1.9.9.42.1.2.7.1.1',
'rttMonStatisticsAdminNumPaths' => '1.3.6.1.4.1.9.9.42.1.2.7.1.2',
'rttMonStatisticsAdminNumHops' => '1.3.6.1.4.1.9.9.42.1.2.7.1.3',
'rttMonStatisticsAdminNumDistBuckets' => '1.3.6.1.4.1.9.9.42.1.2.7.1.4',
'rttMonStatisticsAdminDistInterval' => '1.3.6.1.4.1.9.9.42.1.2.7.1.5',
'rttMonHistoryAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.8',
'rttMonHistoryAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.8.1',
'rttMonHistoryAdminNumLives' => '1.3.6.1.4.1.9.9.42.1.2.8.1.1',
'rttMonHistoryAdminNumBuckets' => '1.3.6.1.4.1.9.9.42.1.2.8.1.2',
'rttMonHistoryAdminNumSamples' => '1.3.6.1.4.1.9.9.42.1.2.8.1.3',
'rttMonHistoryAdminFilter' => '1.3.6.1.4.1.9.9.42.1.2.8.1.4',
'rttMonHistoryAdminFilterDefinition' => 'CISCO-RTTMON-MIB::rttMonHistoryAdminFilter',
'rttMonCtrlOperTable' => '1.3.6.1.4.1.9.9.42.1.2.9',
'rttMonCtrlOperEntry' => '1.3.6.1.4.1.9.9.42.1.2.9.1',
'rttMonCtrlOperModificationTime' => '1.3.6.1.4.1.9.9.42.1.2.9.1.1',
'rttMonCtrlOperDiagText' => '1.3.6.1.4.1.9.9.42.1.2.9.1.2',
'rttMonCtrlOperResetTime' => '1.3.6.1.4.1.9.9.42.1.2.9.1.3',
'rttMonCtrlOperOctetsInUse' => '1.3.6.1.4.1.9.9.42.1.2.9.1.4',
'rttMonCtrlOperConnectionLostOccurred' => '1.3.6.1.4.1.9.9.42.1.2.9.1.5',
'rttMonCtrlOperConnectionLostOccurredDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonCtrlOperTimeoutOccurred' => '1.3.6.1.4.1.9.9.42.1.2.9.1.6',
'rttMonCtrlOperTimeoutOccurredDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonCtrlOperOverThresholdOccurred' => '1.3.6.1.4.1.9.9.42.1.2.9.1.7',
'rttMonCtrlOperOverThresholdOccurredDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonCtrlOperNumRtts' => '1.3.6.1.4.1.9.9.42.1.2.9.1.8',
'rttMonCtrlOperRttLife' => '1.3.6.1.4.1.9.9.42.1.2.9.1.9',
'rttMonCtrlOperState' => '1.3.6.1.4.1.9.9.42.1.2.9.1.10',
'rttMonCtrlOperStateDefinition' => 'CISCO-RTTMON-MIB::rttMonCtrlOperState',
'rttMonCtrlOperVerifyErrorOccurred' => '1.3.6.1.4.1.9.9.42.1.2.9.1.11',
'rttMonCtrlOperVerifyErrorOccurredDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'rttMonLatestRttOperTable' => '1.3.6.1.4.1.9.9.42.1.2.10',
'rttMonLatestRttOperEntry' => '1.3.6.1.4.1.9.9.42.1.2.10.1',
'rttMonLatestRttOperCompletionTime' => '1.3.6.1.4.1.9.9.42.1.2.10.1.1',
'rttMonLatestRttOperSense' => '1.3.6.1.4.1.9.9.42.1.2.10.1.2',
'rttMonLatestRttOperSenseDefinition' => 'CISCO-RTTMON-TC-MIB::RttResponseSense',
'rttMonLatestRttOperApplSpecificSense' => '1.3.6.1.4.1.9.9.42.1.2.10.1.3',
'rttMonLatestRttOperSenseDescription' => '1.3.6.1.4.1.9.9.42.1.2.10.1.4',
'rttMonLatestRttOperTime' => '1.3.6.1.4.1.9.9.42.1.2.10.1.5',
'rttMonLatestRttOperAddress' => '1.3.6.1.4.1.9.9.42.1.2.10.1.6',
'rttMonReactTriggerAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.11',
'rttMonReactTriggerAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.11.1',
'rttMonReactTriggerAdminRttMonCtrlAdminIndex' => '1.3.6.1.4.1.9.9.42.1.2.11.1.1',
'rttMonReactTriggerAdminStatus' => '1.3.6.1.4.1.9.9.42.1.2.11.1.2',
'rttMonReactTriggerOperTable' => '1.3.6.1.4.1.9.9.42.1.2.12',
'rttMonReactTriggerOperEntry' => '1.3.6.1.4.1.9.9.42.1.2.12.1',
'rttMonReactTriggerOperState' => '1.3.6.1.4.1.9.9.42.1.2.12.1.1',
'rttMonReactTriggerOperStateDefinition' => 'CISCO-RTTMON-MIB::rttMonReactTriggerOperState',
'rttMonEchoPathAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.13',
'rttMonEchoPathAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.13.1',
'rttMonEchoPathAdminHopIndex' => '1.3.6.1.4.1.9.9.42.1.2.13.1.1',
'rttMonEchoPathAdminHopAddress' => '1.3.6.1.4.1.9.9.42.1.2.13.1.2',
'rttMonGrpScheduleAdminTable' => '1.3.6.1.4.1.9.9.42.1.2.14',
'rttMonGrpScheduleAdminEntry' => '1.3.6.1.4.1.9.9.42.1.2.14.1',
'rttMonGrpScheduleAdminIndex' => '1.3.6.1.4.1.9.9.42.1.2.14.1.1',
'rttMonGrpScheduleAdminProbes' => '1.3.6.1.4.1.9.9.42.1.2.14.1.2',
'rttMonGrpScheduleAdminPeriod' => '1.3.6.1.4.1.9.9.42.1.2.14.1.3',
'rttMonGrpScheduleAdminFrequency' => '1.3.6.1.4.1.9.9.42.1.2.14.1.4',
'rttMonGrpScheduleAdminLife' => '1.3.6.1.4.1.9.9.42.1.2.14.1.5',
'rttMonGrpScheduleAdminAgeout' => '1.3.6.1.4.1.9.9.42.1.2.14.1.6',
'rttMonGrpScheduleAdminStatus' => '1.3.6.1.4.1.9.9.42.1.2.14.1.7',
'rttMonGrpScheduleAdminFreqMax' => '1.3.6.1.4.1.9.9.42.1.2.14.1.8',
'rttMonGrpScheduleAdminFreqMin' => '1.3.6.1.4.1.9.9.42.1.2.14.1.9',
'rttMonGrpScheduleAdminStartTime' => '1.3.6.1.4.1.9.9.42.1.2.14.1.10',
'rttMonGrpScheduleAdminAdd' => '1.3.6.1.4.1.9.9.42.1.2.14.1.11',
'rttMonGrpScheduleAdminDelete' => '1.3.6.1.4.1.9.9.42.1.2.14.1.12',
'rttMonGrpScheduleAdminReset' => '1.3.6.1.4.1.9.9.42.1.2.14.1.13',
'rttMonGrpScheduleAdminStartType' => '1.3.6.1.4.1.9.9.42.1.2.14.1.14',
'rttMonGrpScheduleAdminStartDelay' => '1.3.6.1.4.1.9.9.42.1.2.14.1.15',
'rttMplsVpnMonCtrlTable' => '1.3.6.1.4.1.9.9.42.1.2.15',
'rttMplsVpnMonCtrlEntry' => '1.3.6.1.4.1.9.9.42.1.2.15.1',
'rttMplsVpnMonCtrlIndex' => '1.3.6.1.4.1.9.9.42.1.2.15.1.1',
'rttMplsVpnMonCtrlRttType' => '1.3.6.1.4.1.9.9.42.1.2.15.1.2',
'rttMplsVpnMonCtrlVrfName' => '1.3.6.1.4.1.9.9.42.1.2.15.1.3',
'rttMplsVpnMonCtrlTag' => '1.3.6.1.4.1.9.9.42.1.2.15.1.4',
'rttMplsVpnMonCtrlThreshold' => '1.3.6.1.4.1.9.9.42.1.2.15.1.5',
'rttMplsVpnMonCtrlTimeout' => '1.3.6.1.4.1.9.9.42.1.2.15.1.6',
'rttMplsVpnMonCtrlScanInterval' => '1.3.6.1.4.1.9.9.42.1.2.15.1.7',
'rttMplsVpnMonCtrlDelScanFactor' => '1.3.6.1.4.1.9.9.42.1.2.15.1.8',
'rttMplsVpnMonCtrlEXP' => '1.3.6.1.4.1.9.9.42.1.2.15.1.9',
'rttMplsVpnMonCtrlRequestSize' => '1.3.6.1.4.1.9.9.42.1.2.15.1.10',
'rttMplsVpnMonCtrlVerifyData' => '1.3.6.1.4.1.9.9.42.1.2.15.1.11',
'rttMplsVpnMonCtrlStorageType' => '1.3.6.1.4.1.9.9.42.1.2.15.1.12',
'rttMplsVpnMonCtrlProbeList' => '1.3.6.1.4.1.9.9.42.1.2.15.1.13',
'rttMplsVpnMonCtrlStatus' => '1.3.6.1.4.1.9.9.42.1.2.15.1.14',
'rttMplsVpnMonCtrlLpd' => '1.3.6.1.4.1.9.9.42.1.2.15.1.15',
'rttMplsVpnMonCtrlLpdGrpList' => '1.3.6.1.4.1.9.9.42.1.2.15.1.16',
'rttMplsVpnMonCtrlLpdCompTime' => '1.3.6.1.4.1.9.9.42.1.2.15.1.17',
'rttMplsVpnMonTypeTable' => '1.3.6.1.4.1.9.9.42.1.2.16',
'rttMplsVpnMonTypeEntry' => '1.3.6.1.4.1.9.9.42.1.2.16.1',
'rttMplsVpnMonTypeInterval' => '1.3.6.1.4.1.9.9.42.1.2.16.1.1',
'rttMplsVpnMonTypeNumPackets' => '1.3.6.1.4.1.9.9.42.1.2.16.1.2',
'rttMplsVpnMonTypeDestPort' => '1.3.6.1.4.1.9.9.42.1.2.16.1.3',
'rttMplsVpnMonTypeSecFreqType' => '1.3.6.1.4.1.9.9.42.1.2.16.1.4',
'rttMplsVpnMonTypeSecFreqTypeDefinition' => 'CISCO-RTTMON-MIB::rttMplsVpnMonTypeSecFreqType',
'rttMplsVpnMonTypeSecFreqValue' => '1.3.6.1.4.1.9.9.42.1.2.16.1.5',
'rttMplsVpnMonTypeLspSelector' => '1.3.6.1.4.1.9.9.42.1.2.16.1.6',
'rttMplsVpnMonTypeLSPReplyMode' => '1.3.6.1.4.1.9.9.42.1.2.16.1.7',
'rttMplsVpnMonTypeLSPTTL' => '1.3.6.1.4.1.9.9.42.1.2.16.1.8',
'rttMplsVpnMonTypeLSPReplyDscp' => '1.3.6.1.4.1.9.9.42.1.2.16.1.9',
'rttMplsVpnMonTypeLpdMaxSessions' => '1.3.6.1.4.1.9.9.42.1.2.16.1.10',
'rttMplsVpnMonTypeLpdSessTimeout' => '1.3.6.1.4.1.9.9.42.1.2.16.1.11',
'rttMplsVpnMonTypeLpdEchoTimeout' => '1.3.6.1.4.1.9.9.42.1.2.16.1.12',
'rttMplsVpnMonTypeLpdEchoInterval' => '1.3.6.1.4.1.9.9.42.1.2.16.1.13',
'rttMplsVpnMonTypeLpdEchoNullShim' => '1.3.6.1.4.1.9.9.42.1.2.16.1.14',
'rttMplsVpnMonTypeLpdScanPeriod' => '1.3.6.1.4.1.9.9.42.1.2.16.1.15',
'rttMplsVpnMonTypeLpdStatHours' => '1.3.6.1.4.1.9.9.42.1.2.16.1.16',
'rttMplsVpnMonScheduleTable' => '1.3.6.1.4.1.9.9.42.1.2.17',
'rttMplsVpnMonScheduleEntry' => '1.3.6.1.4.1.9.9.42.1.2.17.1',
'rttMplsVpnMonScheduleRttStartTime' => '1.3.6.1.4.1.9.9.42.1.2.17.1.1',
'rttMplsVpnMonSchedulePeriod' => '1.3.6.1.4.1.9.9.42.1.2.17.1.2',
'rttMplsVpnMonScheduleFrequency' => '1.3.6.1.4.1.9.9.42.1.2.17.1.3',
'rttMplsVpnMonReactTable' => '1.3.6.1.4.1.9.9.42.1.2.18',
'rttMplsVpnMonReactEntry' => '1.3.6.1.4.1.9.9.42.1.2.18.1',
'rttMplsVpnMonReactConnectionEnable' => '1.3.6.1.4.1.9.9.42.1.2.18.1.1',
'rttMplsVpnMonReactTimeoutEnable' => '1.3.6.1.4.1.9.9.42.1.2.18.1.2',
'rttMplsVpnMonReactThresholdType' => '1.3.6.1.4.1.9.9.42.1.2.18.1.3',
'rttMplsVpnMonReactThresholdTypeDefinition' => 'CISCO-RTTMON-MIB::rttMplsVpnMonReactThresholdType',
'rttMplsVpnMonReactThresholdCount' => '1.3.6.1.4.1.9.9.42.1.2.18.1.4',
'rttMplsVpnMonReactActionType' => '1.3.6.1.4.1.9.9.42.1.2.18.1.5',
'rttMplsVpnMonReactActionTypeDefinition' => 'CISCO-RTTMON-MIB::rttMplsVpnMonReactActionType',
'rttMplsVpnMonReactLpdNotifyType' => '1.3.6.1.4.1.9.9.42.1.2.18.1.6',
'rttMplsVpnMonReactLpdNotifyTypeDefinition' => 'CISCO-RTTMON-MIB::rttMplsVpnMonReactLpdNotifyType',
'rttMplsVpnMonReactLpdRetryCount' => '1.3.6.1.4.1.9.9.42.1.2.18.1.7',
'rttMonReactTable' => '1.3.6.1.4.1.9.9.42.1.2.19',
'rttMonReactEntry' => '1.3.6.1.4.1.9.9.42.1.2.19.1',
'rttMonReactConfigIndex' => '1.3.6.1.4.1.9.9.42.1.2.19.1.1',
'rttMonReactVar' => '1.3.6.1.4.1.9.9.42.1.2.19.1.2',
'rttMonReactThresholdType' => '1.3.6.1.4.1.9.9.42.1.2.19.1.3',
'rttMonReactThresholdTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonReactThresholdType',
'rttMonReactActionType' => '1.3.6.1.4.1.9.9.42.1.2.19.1.4',
'rttMonReactActionTypeDefinition' => 'CISCO-RTTMON-MIB::rttMonReactActionType',
'rttMonReactThresholdRising' => '1.3.6.1.4.1.9.9.42.1.2.19.1.5',
'rttMonReactThresholdFalling' => '1.3.6.1.4.1.9.9.42.1.2.19.1.6',
'rttMonReactThresholdCountX' => '1.3.6.1.4.1.9.9.42.1.2.19.1.7',
'rttMonReactThresholdCountY' => '1.3.6.1.4.1.9.9.42.1.2.19.1.8',
'rttMonReactValue' => '1.3.6.1.4.1.9.9.42.1.2.19.1.9',
'rttMonReactOccurred' => '1.3.6.1.4.1.9.9.42.1.2.19.1.10',
'rttMonReactStatus' => '1.3.6.1.4.1.9.9.42.1.2.19.1.11',
'rttMonGeneratedOperTable' => '1.3.6.1.4.1.9.9.42.1.2.20',
'rttMonGeneratedOperEntry' => '1.3.6.1.4.1.9.9.42.1.2.20.1',
'rttMonGeneratedOperRespIpAddrType' => '1.3.6.1.4.1.9.9.42.1.2.20.1.1',
'rttMonGeneratedOperRespIpAddr' => '1.3.6.1.4.1.9.9.42.1.2.20.1.2',
'rttMonGeneratedOperCtrlAdminIndex' => '1.3.6.1.4.1.9.9.42.1.2.20.1.3',
'rttMonStats' => '1.3.6.1.4.1.9.9.42.1.3',
'rttMonStatsCaptureTable' => '1.3.6.1.4.1.9.9.42.1.3.1',
'rttMonStatsCaptureEntry' => '1.3.6.1.4.1.9.9.42.1.3.1.1',
'rttMonStatsCaptureStartTimeIndex' => '1.3.6.1.4.1.9.9.42.1.3.1.1.1',
'rttMonStatsCapturePathIndex' => '1.3.6.1.4.1.9.9.42.1.3.1.1.2',
'rttMonStatsCaptureHopIndex' => '1.3.6.1.4.1.9.9.42.1.3.1.1.3',
'rttMonStatsCaptureDistIndex' => '1.3.6.1.4.1.9.9.42.1.3.1.1.4',
'rttMonStatsCaptureCompletions' => '1.3.6.1.4.1.9.9.42.1.3.1.1.5',
'rttMonStatsCaptureOverThresholds' => '1.3.6.1.4.1.9.9.42.1.3.1.1.6',
'rttMonStatsCaptureSumCompletionTime' => '1.3.6.1.4.1.9.9.42.1.3.1.1.7',
'rttMonStatsCaptureSumCompletionTime2Low' => '1.3.6.1.4.1.9.9.42.1.3.1.1.8',
'rttMonStatsCaptureSumCompletionTime2High' => '1.3.6.1.4.1.9.9.42.1.3.1.1.9',
'rttMonStatsCaptureCompletionTimeMax' => '1.3.6.1.4.1.9.9.42.1.3.1.1.10',
'rttMonStatsCaptureCompletionTimeMin' => '1.3.6.1.4.1.9.9.42.1.3.1.1.11',
'rttMonStatsCollectTable' => '1.3.6.1.4.1.9.9.42.1.3.2',
'rttMonStatsCollectEntry' => '1.3.6.1.4.1.9.9.42.1.3.2.1',
'rttMonStatsCollectNumDisconnects' => '1.3.6.1.4.1.9.9.42.1.3.2.1.1',
'rttMonStatsCollectTimeouts' => '1.3.6.1.4.1.9.9.42.1.3.2.1.2',
'rttMonStatsCollectBusies' => '1.3.6.1.4.1.9.9.42.1.3.2.1.3',
'rttMonStatsCollectNoConnections' => '1.3.6.1.4.1.9.9.42.1.3.2.1.4',
'rttMonStatsCollectDrops' => '1.3.6.1.4.1.9.9.42.1.3.2.1.5',
'rttMonStatsCollectSequenceErrors' => '1.3.6.1.4.1.9.9.42.1.3.2.1.6',
'rttMonStatsCollectVerifyErrors' => '1.3.6.1.4.1.9.9.42.1.3.2.1.7',
'rttMonStatsCollectAddress' => '1.3.6.1.4.1.9.9.42.1.3.2.1.8',
'rttMonControlEnableErrors' => '1.3.6.1.4.1.9.9.42.1.3.2.1.9',
'rttMonStatsRetrieveErrors' => '1.3.6.1.4.1.9.9.42.1.3.2.1.10',
'rttMonStatsCollectCtrlEnErrors' => '1.3.6.1.4.1.9.9.42.1.3.2.1.11',
'rttMonStatsCollectRetrieveErrors' => '1.3.6.1.4.1.9.9.42.1.3.2.1.12',
'rttMonStatsTotalsTable' => '1.3.6.1.4.1.9.9.42.1.3.3',
'rttMonStatsTotalsEntry' => '1.3.6.1.4.1.9.9.42.1.3.3.1',
'rttMonStatsTotalsElapsedTime' => '1.3.6.1.4.1.9.9.42.1.3.3.1.1',
'rttMonStatsTotalsInitiations' => '1.3.6.1.4.1.9.9.42.1.3.3.1.2',
'rttMonHTTPStatsTable' => '1.3.6.1.4.1.9.9.42.1.3.4',
'rttMonHTTPStatsEntry' => '1.3.6.1.4.1.9.9.42.1.3.4.1',
'rttMonHTTPStatsStartTimeIndex' => '1.3.6.1.4.1.9.9.42.1.3.4.1.1',
'rttMonHTTPStatsCompletions' => '1.3.6.1.4.1.9.9.42.1.3.4.1.2',
'rttMonHTTPStatsOverThresholds' => '1.3.6.1.4.1.9.9.42.1.3.4.1.3',
'rttMonHTTPStatsRTTSum' => '1.3.6.1.4.1.9.9.42.1.3.4.1.4',
'rttMonHTTPStatsRTTSum2Low' => '1.3.6.1.4.1.9.9.42.1.3.4.1.5',
'rttMonHTTPStatsRTTSum2High' => '1.3.6.1.4.1.9.9.42.1.3.4.1.6',
'rttMonHTTPStatsRTTMin' => '1.3.6.1.4.1.9.9.42.1.3.4.1.7',
'rttMonHTTPStatsRTTMax' => '1.3.6.1.4.1.9.9.42.1.3.4.1.8',
'rttMonHTTPStatsDNSRTTSum' => '1.3.6.1.4.1.9.9.42.1.3.4.1.9',
'rttMonHTTPStatsTCPConnectRTTSum' => '1.3.6.1.4.1.9.9.42.1.3.4.1.10',
'rttMonHTTPStatsTransactionRTTSum' => '1.3.6.1.4.1.9.9.42.1.3.4.1.11',
'rttMonHTTPStatsMessageBodyOctetsSum' => '1.3.6.1.4.1.9.9.42.1.3.4.1.12',
'rttMonHTTPStatsDNSServerTimeout' => '1.3.6.1.4.1.9.9.42.1.3.4.1.13',
'rttMonHTTPStatsTCPConnectTimeout' => '1.3.6.1.4.1.9.9.42.1.3.4.1.14',
'rttMonHTTPStatsTransactionTimeout' => '1.3.6.1.4.1.9.9.42.1.3.4.1.15',
'rttMonHTTPStatsDNSQueryError' => '1.3.6.1.4.1.9.9.42.1.3.4.1.16',
'rttMonHTTPStatsHTTPError' => '1.3.6.1.4.1.9.9.42.1.3.4.1.17',
'rttMonHTTPStatsError' => '1.3.6.1.4.1.9.9.42.1.3.4.1.18',
'rttMonHTTPStatsBusies' => '1.3.6.1.4.1.9.9.42.1.3.4.1.19',
'rttMonJitterStatsTable' => '1.3.6.1.4.1.9.9.42.1.3.5',
'rttMonJitterStatsEntry' => '1.3.6.1.4.1.9.9.42.1.3.5.1',
'rttMonJitterStatsStartTimeIndex' => '1.3.6.1.4.1.9.9.42.1.3.5.1.1',
'rttMonJitterStatsCompletions' => '1.3.6.1.4.1.9.9.42.1.3.5.1.2',
'rttMonJitterStatsOverThresholds' => '1.3.6.1.4.1.9.9.42.1.3.5.1.3',
'rttMonJitterStatsNumOfRTT' => '1.3.6.1.4.1.9.9.42.1.3.5.1.4',
'rttMonJitterStatsRTTSum' => '1.3.6.1.4.1.9.9.42.1.3.5.1.5',
'rttMonJitterStatsRTTSum2Low' => '1.3.6.1.4.1.9.9.42.1.3.5.1.6',
'rttMonJitterStatsRTTSum2High' => '1.3.6.1.4.1.9.9.42.1.3.5.1.7',
'rttMonJitterStatsRTTMin' => '1.3.6.1.4.1.9.9.42.1.3.5.1.8',
'rttMonJitterStatsRTTMax' => '1.3.6.1.4.1.9.9.42.1.3.5.1.9',
'rttMonJitterStatsMinOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.10',
'rttMonJitterStatsMaxOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.11',
'rttMonJitterStatsNumOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.12',
'rttMonJitterStatsSumOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.13',
'rttMonJitterStatsSum2PositivesSDLow' => '1.3.6.1.4.1.9.9.42.1.3.5.1.14',
'rttMonJitterStatsSum2PositivesSDHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.15',
'rttMonJitterStatsMinOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.16',
'rttMonJitterStatsMaxOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.17',
'rttMonJitterStatsNumOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.18',
'rttMonJitterStatsSumOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.19',
'rttMonJitterStatsSum2NegativesSDLow' => '1.3.6.1.4.1.9.9.42.1.3.5.1.20',
'rttMonJitterStatsSum2NegativesSDHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.21',
'rttMonJitterStatsMinOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.22',
'rttMonJitterStatsMaxOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.23',
'rttMonJitterStatsNumOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.24',
'rttMonJitterStatsSumOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.25',
'rttMonJitterStatsSum2PositivesDSLow' => '1.3.6.1.4.1.9.9.42.1.3.5.1.26',
'rttMonJitterStatsSum2PositivesDSHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.27',
'rttMonJitterStatsMinOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.28',
'rttMonJitterStatsMaxOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.29',
'rttMonJitterStatsNumOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.30',
'rttMonJitterStatsSumOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.31',
'rttMonJitterStatsSum2NegativesDSLow' => '1.3.6.1.4.1.9.9.42.1.3.5.1.32',
'rttMonJitterStatsSum2NegativesDSHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.33',
'rttMonJitterStatsPacketLossSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.34',
'rttMonJitterStatsPacketLossDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.35',
'rttMonJitterStatsPacketOutOfSequence' => '1.3.6.1.4.1.9.9.42.1.3.5.1.36',
'rttMonJitterStatsPacketMIA' => '1.3.6.1.4.1.9.9.42.1.3.5.1.37',
'rttMonJitterStatsPacketLateArrival' => '1.3.6.1.4.1.9.9.42.1.3.5.1.38',
'rttMonJitterStatsError' => '1.3.6.1.4.1.9.9.42.1.3.5.1.39',
'rttMonJitterStatsBusies' => '1.3.6.1.4.1.9.9.42.1.3.5.1.40',
'rttMonJitterStatsOWSumSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.41',
'rttMonJitterStatsOWSum2SDLow' => '1.3.6.1.4.1.9.9.42.1.3.5.1.42',
'rttMonJitterStatsOWSum2SDHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.43',
'rttMonJitterStatsOWMinSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.44',
'rttMonJitterStatsOWMaxSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.45',
'rttMonJitterStatsOWSumDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.46',
'rttMonJitterStatsOWSum2DSLow' => '1.3.6.1.4.1.9.9.42.1.3.5.1.47',
'rttMonJitterStatsOWSum2DSHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.48',
'rttMonJitterStatsOWMinDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.49',
'rttMonJitterStatsOWMaxDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.50',
'rttMonJitterStatsNumOfOW' => '1.3.6.1.4.1.9.9.42.1.3.5.1.51',
'rttMonJitterStatsOWMinSDNew' => '1.3.6.1.4.1.9.9.42.1.3.5.1.52',
'rttMonJitterStatsOWMaxSDNew' => '1.3.6.1.4.1.9.9.42.1.3.5.1.53',
'rttMonJitterStatsOWMinDSNew' => '1.3.6.1.4.1.9.9.42.1.3.5.1.54',
'rttMonJitterStatsOWMaxDSNew' => '1.3.6.1.4.1.9.9.42.1.3.5.1.55',
'rttMonJitterStatsMinOfMOS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.56',
'rttMonJitterStatsMaxOfMOS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.57',
'rttMonJitterStatsMinOfICPIF' => '1.3.6.1.4.1.9.9.42.1.3.5.1.58',
'rttMonJitterStatsMaxOfICPIF' => '1.3.6.1.4.1.9.9.42.1.3.5.1.59',
'rttMonJitterStatsIAJOut' => '1.3.6.1.4.1.9.9.42.1.3.5.1.60',
'rttMonJitterStatsIAJIn' => '1.3.6.1.4.1.9.9.42.1.3.5.1.61',
'rttMonJitterStatsAvgJitter' => '1.3.6.1.4.1.9.9.42.1.3.5.1.62',
'rttMonJitterStatsAvgJitterSD' => '1.3.6.1.4.1.9.9.42.1.3.5.1.63',
'rttMonJitterStatsAvgJitterDS' => '1.3.6.1.4.1.9.9.42.1.3.5.1.64',
'rttMonJitterStatsUnSyncRTs' => '1.3.6.1.4.1.9.9.42.1.3.5.1.65',
'rttMonJitterStatsRTTSumHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.66',
'rttMonJitterStatsOWSumSDHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.67',
'rttMonJitterStatsOWSumDSHigh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.68',
'rttMonJitterStatsNumOverThresh' => '1.3.6.1.4.1.9.9.42.1.3.5.1.69',
'rttMonLpdGrpStatsTable' => '1.3.6.1.4.1.9.9.42.1.3.7',
'rttMonLpdGrpStatsEntry' => '1.3.6.1.4.1.9.9.42.1.3.7.1',
'rttMonLpdGrpStatsGroupIndex' => '1.3.6.1.4.1.9.9.42.1.3.7.1.1',
'rttMonLpdGrpStatsStartTimeIndex' => '1.3.6.1.4.1.9.9.42.1.3.7.1.2',
'rttMonLpdGrpStatsTargetPE' => '1.3.6.1.4.1.9.9.42.1.3.7.1.3',
'rttMonLpdGrpStatsNumOfPass' => '1.3.6.1.4.1.9.9.42.1.3.7.1.4',
'rttMonLpdGrpStatsNumOfFail' => '1.3.6.1.4.1.9.9.42.1.3.7.1.5',
'rttMonLpdGrpStatsNumOfTimeout' => '1.3.6.1.4.1.9.9.42.1.3.7.1.6',
'rttMonLpdGrpStatsAvgRTT' => '1.3.6.1.4.1.9.9.42.1.3.7.1.7',
'rttMonLpdGrpStatsMinRTT' => '1.3.6.1.4.1.9.9.42.1.3.7.1.8',
'rttMonLpdGrpStatsMaxRTT' => '1.3.6.1.4.1.9.9.42.1.3.7.1.9',
'rttMonLpdGrpStatsMinNumPaths' => '1.3.6.1.4.1.9.9.42.1.3.7.1.10',
'rttMonLpdGrpStatsMaxNumPaths' => '1.3.6.1.4.1.9.9.42.1.3.7.1.11',
'rttMonLpdGrpStatsLPDStartTime' => '1.3.6.1.4.1.9.9.42.1.3.7.1.12',
'rttMonLpdGrpStatsLPDFailOccurred' => '1.3.6.1.4.1.9.9.42.1.3.7.1.13',
'rttMonLpdGrpStatsLPDFailCause' => '1.3.6.1.4.1.9.9.42.1.3.7.1.14',
'rttMonLpdGrpStatsLPDCompTime' => '1.3.6.1.4.1.9.9.42.1.3.7.1.15',
'rttMonLpdGrpStatsGroupStatus' => '1.3.6.1.4.1.9.9.42.1.3.7.1.16',
'rttMonLpdGrpStatsGroupProbeIndex' => '1.3.6.1.4.1.9.9.42.1.3.7.1.17',
'rttMonLpdGrpStatsPathIds' => '1.3.6.1.4.1.9.9.42.1.3.7.1.18',
'rttMonLpdGrpStatsProbeStatus' => '1.3.6.1.4.1.9.9.42.1.3.7.1.19',
'rttMonLpdGrpStatsResetTime' => '1.3.6.1.4.1.9.9.42.1.3.7.1.20',
'rttMonHistory' => '1.3.6.1.4.1.9.9.42.1.4',
'rttMonHistoryCollectionTable' => '1.3.6.1.4.1.9.9.42.1.4.1',
'rttMonHistoryCollectionEntry' => '1.3.6.1.4.1.9.9.42.1.4.1.1',
'rttMonHistoryCollectionLifeIndex' => '1.3.6.1.4.1.9.9.42.1.4.1.1.1',
'rttMonHistoryCollectionBucketIndex' => '1.3.6.1.4.1.9.9.42.1.4.1.1.2',
'rttMonHistoryCollectionSampleIndex' => '1.3.6.1.4.1.9.9.42.1.4.1.1.3',
'rttMonHistoryCollectionSampleTime' => '1.3.6.1.4.1.9.9.42.1.4.1.1.4',
'rttMonHistoryCollectionAddress' => '1.3.6.1.4.1.9.9.42.1.4.1.1.5',
'rttMonHistoryCollectionCompletionTime' => '1.3.6.1.4.1.9.9.42.1.4.1.1.6',
'rttMonHistoryCollectionSense' => '1.3.6.1.4.1.9.9.42.1.4.1.1.7',
'rttMonHistoryCollectionApplSpecificSense' => '1.3.6.1.4.1.9.9.42.1.4.1.1.8',
'rttMonHistoryCollectionSenseDescription' => '1.3.6.1.4.1.9.9.42.1.4.1.1.9',
'rttMonLatestOper' => '1.3.6.1.4.1.9.9.42.1.5',
'rttMonLatestHTTPOperTable' => '1.3.6.1.4.1.9.9.42.1.5.1',
'rttMonLatestHTTPOperEntry' => '1.3.6.1.4.1.9.9.42.1.5.1.1',
'rttMonLatestHTTPOperRTT' => '1.3.6.1.4.1.9.9.42.1.5.1.1.1',
'rttMonLatestHTTPOperDNSRTT' => '1.3.6.1.4.1.9.9.42.1.5.1.1.2',
'rttMonLatestHTTPOperTCPConnectRTT' => '1.3.6.1.4.1.9.9.42.1.5.1.1.3',
'rttMonLatestHTTPOperTransactionRTT' => '1.3.6.1.4.1.9.9.42.1.5.1.1.4',
'rttMonLatestHTTPOperMessageBodyOctets' => '1.3.6.1.4.1.9.9.42.1.5.1.1.5',
'rttMonLatestHTTPOperSense' => '1.3.6.1.4.1.9.9.42.1.5.1.1.6',
'rttMonLatestHTTPErrorSenseDescription' => '1.3.6.1.4.1.9.9.42.1.5.1.1.7',
'rttMonLatestJitterOperTable' => '1.3.6.1.4.1.9.9.42.1.5.2',
'rttMonLatestJitterOperEntry' => '1.3.6.1.4.1.9.9.42.1.5.2.1',
'rttMonLatestJitterOperNumOfRTT' => '1.3.6.1.4.1.9.9.42.1.5.2.1.1',
'rttMonLatestJitterOperRTTSum' => '1.3.6.1.4.1.9.9.42.1.5.2.1.2',
'rttMonLatestJitterOperRTTSum2' => '1.3.6.1.4.1.9.9.42.1.5.2.1.3',
'rttMonLatestJitterOperRTTMin' => '1.3.6.1.4.1.9.9.42.1.5.2.1.4',
'rttMonLatestJitterOperRTTMax' => '1.3.6.1.4.1.9.9.42.1.5.2.1.5',
'rttMonLatestJitterOperMinOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.6',
'rttMonLatestJitterOperMaxOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.7',
'rttMonLatestJitterOperNumOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.8',
'rttMonLatestJitterOperSumOfPositivesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.9',
'rttMonLatestJitterOperSum2PositivesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.10',
'rttMonLatestJitterOperMinOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.11',
'rttMonLatestJitterOperMaxOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.12',
'rttMonLatestJitterOperNumOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.13',
'rttMonLatestJitterOperSumOfNegativesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.14',
'rttMonLatestJitterOperSum2NegativesSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.15',
'rttMonLatestJitterOperMinOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.16',
'rttMonLatestJitterOperMaxOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.17',
'rttMonLatestJitterOperNumOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.18',
'rttMonLatestJitterOperSumOfPositivesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.19',
'rttMonLatestJitterOperSum2PositivesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.20',
'rttMonLatestJitterOperMinOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.21',
'rttMonLatestJitterOperMaxOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.22',
'rttMonLatestJitterOperNumOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.23',
'rttMonLatestJitterOperSumOfNegativesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.24',
'rttMonLatestJitterOperSum2NegativesDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.25',
'rttMonLatestJitterOperPacketLossSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.26',
'rttMonLatestJitterOperPacketLossDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.27',
'rttMonLatestJitterOperPacketOutOfSequence' => '1.3.6.1.4.1.9.9.42.1.5.2.1.28',
'rttMonLatestJitterOperPacketMIA' => '1.3.6.1.4.1.9.9.42.1.5.2.1.29',
'rttMonLatestJitterOperPacketLateArrival' => '1.3.6.1.4.1.9.9.42.1.5.2.1.30',
'rttMonLatestJitterOperSense' => '1.3.6.1.4.1.9.9.42.1.5.2.1.31',
'rttMonLatestJitterOperSenseDefinition' => 'CISCO-RTTMON-TC-MIB::RttResponseSense',
'rttMonLatestJitterErrorSenseDescription' => '1.3.6.1.4.1.9.9.42.1.5.2.1.32',
'rttMonLatestJitterOperOWSumSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.33',
'rttMonLatestJitterOperOWSum2SD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.34',
'rttMonLatestJitterOperOWMinSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.35',
'rttMonLatestJitterOperOWMaxSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.36',
'rttMonLatestJitterOperOWSumDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.37',
'rttMonLatestJitterOperOWSum2DS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.38',
'rttMonLatestJitterOperOWMinDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.39',
'rttMonLatestJitterOperOWMaxDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.40',
'rttMonLatestJitterOperNumOfOW' => '1.3.6.1.4.1.9.9.42.1.5.2.1.41',
'rttMonLatestJitterOperMOS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.42',
'rttMonLatestJitterOperICPIF' => '1.3.6.1.4.1.9.9.42.1.5.2.1.43',
'rttMonLatestJitterOperIAJOut' => '1.3.6.1.4.1.9.9.42.1.5.2.1.44',
'rttMonLatestJitterOperIAJIn' => '1.3.6.1.4.1.9.9.42.1.5.2.1.45',
'rttMonLatestJitterOperAvgJitter' => '1.3.6.1.4.1.9.9.42.1.5.2.1.46',
'rttMonLatestJitterOperAvgSDJ' => '1.3.6.1.4.1.9.9.42.1.5.2.1.47',
'rttMonLatestJitterOperAvgDSJ' => '1.3.6.1.4.1.9.9.42.1.5.2.1.48',
'rttMonLatestJitterOperOWAvgSD' => '1.3.6.1.4.1.9.9.42.1.5.2.1.49',
'rttMonLatestJitterOperOWAvgDS' => '1.3.6.1.4.1.9.9.42.1.5.2.1.50',
'rttMonLatestJitterOperNTPState' => '1.3.6.1.4.1.9.9.42.1.5.2.1.51',
'rttMonLatestJitterOperNTPStateDefinition' => 'CISCO-RTTMON-MIB::rttMonLatestJitterOperNTPState',
'rttMonLatestJitterOperUnSyncRTs' => '1.3.6.1.4.1.9.9.42.1.5.2.1.52',
'rttMonLatestJitterOperRTTSumHigh' => '1.3.6.1.4.1.9.9.42.1.5.2.1.53',
'rttMonLatestJitterOperRTTSum2High' => '1.3.6.1.4.1.9.9.42.1.5.2.1.54',
'rttMonLatestJitterOperOWSumSDHigh' => '1.3.6.1.4.1.9.9.42.1.5.2.1.55',
'rttMonLatestJitterOperOWSum2SDHigh' => '1.3.6.1.4.1.9.9.42.1.5.2.1.56',
'rttMonLatestJitterOperOWSumDSHigh' => '1.3.6.1.4.1.9.9.42.1.5.2.1.57',
'rttMonLatestJitterOperOWSum2DSHigh' => '1.3.6.1.4.1.9.9.42.1.5.2.1.58',
'rttMonLatestJitterOperNumOverThresh' => '1.3.6.1.4.1.9.9.42.1.5.2.1.59',
'rttMonNotificationsPrefix' => '1.3.6.1.4.1.9.9.42.2',
'rttMonNotifications' => '1.3.6.1.4.1.9.9.42.2.0',
'ciscoRttMonMibConformance' => '1.3.6.1.4.1.9.9.42.3',
'ciscoRttMonMibCompliances' => '1.3.6.1.4.1.9.9.42.3.1',
'ciscoRttMonMibGroups' => '1.3.6.1.4.1.9.9.42.3.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'CISCO-RTTMON-MIB'} = {
'rttMonReactAdminThresholdType' => {
'1' => 'never',
'2' => 'immediate',
'3' => 'consecutive',
'4' => 'xOfy',
'5' => 'average',
},
'rttMonEchoAdminReserveDsp' => {
'1' => 'be',
'2' => 'gs',
'3' => 'na',
},
'rttMonLatestJitterOperNTPState' => {
'1' => 'sync',
'2' => 'outOfSync',
},
'rttMonApplPreConfigedType' => {
'1' => 'filePath',
'2' => 'scriptName',
},
'rttMonFileIOAdminAction' => {
'1' => 'write',
'2' => 'read',
'3' => 'writeRead',
},
'rttMplsVpnMonTypeSecFreqType' => {
'1' => 'none',
'2' => 'timeout',
'3' => 'connectionLoss',
'4' => 'both',
},
'rttMonCtrlOperState' => {
'1' => 'reset',
'2' => 'orderlyStop',
'3' => 'immediateStop',
'4' => 'pending',
'5' => 'inactive',
'6' => 'active',
'7' => 'restart',
},
'rttMonReactActionType' => {
'1' => 'none',
'2' => 'trapOnly',
'3' => 'triggerOnly',
'4' => 'trapAndTrigger',
},
'rttMonHistoryAdminFilter' => {
'1' => 'none',
'2' => 'all',
'3' => 'overThreshold',
'4' => 'failures',
},
'rttMonEchoAdminLSPFECType' => {
'1' => 'ldpIpv4Prefix',
},
'rttMplsVpnMonReactLpdNotifyType' => {
'1' => 'none',
'2' => 'lpdPathDiscovery',
'3' => 'lpdGroupStatus',
'4' => 'lpdAll',
},
'rttMonEchoAdminProbePakPriority' => {
'1' => 'normal',
'2' => 'high',
},
'rttMplsVpnMonReactThresholdType' => {
'1' => 'never',
'2' => 'immediate',
'3' => 'consecutive',
},
'rttMplsVpnMonReactActionType' => {
'1' => 'none',
'2' => 'trapOnly',
},
'rttMonEchoAdminPrecision' => {
'1' => 'milliseconds',
'2' => 'microseconds',
},
'rttMonReactTriggerOperState' => {
'1' => 'active',
'2' => 'pending',
},
'rttMonReactAdminActionType' => {
'1' => 'none',
'2' => 'trapOnly',
'3' => 'nmvtOnly',
'4' => 'triggerOnly',
'5' => 'trapAndNmvt',
'6' => 'trapAndTrigger',
'7' => 'nmvtAndTrigger',
'8' => 'trapNmvtAndTrigger',
},
'rttMonFileIOAdminSize' => {
'1' => 'n256',
'2' => 'n1k',
'3' => 'n64k',
'4' => 'n128k',
'5' => 'n256k',
},
'rttMonEchoAdminOWNTPSyncTolType' => {
'1' => 'percent',
'2' => 'absolute',
},
'rttMonReactThresholdType' => {
'1' => 'never',
'2' => 'immediate',
'3' => 'consecutive',
'4' => 'xOfy',
'5' => 'average',
},
};

View file

@ -1,246 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::CISCORTTMONTCMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'CISCO-RTTMON-TC-MIB'} = {
url => '',
name => 'CISCO-RTTMON-TC-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'CISCO-RTTMON-TC-MIB'} =
'1.3.6.1.4.1.9.9.485';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'CISCO-RTTMON-TC-MIB'} = {
'ciscoRttMonTCMIB' => '1.3.6.1.4.1.9.9.485',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'CISCO-RTTMON-TC-MIB'} = {
'RttMonOperation' => {
'0' => 'notApplicable',
'1' => 'httpGet',
'2' => 'httpRaw',
'3' => 'ftpGet',
'4' => 'ftpPassive',
'5' => 'ftpActive',
'6' => 'voipDTAlertRinging',
'7' => 'voipDTConnectOK',
},
'RttResponseSense' => {
'0' => 'other',
'1' => 'ok',
'2' => 'disconnected',
'3' => 'overThreshold',
'4' => 'timeout',
'5' => 'busy',
'6' => 'notConnected',
'7' => 'dropped',
'8' => 'sequenceError',
'9' => 'verifyError',
'10' => 'applicationSpecific',
'11' => 'dnsServerTimeout',
'12' => 'tcpConnectTimeout',
'13' => 'httpTransactionTimeout',
'14' => 'dnsQueryError',
'15' => 'httpError',
'16' => 'error',
'17' => 'mplsLspEchoTxError',
'18' => 'mplsLspUnreachable',
'19' => 'mplsLspMalformedReq',
'20' => 'mplsLspReachButNotFEC',
'21' => 'enableOk',
'22' => 'enableNoConnect',
'23' => 'enableVersionFail',
'24' => 'enableInternalError',
'25' => 'enableAbort',
'26' => 'enableFail',
'27' => 'enableAuthFail',
'28' => 'enableFormatError',
'29' => 'enablePortInUse',
'30' => 'statsRetrieveOk',
'31' => 'statsRetrieveNoConnect',
'32' => 'statsRetrieveVersionFail',
'33' => 'statsRetrieveInternalError',
'34' => 'statsRetrieveAbort',
'35' => 'statsRetrieveFail',
'36' => 'statsRetrieveAuthFail',
'37' => 'statsRetrieveFormatError',
'38' => 'statsRetrievePortInUse',
},
'RttMonCodecType' => {
'0' => 'notApplicable',
'1' => 'g711ulaw',
'2' => 'g711alaw',
'3' => 'g729a',
},
'RttMonIdLst' => {
},
'RttMplsVpnMonLpdGrpStatus' => {
'1' => 'unknown',
'2' => 'up',
'3' => 'partial',
'4' => 'down',
},
'RttMonLSPPingReplyMode' => {
'1' => 'replyIpv4Udp',
'2' => 'replyIpv4UdpRA',
},
'RttMonRttType' => {
'1' => 'echo',
'2' => 'pathEcho',
'3' => 'fileIO',
'4' => 'script',
'5' => 'udpEcho',
'6' => 'tcpConnect',
'7' => 'http',
'8' => 'dns',
'9' => 'jitter',
'10' => 'dlsw',
'11' => 'dhcp',
'12' => 'ftp',
'13' => 'voip',
'14' => 'rtp',
'15' => 'lspGroup',
'16' => 'icmpjitter',
'17' => 'lspPing',
'18' => 'lspTrace',
'19' => 'ethernetPing',
'20' => 'ethernetJitter',
'21' => 'lspPingPseudowire',
'22' => 'video',
'23' => 'y1731Delay',
'24' => 'y1731Loss',
'25' => 'mcastJitter',
'26' => 'fabricPathEcho',
},
'RttMonProtocol' => {
'1' => 'notApplicable',
'2' => 'ipIcmpEcho',
'3' => 'ipUdpEchoAppl',
'4' => 'snaRUEcho',
'5' => 'snaLU0EchoAppl',
'6' => 'snaLU2EchoAppl',
'7' => 'snaLU62Echo',
'8' => 'snaLU62EchoAppl',
'9' => 'appleTalkEcho',
'10' => 'appleTalkEchoAppl',
'11' => 'decNetEcho',
'12' => 'decNetEchoAppl',
'13' => 'ipxEcho',
'14' => 'ipxEchoAppl',
'15' => 'isoClnsEcho',
'16' => 'isoClnsEchoAppl',
'17' => 'vinesEcho',
'18' => 'vinesEchoAppl',
'19' => 'xnsEcho',
'20' => 'xnsEchoAppl',
'21' => 'apolloEcho',
'22' => 'apolloEchoAppl',
'23' => 'netbiosEchoAppl',
'24' => 'ipTcpConn',
'25' => 'httpAppl',
'26' => 'dnsAppl',
'27' => 'jitterAppl',
'28' => 'dlswAppl',
'29' => 'dhcpAppl',
'30' => 'ftpAppl',
'31' => 'mplsLspPingAppl',
'32' => 'voipAppl',
'33' => 'rtpAppl',
'34' => 'icmpJitterAppl',
'35' => 'ethernetPingAppl',
'36' => 'ethernetJitterAppl',
'37' => 'videoAppl',
'38' => 'y1731dmm',
'39' => 'y17311dm',
'40' => 'y1731lmm',
'41' => 'mcastJitterAppl',
'42' => 'y1731slm',
'43' => 'y1731dmmv1',
'44' => 'fabricPathEchoAppl',
},
'RttMonReactVar' => {
'1' => 'rtt',
'2' => 'jitterSDAvg',
'3' => 'jitterDSAvg',
'4' => 'packetLossSD',
'5' => 'packetLossDS',
'6' => 'mos',
'7' => 'timeout',
'8' => 'connectionLoss',
'9' => 'verifyError',
'10' => 'jitterAvg',
'11' => 'icpif',
'12' => 'packetMIA',
'13' => 'packetLateArrival',
'14' => 'packetOutOfSequence',
'15' => 'maxOfPositiveSD',
'16' => 'maxOfNegativeSD',
'17' => 'maxOfPositiveDS',
'18' => 'maxOfNegativeDS',
'19' => 'iaJitterDS',
'20' => 'frameLossDS',
'21' => 'mosLQDS',
'22' => 'mosCQDS',
'23' => 'rFactorDS',
'24' => 'successivePacketLoss',
'25' => 'maxOfLatencyDS',
'26' => 'maxOfLatencySD',
'27' => 'latencyDSAvg',
'28' => 'latencySDAvg',
'29' => 'packetLoss',
'30' => 'iaJitterSD',
'31' => 'mosCQSD',
'32' => 'rFactorSD',
'33' => 'lpdGroup',
'34' => 'lpdTreeTrace',
'35' => 'lpdAll',
'36' => 'unavailSD',
'37' => 'unavailDS',
'38' => 'pktLossPctSD',
'39' => 'pktLossPctDS',
'40' => 'rttPct',
'41' => 'maxOfLatencySDPct',
'42' => 'maxOfLatencyDSPct',
'43' => 'latencySDAvgPct',
'44' => 'latencyDSAvgPct',
'45' => 'jitterSDAvgPct',
'46' => 'jitterDSAvgPct',
'47' => 'jitterAvgPct',
'48' => 'overThreshold',
'49' => 'protocolSpecificError',
},
'RttMplsVpnMonRttType' => {
'1' => 'jitter',
'2' => 'echo',
'3' => 'pathEcho',
},
'RttMonScheduleStartType' => {
'1' => 'pending',
'2' => 'now',
'3' => 'random',
'4' => 'after',
'5' => 'specific',
},
'RttMplsVpnMonLpdFailureSense' => {
'1' => 'unknown',
'2' => 'noPath',
'3' => 'allPathsBroken',
'4' => 'allPathsUnexplorable',
'5' => 'allPathsBrokenOrUnexplorable',
'6' => 'timeout',
'7' => 'error',
},
'RttReset' => {
'1' => 'ready',
'2' => 'reset',
},
'RttMonCtrlIndex' => {
},
'CipslaPercentileVar' => {
'1' => 'rtt',
'2' => 'owsd',
'3' => 'owds',
'4' => 'jittersd',
'5' => 'jitterds',
'6' => 'jitteravg',
},
};

View file

@ -1,97 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::CISCOSMARTLICMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'CISCO-SMART-LIC-MIB'} = {
url => '',
name => 'CISCO-SMART-LIC-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'CISCO-SMART-LIC-MIB'} =
'1.3.6.1.4.1.9.9.831';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'CISCO-SMART-LIC-MIB'} = {
'ciscoSmartLicMIB' => '1.3.6.1.4.1.9.9.831',
'ciscoSlaMIBObjects' => '1.3.6.1.4.1.9.9.831.0',
'ciscoSlaInstanceId' => '1.3.6.1.4.1.9.9.831.0.1',
'ciscoSlaSUDIInfo' => '1.3.6.1.4.1.9.9.831.0.2',
'ciscoSlaVersion' => '1.3.6.1.4.1.9.9.831.0.3',
'ciscoSlaEnabled' => '1.3.6.1.4.1.9.9.831.0.4',
'ciscoSlaEnabledDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'ciscoSlaEntitlementInfo' => '1.3.6.1.4.1.9.9.831.0.5',
'ciscoSlaEntitlementInfoTable' => '1.3.6.1.4.1.9.9.831.0.5.1',
'ciscoSlaEntitlementInfoEntry' => '1.3.6.1.4.1.9.9.831.0.5.1.1',
'ciscoSlaEntitlementInfoIndex' => '1.3.6.1.4.1.9.9.831.0.5.1.1.1',
'ciscoSlaEntitlementRequestCount' => '1.3.6.1.4.1.9.9.831.0.5.1.1.2',
'ciscoSlaEntitlementTag' => '1.3.6.1.4.1.9.9.831.0.5.1.1.3',
'ciscoSlaEntitlementVersion' => '1.3.6.1.4.1.9.9.831.0.5.1.1.4',
'ciscoSlaEntitlementEnforceMode' => '1.3.6.1.4.1.9.9.831.0.5.1.1.5',
'ciscoSlaEntitlementEnforceModeDefinition' => 'CISCO-SMART-LIC-MIB::ciscoSlaEntitlementEnforceMode',
'ciscoSlaEntitlementDescription' => '1.3.6.1.4.1.9.9.831.0.5.1.1.6',
'ciscoSlaEntitlementFeatureName' => '1.3.6.1.4.1.9.9.831.0.5.1.1.7',
'ciscoSlaRegistrationStatusInfo' => '1.3.6.1.4.1.9.9.831.0.6',
'ciscoSlaRegistrationStatusInfoTable' => '1.3.6.1.4.1.9.9.831.0.6',
'ciscoSlaRegistrationStatusInfoEntry' => '1.3.6.1.4.1.9.9.831.0.6',
'ciscoSlaRegistrationStatus' => '1.3.6.1.4.1.9.9.831.0.6.1',
'ciscoSlaRegistrationStatusDefinition' => 'CISCO-SMART-LIC-MIB::ciscoSlaRegistrationStatus',
'ciscoSlaVirtualAccount' => '1.3.6.1.4.1.9.9.831.0.6.2',
'ciscoSlaNextCertificateExpireTime' => '1.3.6.1.4.1.9.9.831.0.6.3',
'ciscoSlaEnterpriseAccountName' => '1.3.6.1.4.1.9.9.831.0.6.4',
'ciscoSlaRegisterTime' => '1.3.6.1.4.1.9.9.831.0.6.5',
'ciscoSlaRegisterInitTime' => '1.3.6.1.4.1.9.9.831.0.6.5.1',
'ciscoSlaRegisterSuccess' => '1.3.6.1.4.1.9.9.831.0.6.5.2',
'ciscoSlaRegisterSuccessDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'ciscoSlaRegisterFailureReason' => '1.3.6.1.4.1.9.9.831.0.6.5.3',
'ciscoSlaRegisterNextRetryTime' => '1.3.6.1.4.1.9.9.831.0.6.5.4',
'ciscoSlaRenewTime' => '1.3.6.1.4.1.9.9.831.0.6.6',
'ciscoSlaRenewInitTime' => '1.3.6.1.4.1.9.9.831.0.6.6.1',
'ciscoSlaRenewSuccess' => '1.3.6.1.4.1.9.9.831.0.6.6.2',
'ciscoSlaRenewSuccessDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'ciscoSlaRenewFailureReason' => '1.3.6.1.4.1.9.9.831.0.6.6.3',
'ciscoSlaRenewNextRetryTime' => '1.3.6.1.4.1.9.9.831.0.6.6.4',
'ciscoSlaAuthorizationInfo' => '1.3.6.1.4.1.9.9.831.0.7',
'ciscoSlaAuthorizationInfoTable' => '1.3.6.1.4.1.9.9.831.0.7',
'ciscoSlaAuthorizationInfoEntry' => '1.3.6.1.4.1.9.9.831.0.7',
'ciscoSlaAuthExpireTime' => '1.3.6.1.4.1.9.9.831.0.7.1',
'ciscoSlaAuthComplianceStatus' => '1.3.6.1.4.1.9.9.831.0.7.2',
'ciscoSlaAuthOOCStartTime' => '1.3.6.1.4.1.9.9.831.0.7.3',
'ciscoSlaAuthEvalPeriod' => '1.3.6.1.4.1.9.9.831.0.7.4',
'ciscoSlaAuthEvalPeriodInUse' => '1.3.6.1.4.1.9.9.831.0.7.4.1',
'ciscoSlaAuthEvalPeriodInUseDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'ciscoSlaAuthEvalExpiredTime' => '1.3.6.1.4.1.9.9.831.0.7.4.2',
'ciscoSlaAuthEvalPeriodLeft' => '1.3.6.1.4.1.9.9.831.0.7.4.3',
'ciscoSlaAuthRenewTime' => '1.3.6.1.4.1.9.9.831.0.7.5',
'ciscoSlaAuthRenewInitTime' => '1.3.6.1.4.1.9.9.831.0.7.5.1',
'ciscoSlaAuthRenewSuccess' => '1.3.6.1.4.1.9.9.831.0.7.5.2',
'ciscoSlaAuthRenewSuccessDefinition' => 'SNMPv2-TC-v1-MIB::TruthValue',
'ciscoSlaAuthRenewFailureReason' => '1.3.6.1.4.1.9.9.831.0.7.5.3',
'ciscoSlaAuthRenewNextRetryTime' => '1.3.6.1.4.1.9.9.831.0.7.5.4',
'ciscoSlaNotifObjects' => '1.3.6.1.4.1.9.9.831.0.8',
'ciscoSlaGlobalNotifEnable' => '1.3.6.1.4.1.9.9.831.0.8.1',
'ciscoSlaEntitlementNotifEnable' => '1.3.6.1.4.1.9.9.831.0.8.2',
'ciscoSlaMIBNotifs' => '1.3.6.1.4.1.9.9.831.1',
'ciscoSlaMIBConform' => '1.3.6.1.4.1.9.9.831.2',
'ciscoSlaMIBCompliances' => '1.3.6.1.4.1.9.9.831.2.1',
'ciscoSlaMIBGroups' => '1.3.6.1.4.1.9.9.831.2.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'CISCO-SMART-LIC-MIB'} = {
'ciscoSlaEntitlementEnforceMode' => {
'1' => 'initialized',
'2' => 'waiting',
'3' => 'authorized',
'4' => 'outOfCompliance',
'5' => 'overage',
'6' => 'evaluationPeriod',
'7' => 'evaluationExpired',
'8' => 'gracePeriod',
'9' => 'gracePeriodExpired',
'10' => 'disabled',
'11' => 'invalidTag',
},
'ciscoSlaRegistrationStatus' => {
'1' => 'notRegistered',
'2' => 'registrationInProgress',
'3' => 'registrationFailed',
'4' => 'registrationRetryinProgress',
'5' => 'registrationCompleted',
},
};

View file

@ -1,56 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::DEVICEMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'DEVICE-MIB'} = {
url => '',
name => 'DEVICE-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'DEVICE-MIB'} = '1.3.6.1.4.1.42359.2.2.1.1';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'DEVICE-MIB'} = {
'device' => '1.3.6.1.4.1.42359.2.2.1.1',
'deviceTable' => '1.3.6.1.4.1.42359.2.2.1.1.1',
'deviceEntry' => '1.3.6.1.4.1.42359.2.2.1.1.1.1',
'deviceVSNId' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.1',
'deviceCPULoad' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.2',
'deviceMemoryLoad' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.3',
'deviceBuffer' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.4',
'deviceActiveSessions' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.5',
'deviceFailedSessions' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.6',
'deviceMaxSessions' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.7',
'deviceClientId' => '1.3.6.1.4.1.42359.2.2.1.1.1.1.8',
'deviceAlarmStatsTable' => '1.3.6.1.4.1.42359.2.2.1.1.3',
'deviceAlarmStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.1.3.1',
'deviceAlarmId' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.1',
'deviceAlarmName' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.2',
'deviceAlarmNewCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.5',
'deviceAlarmChangedCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.6',
'deviceAlarmClearedCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.7',
'deviceAlarmNetconfCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.8',
'deviceAlarmSnmpCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.9',
'deviceAlarmSyslogCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.10',
'deviceAlarmAnalyticsCnt' => '1.3.6.1.4.1.42359.2.2.1.1.3.1.11',
'deviceHardwareTable' => '1.3.6.1.4.1.42359.2.2.1.1.4',
'deviceHardwareEntry' => '1.3.6.1.4.1.42359.2.2.1.1.4.1',
'deviceHardwareSku' => '1.3.6.1.4.1.42359.2.2.1.1.4.1.1',
'deviceHardwareModel' => '1.3.6.1.4.1.42359.2.2.1.1.4.1.2',
'deviceHardwareSerialnumber' => '1.3.6.1.4.1.42359.2.2.1.1.4.1.3',
'deviceCpuInfoTable' => '1.3.6.1.4.1.42359.2.2.1.1.5',
'deviceCpuInfoEntry' => '1.3.6.1.4.1.42359.2.2.1.1.5.1',
'deviceCpuId' => '1.3.6.1.4.1.42359.2.2.1.1.5.1.1',
'deviceCpuLoadPercentage' => '1.3.6.1.4.1.42359.2.2.1.1.5.1.2',
'deviceSoftwareInfo' => '1.3.6.1.4.1.42359.2.2.1.1.6',
'packageVersionMajor' => '1.3.6.1.4.1.42359.2.2.1.1.6.1',
'packageVersionMinor' => '1.3.6.1.4.1.42359.2.2.1.1.6.2',
'packageVersionService' => '1.3.6.1.4.1.42359.2.2.1.1.6.3',
'packageReleaseDate' => '1.3.6.1.4.1.42359.2.2.1.1.6.4',
'packageId' => '1.3.6.1.4.1.42359.2.2.1.1.6.5',
'packageName' => '1.3.6.1.4.1.42359.2.2.1.1.6.6',
'packageReleaseType' => '1.3.6.1.4.1.42359.2.2.1.1.6.7',
'packageSpackApiVersion' => '1.3.6.1.4.1.42359.2.2.1.1.6.8',
'packageSpackLibVersion' => '1.3.6.1.4.1.42359.2.2.1.1.6.9',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'DEVICE-MIB'} = {
};

View file

@ -1,308 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::HUAWEIBGPVPNMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'HUAWEI-BGP-VPN-MIB'} = {
url => '',
name => 'HUAWEI-BGP-VPN-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'HUAWEI-BGP-VPN-MIB'} =
'1.3.6.1.4.1.2011.5.25.177';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'HUAWEI-BGP-VPN-MIB'} = {
'hwBgpMIB' => '1.3.6.1.4.1.2011.5.25.177',
'hwBgpObjects' => '1.3.6.1.4.1.2011.5.25.177.1',
'hwBgpPeers' => '1.3.6.1.4.1.2011.5.25.177.1.1',
'hwBgpPeerAddrFamilyTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.1',
'hwBgpPeerAddrFamilyEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1',
'hwBgpPeerInstanceId' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1.1',
'hwBgpPeerAddrFamilyAfi' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1.2',
'hwBgpPeerAddrFamilyAfiDefinition' => 'HUAWEI-BGP-VPN-MIB::HWBgpAfi',
'hwBgpPeerAddrFamilySafi' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1.3',
'hwBgpPeerAddrFamilySafiDefinition' => 'HUAWEI-BGP-VPN-MIB::HWBgpSafi',
'hwBgpPeerType' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1.4',
'hwBgpPeerIPAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1.5',
'hwBgpPeerVrfName' => '1.3.6.1.4.1.2011.5.25.177.1.1.1.1.6',
'hwBgpPeerTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.2',
'hwBgpPeerEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1',
'hwBgpPeerNegotiatedVersion' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.1',
'hwBgpPeerRemoteAs' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.2',
'hwBgpPeerRemoteAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.4',
'hwBgpPeerState' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.5',
'hwBgpPeerStateDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerState',
'hwBgpPeerFsmEstablishedCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.6',
'hwBgpPeerFsmEstablishedTime' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.7',
'hwBgpPeerGRStatus' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.8',
'hwBgpPeerGRStatusDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerGRStatus',
'hwBgpPeerLastError' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.9',
'hwBgpPeerUnAvaiReason' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.10',
'hwBgpPeerUnAvaiReasonDefinition' => {
1 => "Configuration lead peer down",
2 => "Receive notification",
3 => "Receive error packet",
4 => "Hold timer expire",
5 => "Remote peer not reachable",
6 => "Direct connect-interface down",
7 => "Route limit",
},
'hwBgpPeerAdminStatus' => '1.3.6.1.4.1.2011.5.25.177.1.1.2.1.11',
'hwBgpPeerAdminStatusDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerAdminStatus',
'hwBgpPeerRouteTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.3',
'hwBgpPeerRouteEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.3.1',
'hwBgpPeerPrefixRcvCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.3.1.1',
'hwBgpPeerPrefixActiveCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.3.1.2',
'hwBgpPeerPrefixAdvCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.3.1.3',
'hwBgpPeerMessageTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.4',
'hwBgpPeerMessageEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1',
'hwBgpPeerInTotalMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.1',
'hwBgpPeerOutTotalMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.2',
'hwBgpPeerInOpenMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.3',
'hwBgpPeerInUpdateMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.4',
'hwBgpPeerInNotificationMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.5',
'hwBgpPeerInKeepAliveMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.6',
'hwBgpPeerInRouteFreshMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.7',
'hwBgpPeerOutOpenMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.8',
'hwBgpPeerOutUpdateMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.9',
'hwBgpPeerOutNotificationMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.10',
'hwBgpPeerOutKeepAliveMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.11',
'hwBgpPeerOutRouteFreshMsgCounter' => '1.3.6.1.4.1.2011.5.25.177.1.1.4.1.12',
'hwBgpPeerConfigTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.5',
'hwBgpPeerConfigEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.5.1',
'hwBgpPeerConfigRouteLimitNum' => '1.3.6.1.4.1.2011.5.25.177.1.1.5.1.1',
'hwBgpPeerConfigRouteLimitThreshold' => '1.3.6.1.4.1.2011.5.25.177.1.1.5.1.2',
'hwBgpPeerSessionTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.6',
'hwBgpPeerSessionEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1',
'hwBgpPeerSessionVrfName' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.1',
'hwBgpPeerSessionRemoteAddrType' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.2',
'hwBgpPeerSessionRemoteAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.3',
'hwBgpPeerSessionLocalAddrType' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.4',
'hwBgpPeerSessionLocalAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.5',
'hwBgpPeerSessionUnavailableType' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.6',
'hwBgpPeerSessionUnavailableTypeDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerSessionUnavailableType',
'hwBgpPeerSessionLocalIfName' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.7',
'hwBgpPeerSessionReason' => '1.3.6.1.4.1.2011.5.25.177.1.1.6.1.8',
'hwBgpPeerSessionReasonDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerSessionReason',
'hwBgpPeerStatisticTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.7',
'hwBgpPeerStatisticEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1',
'hwBgpProcessId' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.1',
'hwBgpPeerVrfInstanceId' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.2',
'hwBgpPeerAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.3',
'hwBgpPeerFsmEstablishedTransitions' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.4',
'hwBgpPeerDownCounts' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.5',
'hwBgpPeerInUpdateMsgs' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.6',
'hwBgpPeerOutUpdateMsgs' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.7',
'hwBgpPeerInTotalMsgs' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.8',
'hwBgpPeerOutTotalMsgs' => '1.3.6.1.4.1.2011.5.25.177.1.1.7.1.9',
'hwBgpPeerSessionExtTable' => '1.3.6.1.4.1.2011.5.25.177.1.1.8',
'hwBgpPeerSessionExtEntry' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1',
'hwBgpPeerSessionExtVrfId' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.1',
'hwBgpPeerSessionExtRemoteAddrType' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.2',
'hwBgpPeerSessionExtRemoteAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.3',
'hwBgpPeerSessionExtLocalAddrType' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.4',
'hwBgpPeerSessionExtLocalAddr' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.5',
'hwBgpPeerSessionExtUnavailableType' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.6',
'hwBgpPeerSessionExtUnavailableTypeDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerSessionExtUnavailableType',
'hwBgpPeerSessionExtLocalIfName' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.7',
'hwBgpPeerSessionExtReason' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.8',
'hwBgpPeerSessionExtReasonDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpPeerSessionExtReason',
'hwBgpPeerSessionExtVrfName' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.9',
'hwBgpPeerSessionExtRemoteAs' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.10',
'hwBgpPeerSessionExtDescription' => '1.3.6.1.4.1.2011.5.25.177.1.1.8.1.11',
'hwBgpRoute' => '1.3.6.1.4.1.2011.5.25.177.1.2',
'hwBgpRouteLimitTable' => '1.3.6.1.4.1.2011.5.25.177.1.2.1',
'hwBgpRouteLimitindex' => '1.3.6.1.4.1.2011.5.25.177.1.2.1.1',
'hwBgpRouteLimitindexDefinition' => 'HUAWEI-BGP-VPN-MIB::hwBgpRouteLimitindex',
'hwBgpRouteCurNum' => '1.3.6.1.4.1.2011.5.25.177.1.2.1.2',
'hwBgpRouteMaxNum' => '1.3.6.1.4.1.2011.5.25.177.1.2.1.3',
'hwBgpRouteThreshold' => '1.3.6.1.4.1.2011.5.25.177.1.2.1.4',
'hwBgpRouteType' => '1.3.6.1.4.1.2011.5.25.177.1.2.1.5',
'hwBgpVrfRouteTable' => '1.3.6.1.4.1.2011.5.25.177.1.2.2',
'hwBgpVrfRouteEntry' => '1.3.6.1.4.1.2011.5.25.177.1.2.2.1',
'hwBgpVrfCurrRouteNum' => '1.3.6.1.4.1.2011.5.25.177.1.2.2.1.1',
'hwBgpVrfThresholdValue' => '1.3.6.1.4.1.2011.5.25.177.1.2.2.1.2',
'hwBgpVrfRouteType' => '1.3.6.1.4.1.2011.5.25.177.1.2.2.1.3',
'hwBgpVrfInstName' => '1.3.6.1.4.1.2011.5.25.177.1.2.2.1.4',
'hwBgpVrfAddressFamily' => '1.3.6.1.4.1.2011.5.25.177.1.2.2.1.5',
'hwEvpnRouteTable' => '1.3.6.1.4.1.2011.5.25.177.1.2.3',
'hwEvpnRouteEntry' => '1.3.6.1.4.1.2011.5.25.177.1.2.3.1',
'hwEvpnCurrRouteNum' => '1.3.6.1.4.1.2011.5.25.177.1.2.3.1.1',
'hwEvpnThresholdValue' => '1.3.6.1.4.1.2011.5.25.177.1.2.3.1.2',
'hwEvpnRouteType' => '1.3.6.1.4.1.2011.5.25.177.1.2.3.1.3',
'hwEvpnAddressFamily' => '1.3.6.1.4.1.2011.5.25.177.1.2.3.1.4',
'hwBgpLabelLimitTable' => '1.3.6.1.4.1.2011.5.25.177.1.2.4',
'hwBgpAddrFamilyAfi' => '1.3.6.1.4.1.2011.5.25.177.1.2.4.1',
'hwBgpAddrFamilyAfiDefinition' => 'HUAWEI-BGP-VPN-MIB::HWBgpAfi',
'hwBgpAddrFamilySafi' => '1.3.6.1.4.1.2011.5.25.177.1.2.4.2',
'hwBgpAddrFamilySafiDefinition' => 'HUAWEI-BGP-VPN-MIB::HWBgpSafi',
'hwBgpLabelMaxValue' => '1.3.6.1.4.1.2011.5.25.177.1.2.4.3',
'hwBgpLabelLimitThreshold' => '1.3.6.1.4.1.2011.5.25.177.1.2.4.4',
'hwBgpTraps' => '1.3.6.1.4.1.2011.5.25.177.1.3',
'hwBgpScalars' => '1.3.6.1.4.1.2011.5.25.177.1.4',
'hwBgpPeerSessionNum' => '1.3.6.1.4.1.2011.5.25.177.1.4.1',
'hwIBgpPeerSessionNum' => '1.3.6.1.4.1.2011.5.25.177.1.4.2',
'hwEBgpPeerSessionNum' => '1.3.6.1.4.1.2011.5.25.177.1.4.3',
'hwBgpPeerSessionMaxNum' => '1.3.6.1.4.1.2011.5.25.177.1.4.4',
'hwBgpDynamicPeerSessionNum' => '1.3.6.1.4.1.2011.5.25.177.1.4.5',
'hwBgpDynamicPeerSessionMaxNum' => '1.3.6.1.4.1.2011.5.25.177.1.4.6',
'hwBgpPeerSessionThreshold' => '1.3.6.1.4.1.2011.5.25.177.1.4.7',
'hwBgpPeerTotalInUpdateMsgs' => '1.3.6.1.4.1.2011.5.25.177.1.4.8',
'hwBgpPeerTotalOutUpdateMsgs' => '1.3.6.1.4.1.2011.5.25.177.1.4.9',
'hwBgpProcess' => '1.3.6.1.4.1.2011.5.25.177.1.5',
'hwBgpProcessCommTable' => '1.3.6.1.4.1.2011.5.25.177.1.5.1',
'hwBgpProcessCommEntry' => '1.3.6.1.4.1.2011.5.25.177.1.5.1.1',
'hwBgpProcessName' => '1.3.6.1.4.1.2011.5.25.177.1.5.1.1.1',
'hwBgpVpnObjects' => '1.3.6.1.4.1.2011.5.25.177.2',
'hwBgpVpnTunnelTable' => '1.3.6.1.4.1.2011.5.25.177.2.1',
'hwBgpVpnTunnelEntry' => '1.3.6.1.4.1.2011.5.25.177.2.1.1',
'hwBgpVpnTunnelVrfName' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.1',
'hwBgpVpnTunnelPublicNetNextHop' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.2',
'hwBgpVpnTunnelId' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.3',
'hwBgpVpnTunnelDestAddr' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.4',
'hwBgpVpnTunnelType' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.5',
'hwBgpVpnTunnelSrcAddr' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.6',
'hwBgpVpnTunnelOutIfName' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.7',
'hwBgpVpnTunnelIsLoadBalance' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.8',
'hwBgpVpnTunnelLspIndex' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.9',
'hwBgpVpnTunnelLspOutIfName' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.10',
'hwBgpVpnTunnelLspOutLabel' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.11',
'hwBgpVpnTunnelLspNextHop' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.12',
'hwBgpVpnTunnelLspFec' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.13',
'hwBgpVpnTunnelLspFecPfxLen' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.14',
'hwBgpVpnTunnelLspIsBackup' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.15',
'hwBgpVpnTunnelSignalProtocol' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.16',
'hwBgpVpnTunnelSessionTunnelId' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.17',
'hwBgpVpnTunnelTunnelName' => '1.3.6.1.4.1.2011.5.25.177.2.1.1.18',
'hwBgpVpnServiceIdTable' => '1.3.6.1.4.1.2011.5.25.177.2.2',
'hwBgpVpnServiceIdEntry' => '1.3.6.1.4.1.2011.5.25.177.2.2.1',
'hwBgpVpnServiceIdVrfName' => '1.3.6.1.4.1.2011.5.25.177.2.2.1.1',
'hwBgpVpnServiceIdValue' => '1.3.6.1.4.1.2011.5.25.177.2.2.1.2',
'hwBgpVpnScalars' => '1.3.6.1.4.1.2011.5.25.177.2.3',
'hwConfiguredVrfs' => '1.3.6.1.4.1.2011.5.25.177.2.3.1',
'hwConfiguredIpv4Vrfs' => '1.3.6.1.4.1.2011.5.25.177.2.3.2',
'hwConfiguredIpv6Vrfs' => '1.3.6.1.4.1.2011.5.25.177.2.3.3',
'hwBgpConformance' => '1.3.6.1.4.1.2011.5.25.177.3',
'hwBgpCompliances' => '1.3.6.1.4.1.2011.5.25.177.3.1',
'hwBgpGroups' => '1.3.6.1.4.1.2011.5.25.177.3.2',
'hwBgpVpnConformance' => '1.3.6.1.4.1.2011.5.25.177.5',
'hwBgpVpnCompliances' => '1.3.6.1.4.1.2011.5.25.177.5.1',
'hwBgpVpnExtGroups' => '1.3.6.1.4.1.2011.5.25.177.5.2',
'hwTnl2VpnTrapObjects' => '1.3.6.1.4.1.2011.5.25.177.6',
'hwTnl2VpnTrapTable' => '1.3.6.1.4.1.2011.5.25.177.6.1',
'hwTnl2VpnTrapEntry' => '1.3.6.1.4.1.2011.5.25.177.6.1.1',
'hwVpnId' => '1.3.6.1.4.1.2011.5.25.177.6.1.1.1',
'hwVpnPublicNextHop' => '1.3.6.1.4.1.2011.5.25.177.6.1.1.2',
'hwTunnelReachablityEvent' => '1.3.6.1.4.1.2011.5.25.177.6.1.1.3',
'hwVpnTrapCkeyValue' => '1.3.6.1.4.1.2011.5.25.177.6.1.1.4',
'hwTnl2VpnTrapConformance' => '1.3.6.1.4.1.2011.5.25.177.7',
'hwTnl2VpnTrapConformances' => '1.3.6.1.4.1.2011.5.25.177.7.1',
'hwTnl2VpnTrapGroups' => '1.3.6.1.4.1.2011.5.25.177.7.2',
'hwTnl2VpnTrapNotification' => '1.3.6.1.4.1.2011.5.25.177.8',
'hwPeerDistributeObjects' => '1.3.6.1.4.1.2011.5.25.177.9',
'hwBgpTotalRouteNumber' => '1.3.6.1.4.1.2011.5.25.177.9.1',
'hwOsNodeTable' => '1.3.6.1.4.1.2011.5.25.177.9.2',
'hwOsNodeEntry' => '1.3.6.1.4.1.2011.5.25.177.9.2.1',
'hwCurrSlot' => '1.3.6.1.4.1.2011.5.25.177.9.2.1.1',
'hwPeerNumber' => '1.3.6.1.4.1.2011.5.25.177.9.2.1.4',
'hwRouteNumber' => '1.3.6.1.4.1.2011.5.25.177.9.2.1.5',
'hwDistributeTable' => '1.3.6.1.4.1.2011.5.25.177.9.3',
'hwDistributeEntry' => '1.3.6.1.4.1.2011.5.25.177.9.3.1',
'hwDistributeLocId' => '1.3.6.1.4.1.2011.5.25.177.9.3.1.1',
'hwDistributeName' => '1.3.6.1.4.1.2011.5.25.177.9.3.1.2',
'hwMigrateSrcSlot' => '1.3.6.1.4.1.2011.5.25.177.9.3.1.3',
'hwMigrateDestSlot' => '1.3.6.1.4.1.2011.5.25.177.9.3.1.4',
'hwMigrateReason' => '1.3.6.1.4.1.2011.5.25.177.9.3.1.5',
'hwMigrateReasonDefinition' => 'HUAWEI-BGP-VPN-MIB::hwMigrateReason',
'hwPeerDistributeTraps' => '1.3.6.1.4.1.2011.5.25.177.9.4',
'hwRpkiObjects' => '1.3.6.1.4.1.2011.5.25.177.11',
'hwRpkiSessions' => '1.3.6.1.4.1.2011.5.25.177.11.1',
'hwRpkiSessionTable' => '1.3.6.1.4.1.2011.5.25.177.11.1.1',
'hwRpkiSessionEntry' => '1.3.6.1.4.1.2011.5.25.177.11.1.1.1',
'hwRpkiSessionVrfName' => '1.3.6.1.4.1.2011.5.25.177.11.1.1.1.1',
'hwRpkiSessionType' => '1.3.6.1.4.1.2011.5.25.177.11.1.1.1.2',
'hwSessionIPAddr' => '1.3.6.1.4.1.2011.5.25.177.11.1.1.1.3',
'hwRpkiSessionRoaLimitNum' => '1.3.6.1.4.1.2011.5.25.177.11.1.1.1.4',
'hwRpkiTraps' => '1.3.6.1.4.1.2011.5.25.177.11.2',
'hwRpkiConformance' => '1.3.6.1.4.1.2011.5.25.177.11.3',
'hwRpkiCompliances' => '1.3.6.1.4.1.2011.5.25.177.11.3.1',
'hwRpkiGroups' => '1.3.6.1.4.1.2011.5.25.177.11.3.2',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'HUAWEI-BGP-VPN-MIB'} = {
'hwMigrateReason' => {
'1' => 'memoryoverload',
'2' => 'cpuoverload',
},
'HWBgpSafi' => {
'1' => 'unicast',
'2' => 'multicast',
'4' => 'mpls',
'5' => 'mcast-vpn',
'65' => 'vpls',
'66' => 'mdt',
'128' => 'vpn',
'132' => 'route-target',
},
'hwBgpPeerAdminStatus' => {
'1' => 'stop',
'2' => 'start',
},
'hwBgpPeerSessionReason' => {
'1' => 'configurationLeadPeerDown',
'2' => 'receiveNotification',
'3' => 'receiveErrorPacket',
'4' => 'holdTimerExpire',
'5' => 'remotePeerNotReachable',
'6' => 'directConnectInterfaceDown',
'7' => 'routeLimit',
'8' => 'peerIsNotUpForASpecifiedPeriodOfTime',
'100' => 'alarmClear',
},
'hwBgpRouteLimitindex' => {
'1' => 'ipv4',
'2' => 'ipv6',
'3' => 'ipv4vrf',
'4' => 'ipv6vrf',
'5' => 'ipv4public',
'6' => 'ipv6public',
'7' => 'l2ad',
},
'hwBgpPeerSessionExtReason' => {
'1' => 'configurationLeadPeerDown',
'2' => 'receiveNotification',
'3' => 'receiveErrorPacket',
'4' => 'holdTimerExpire',
'5' => 'remotePeerNotReachable',
'6' => 'directConnectInterfaceDown',
'7' => 'routeLimit',
'8' => 'peerIsNotUpForASpecifiedPeriodOfTime',
'90' => 'unknown',
'100' => 'alarmClear',
},
'HWBgpAfi' => {
'1' => 'ipv4',
'2' => 'ipv6',
'25' => 'vpls',
'196' => 'l2vpn',
},
'hwBgpPeerGRStatus' => {
'1' => 'peerNotBeingHelped',
'2' => 'peerRestarting',
'3' => 'peerFinishRestart',
'4' => 'peerHelping',
},
'hwBgpPeerState' => {
'1' => 'idle',
'2' => 'connect',
'3' => 'active',
'4' => 'opensent',
'5' => 'openconfirm',
'6' => 'established',
},
'hwBgpPeerSessionUnavailableType' => {
'1' => 'uptodown',
'2' => 'alwaysdown',
},
'hwBgpPeerSessionExtUnavailableType' => {
'1' => 'uptodown',
'2' => 'alwaysdown',
},
};

View file

@ -1,99 +0,0 @@
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'ORG-MIB'} = {
url => '',
name => 'ORG-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'ORG-MIB'} = '1.3.6.1.4.1.42359.2.2.1.2';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'ORG-MIB'} = {
'org' => '1.3.6.1.4.1.42359.2.2.1.2',
'trafficTable' => '1.3.6.1.4.1.42359.2.2.1.2.2',
'trafficEntry' => '1.3.6.1.4.1.42359.2.2.1.2.2.1',
'trafficOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.1',
'trafficOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.2',
'trafficPktsIn' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.3',
'trafficBytesIn' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.4',
'trafficPktsOut' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.5',
'trafficBytesOut' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.6',
'trafficPktsInRate' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.7',
'trafficBytesInRate' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.8',
'trafficPktsOutRate' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.9',
'trafficBytesOutRate' => '1.3.6.1.4.1.42359.2.2.1.2.2.1.10',
'qosTrafficTable' => '1.3.6.1.4.1.42359.2.2.1.2.3',
'qosTrafficEntry' => '1.3.6.1.4.1.42359.2.2.1.2.3.1',
'qosTrafficOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.1',
'qosTrafficOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.2',
'qosTrafficPktsIn' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.3',
'qosTrafficBytesIn' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.4',
'qosTrafficPktsOut' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.5',
'qosTrafficBytesOut' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.6',
'qosTrafficPktsDropped' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.7',
'qosTrafficBytesDropped' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.8',
'qosTrafficPktsDroppedPPS' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.9',
'qosTrafficBytesDroppedPPS' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.10',
'qosTrafficPktsDroppedKBPS' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.11',
'qosTrafficBytesDroppedKBPS' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.12',
'qosTrafficSessionsIn' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.13',
'qosTrafficSessionsDrop' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.14',
'qosTrafficSessionsAllow' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.15',
'qosTrafficPktsInRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.16',
'qosTrafficBytesInRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.17',
'qosTrafficPktsOutRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.18',
'qosTrafficBytesOutRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.19',
'qosTrafficPktsDropRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.20',
'qosTrafficBytesDropRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.21',
'qosTrafficSessionsInRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.22',
'qosTrafficSessionsAllowRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.23',
'qosTrafficSessionsDropRate' => '1.3.6.1.4.1.42359.2.2.1.2.3.1.24',
'sessStatsTable' => '1.3.6.1.4.1.42359.2.2.1.2.4',
'sessStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.2.4.1',
'sessOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.1',
'sessOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.2',
'sessVsnId' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.3',
'sessActive' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.4',
'sessCreated' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.5',
'sessClosed' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.6',
'sessActiveNAT' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.7',
'sessCreatedNAT' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.8',
'sessClosedNAT' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.9',
'sessFailed' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.10',
'sessMax' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.11',
'sessTCP' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.12',
'sessUDP' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.13',
'sessICMP' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.14',
'sessOTHER' => '1.3.6.1.4.1.42359.2.2.1.2.4.1.15',
'sessSdwanStatsTable' => '1.3.6.1.4.1.42359.2.2.1.2.5',
'sessSdwanStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.2.5.1',
'sessSdwanOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.5.1.1',
'sessSdwanOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.5.1.2',
'sessSdwanVsnId' => '1.3.6.1.4.1.42359.2.2.1.2.5.1.3',
'sessSdwanActive' => '1.3.6.1.4.1.42359.2.2.1.2.5.1.4',
'sessSdwanCreated' => '1.3.6.1.4.1.42359.2.2.1.2.5.1.5',
'sessSdwanClosed' => '1.3.6.1.4.1.42359.2.2.1.2.5.1.6',
'sessCgnatStatsTable' => '1.3.6.1.4.1.42359.2.2.1.2.7',
'sessCgnatStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.2.7.1',
'sessCgnatOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.1',
'sessCgnatOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.2',
'sessCgnatVsnId' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.3',
'sessCgnatActive' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.4',
'sessCgnatCreated' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.5',
'sessCgnatClosed' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.6',
'sessCgnatFailed' => '1.3.6.1.4.1.42359.2.2.1.2.7.1.7',
'orgAlarmStatsTable' => '1.3.6.1.4.1.42359.2.2.1.2.8',
'orgAlarmStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.2.8.1',
'alarmOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.1',
'alarmId' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.2',
'alarmOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.3',
'alarmName' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.4',
'alarmNewCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.5',
'alarmChangedCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.6',
'alarmClearedCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.7',
'alarmNetconfCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.8',
'alarmSnmpCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.9',
'alarmSyslogCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.10',
'alarmAnalyticsCnt' => '1.3.6.1.4.1.42359.2.2.1.2.8.1.11',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'ORG-MIB'} = {
};

View file

@ -1,100 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::PULSESECUREPSGMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'PULSESECURE-PSG-MIB'} = {
url => '',
name => 'PULSESECURE-PSG-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'PULSESECURE-PSG-MIB'} =
'1.3.6.1.4.1.12532';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'PULSESECURE-PSG-MIB'} = {
'pulsesecure-gateway' => '1.3.6.1.4.1.12532',
'logFullPercent' => '1.3.6.1.4.1.12532.1',
'signedInWebUsers' => '1.3.6.1.4.1.12532.2',
'signedInMailUsers' => '1.3.6.1.4.1.12532.3',
'blockedIP' => '1.3.6.1.4.1.12532.4',
'authServerName' => '1.3.6.1.4.1.12532.5',
'productName' => '1.3.6.1.4.1.12532.6',
'productVersion' => '1.3.6.1.4.1.12532.7',
'fileName' => '1.3.6.1.4.1.12532.8',
'meetingUserCount' => '1.3.6.1.4.1.12532.9',
'iveCpuUtil' => '1.3.6.1.4.1.12532.10',
'iveMemoryUtil' => '1.3.6.1.4.1.12532.11',
'iveConcurrentUsers' => '1.3.6.1.4.1.12532.12',
'clusterConcurrentUsers' => '1.3.6.1.4.1.12532.13',
'iveTotalHits' => '1.3.6.1.4.1.12532.14',
'iveFileHits' => '1.3.6.1.4.1.12532.15',
'iveWebHits' => '1.3.6.1.4.1.12532.16',
'iveAppletHits' => '1.3.6.1.4.1.12532.17',
'ivetermHits' => '1.3.6.1.4.1.12532.18',
'iveSAMHits' => '1.3.6.1.4.1.12532.19',
'iveNCHits' => '1.3.6.1.4.1.12532.20',
'meetingHits' => '1.3.6.1.4.1.12532.21',
'meetingCount' => '1.3.6.1.4.1.12532.22',
'logName' => '1.3.6.1.4.1.12532.23',
'iveSwapUtil' => '1.3.6.1.4.1.12532.24',
'diskFullPercent' => '1.3.6.1.4.1.12532.25',
'blockedIPList' => '1.3.6.1.4.1.12532.26',
'ipEntry' => '1.3.6.1.4.1.12532.26.1',
'ipIndex' => '1.3.6.1.4.1.12532.26.1.1',
'ipValue' => '1.3.6.1.4.1.12532.26.1.2',
'logID' => '1.3.6.1.4.1.12532.27',
'logType' => '1.3.6.1.4.1.12532.28',
'logDescription' => '1.3.6.1.4.1.12532.29',
'ivsName' => '1.3.6.1.4.1.12532.30',
'ocspResponderURL' => '1.3.6.1.4.1.12532.31',
'fanDescription' => '1.3.6.1.4.1.12532.32',
'psDescription' => '1.3.6.1.4.1.12532.33',
'raidDescription' => '1.3.6.1.4.1.12532.34',
'clusterName' => '1.3.6.1.4.1.12532.35',
'nodeList' => '1.3.6.1.4.1.12532.36',
'vipType' => '1.3.6.1.4.1.12532.37',
'currentVIP' => '1.3.6.1.4.1.12532.38',
'newVIP' => '1.3.6.1.4.1.12532.39',
'nicEvent' => '1.3.6.1.4.1.12532.40',
'nodeName' => '1.3.6.1.4.1.12532.41',
'iveTemperature' => '1.3.6.1.4.1.12532.42',
'iveVPNTunnels' => '1.3.6.1.4.1.12532.43',
'iveSSLConnections' => '1.3.6.1.4.1.12532.44',
'esapVersion' => '1.3.6.1.4.1.12532.45',
'vipChangeReason' => '1.3.6.1.4.1.12532.46',
'processName' => '1.3.6.1.4.1.12532.47',
'iveTotalSignedInUsers' => '1.3.6.1.4.1.12532.48',
'vpnACLSPercentage' => '1.3.6.1.4.1.12532.49',
'vpnACLSCount' => '1.3.6.1.4.1.12532.50',
'blockedIPv6' => '1.3.6.1.4.1.12532.51',
'iveTraps' => '1.3.6.1.4.1.12532.251',
'iveSAProduct' => '1.3.6.1.4.1.12532.252',
'iveICProduct' => '1.3.6.1.4.1.12532.253',
'iveMAGProduct' => '1.3.6.1.4.1.12532.254',
'iveProductMAG2600' => '1.3.6.1.4.1.12532.254.1',
'iveMAG2600' => '1.3.6.1.4.1.12532.254.1.1',
'iveProductMAG4610' => '1.3.6.1.4.1.12532.254.2',
'iveMAG4610' => '1.3.6.1.4.1.12532.254.2.1',
'iveProductSM160' => '1.3.6.1.4.1.12532.254.3',
'iveMAGSM160' => '1.3.6.1.4.1.12532.254.3.1',
'iveProductSM360' => '1.3.6.1.4.1.12532.254.4',
'iveMAGSM360' => '1.3.6.1.4.1.12532.254.4.1',
'iveVAProduct' => '1.3.6.1.4.1.12532.255',
'iveProductVASPE' => '1.3.6.1.4.1.12532.255.1',
'iveVASPE' => '1.3.6.1.4.1.12532.255.1.1',
'iveProductVADTE' => '1.3.6.1.4.1.12532.255.2',
'iveVADTE' => '1.3.6.1.4.1.12532.255.2.1',
'ivePSAProduct' => '1.3.6.1.4.1.12532.256',
'iveProductPSA300' => '1.3.6.1.4.1.12532.256.1',
'ivePSA300' => '1.3.6.1.4.1.12532.256.1.1',
'iveProductPSA3000' => '1.3.6.1.4.1.12532.256.2',
'ivePSA3000' => '1.3.6.1.4.1.12532.256.2.1',
'iveProductPSA5000' => '1.3.6.1.4.1.12532.256.3',
'ivePSA5000' => '1.3.6.1.4.1.12532.256.3.1',
'iveProductPSA7000f' => '1.3.6.1.4.1.12532.256.4',
'ivePSA7000f' => '1.3.6.1.4.1.12532.256.4.1',
'iveProductPSA7000c' => '1.3.6.1.4.1.12532.256.5',
'ivePSA7000c' => '1.3.6.1.4.1.12532.256.5.1',
'iveProductPSA10000' => '1.3.6.1.4.1.12532.256.6',
'ivePSA10000' => '1.3.6.1.4.1.12532.256.6.1',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'PULSESECURE-PSG-MIB'} = {
};

View file

@ -1,62 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::STORAGEMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'STORAGE-MIB'} = {
url => '',
name => 'STORAGE-MIB',
};
#$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'STORAGE-MIB'} =
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'STORAGE-MIB'} = {
'storage' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14',
'storageProfileStatsTable' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1',
'storageProfileStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1',
'storageProfileOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.1',
'storageProfileId' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.2',
'storageProfileOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.3',
'storageProfileName' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.4',
'storageProfileFileOpenCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.5',
'storageProfileFileCloseCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.6',
'storageProfileFileOpenFailCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.7',
'storageProfileFileWriteCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.8',
'storageProfileFileReadCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.9',
'storageProfileFileAsyncWriteCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.10',
'storageProfileFileAsyncReadCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.11',
'storageProfileAvailableHardDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.12',
'storageProfileUsedHardDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.13',
'storageProfileUsedHardDiskCommonPoolSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.14',
'storageProfileHardDiskAllocationCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.15',
'storageProfileHardDiskCmnPoolAllocationCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.16',
'storageProfileHardDiskAllocationFailCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.17',
'storageProfileAvailableRamDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.18',
'storageProfileUsedRamDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.19',
'storageProfileUsedRamDiskCommonPoolSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.20',
'storageProfileRamDiskAllocationCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.21',
'storageProfileRamDiskCmnPoolAllocationCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.22',
'storageProfileRamDiskAllocationFailCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.1.1.23',
'storageGlobalProfileStatsTable' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2',
'storageGlobalProfileStatsEntry' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1',
'storageGlobalProfileOrgId' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.1',
'storageGlobalProfileId' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.2',
'storageGlobalProfileOrgName' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.3',
'storageGlobalProfileName' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.4',
'storageGlobalProfileFileOpenCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.5',
'storageGlobalProfileFileCloseCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.6',
'storageGlobalProfileFileOpenFailCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.7',
'storageGlobalProfileFileWriteCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.8',
'storageGlobalProfileFileReadCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.9',
'storageGlobalProfileFileAsyncWriteCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.10',
'storageGlobalProfileFileAsyncReadCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.11',
'storageGlobalProfileAvailableHardDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.12',
'storageGlobalProfileUsedHardDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.13',
'storageGlobalProfileHardDiskAllocationCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.14',
'storageGlobalProfileHardDiskAllocationFailCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.15',
'storageGlobalProfileAvailableRamDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.16',
'storageGlobalProfileUsedRamDiskSize' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.17',
'storageGlobalProfileRamDiskAllocationCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.18',
'storageGlobalProfileRamDiskAllocationFailCount' => '1.3.6.1.4.1.42359.2.2.1.2.1.3.14.2.1.19',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'STORAGE-MIB'} = {
};

View file

@ -1,24 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::VORMETRICMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'VORMETRIC-MIB'} = {
url => '',
name => 'VORMETRIC-MIB',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::mib_ids->{'VORMETRIC-MIB'} =
'1.3.6.1.4.1.21513.1';
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'VORMETRIC-MIB'} = {
'vormetric' => '1.3.6.1.4.1.21513',
'version' => '1.3.6.1.4.1.21513.1',
'fingerPrint' => '1.3.6.1.4.1.21513.2',
'serverTime' => '1.3.6.1.4.1.21513.3',
'licenses' => '1.3.6.1.4.1.21513.5',
'serverHA' => '1.3.6.1.4.1.21513.6',
'diskUsage' => '1.3.6.1.4.1.21513.7',
'vmstat' => '1.3.6.1.4.1.21513.8',
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'VORMETRIC-MIB'} = {
};

View file

@ -1,106 +0,0 @@
package Monitoring::GLPlugin::SNMP::MibsAndOids::VRRPMIB;
$Monitoring::GLPlugin::SNMP::MibsAndOids::origin->{'VRRP-MIB'} = {
url => 'ftp://ftp.cisco.com/pub/mibs/v2/VRRP-MIB.my',
name => 'VRRP-MIB'
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::requirements->{'VRRP-MIB'} = [
'SNMPv2-TC-v1-MIB',
];
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'VRRP-MIB'} = {
vrrpMIB => '1.3.6.1.2.1.68',
vrrpNotifications => '1.3.6.1.2.1.68.0',
vrrpTrapNewMaster => '1.3.6.1.2.1.68.0.1',
vrrpTrapAuthFailure => '1.3.6.1.2.1.68.0.2',
vrrpOperations => '1.3.6.1.2.1.68.1',
vrrpNodeVersion => '1.3.6.1.2.1.68.1.1',
vrrpNotificationCntl => '1.3.6.1.2.1.68.1.2',
vrrpOperTable => '1.3.6.1.2.1.68.1.3',
vrrpOperEntry => '1.3.6.1.2.1.68.1.3.1',
vrrpOperVrId => '1.3.6.1.2.1.68.1.3.1.1',
vrrpOperAuthKey => '1.3.6.1.2.1.68.1.3.1.10',
vrrpOperAdvertisementInterval => '1.3.6.1.2.1.68.1.3.1.11',
vrrpOperPreemptMode => '1.3.6.1.2.1.68.1.3.1.12',
vrrpOperVirtualRouterUpTime => '1.3.6.1.2.1.68.1.3.1.13',
vrrpOperProtocol => '1.3.6.1.2.1.68.1.3.1.14',
vrrpOperProtocolDefinition => 'VRRP-MIB::vrrpOperProtocol',
vrrpOperRowStatus => '1.3.6.1.2.1.68.1.3.1.15',
vrrpOperRowStatusDefinition => 'SNMPv2-TC-v1-MIB::RowStatus',
vrrpOperVirtualMacAddr => '1.3.6.1.2.1.68.1.3.1.2',
vrrpOperState => '1.3.6.1.2.1.68.1.3.1.3',
vrrpOperStateDefinition => 'VRRP-MIB::vrrpOperState',
vrrpOperAdminState => '1.3.6.1.2.1.68.1.3.1.4',
vrrpOperAdminStateDefinition => 'VRRP-MIB::vrrpOperAdminState',
vrrpOperPriority => '1.3.6.1.2.1.68.1.3.1.5',
vrrpOperIpAddrCount => '1.3.6.1.2.1.68.1.3.1.6',
vrrpOperMasterIpAddr => '1.3.6.1.2.1.68.1.3.1.7',
vrrpOperPrimaryIpAddr => '1.3.6.1.2.1.68.1.3.1.8',
vrrpOperAuthType => '1.3.6.1.2.1.68.1.3.1.9',
vrrpOperAuthTypeDefinition => 'VRRP-MIB::vrrpOperAuthType',
vrrpAssoIpAddrTable => '1.3.6.1.2.1.68.1.4',
vrrpAssoIpAddrEntry => '1.3.6.1.2.1.68.1.4.1',
vrrpAssoIpAddr => '1.3.6.1.2.1.68.1.4.1.1',
vrrpAssoIpAddrRowStatus => '1.3.6.1.2.1.68.1.4.1.2',
vrrpAssoIpAddrRowStatusDefinition => 'SNMPv2-TC-v1-MIB::RowStatus',
vrrpTrapPacketSrc => '1.3.6.1.2.1.68.1.5',
vrrpTrapAuthErrorType => '1.3.6.1.2.1.68.1.6',
vrrpTrapAuthErrorTypeDefinition => 'VRRP-MIB::vrrpTrapAuthErrorType',
vrrpStatistics => '1.3.6.1.2.1.68.2',
vrrpRouterChecksumErrors => '1.3.6.1.2.1.68.2.1',
vrrpRouterVersionErrors => '1.3.6.1.2.1.68.2.2',
vrrpRouterVrIdErrors => '1.3.6.1.2.1.68.2.3',
vrrpRouterStatsTable => '1.3.6.1.2.1.68.2.4',
vrrpRouterStatsEntry => '1.3.6.1.2.1.68.2.4.1',
vrrpStatsBecomeMaster => '1.3.6.1.2.1.68.2.4.1.1',
vrrpStatsInvalidAuthType => '1.3.6.1.2.1.68.2.4.1.10',
vrrpStatsAuthTypeMismatch => '1.3.6.1.2.1.68.2.4.1.11',
vrrpStatsPacketLengthErrors => '1.3.6.1.2.1.68.2.4.1.12',
vrrpStatsAdvertiseRcvd => '1.3.6.1.2.1.68.2.4.1.2',
vrrpStatsAdvertiseIntervalErrors => '1.3.6.1.2.1.68.2.4.1.3',
vrrpStatsAuthFailures => '1.3.6.1.2.1.68.2.4.1.4',
vrrpStatsIpTtlErrors => '1.3.6.1.2.1.68.2.4.1.5',
vrrpStatsPriorityZeroPktsRcvd => '1.3.6.1.2.1.68.2.4.1.6',
vrrpStatsPriorityZeroPktsSent => '1.3.6.1.2.1.68.2.4.1.7',
vrrpStatsInvalidTypePktsRcvd => '1.3.6.1.2.1.68.2.4.1.8',
vrrpStatsAddressListErrors => '1.3.6.1.2.1.68.2.4.1.9',
vrrpConformance => '1.3.6.1.2.1.68.3',
vrrpMIBCompliances => '1.3.6.1.2.1.68.3.1',
vrrpMIBCompliance => '1.3.6.1.2.1.68.3.1.1',
vrrpMIBGroups => '1.3.6.1.2.1.68.3.2',
vrrpOperGroup => '1.3.6.1.2.1.68.3.2.1',
vrrpStatsGroup => '1.3.6.1.2.1.68.3.2.2',
vrrpTrapGroup => '1.3.6.1.2.1.68.3.2.3',
vrrpNotificationGroup => '1.3.6.1.2.1.68.3.2.4'
};
$Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{'VRRP-MIB'} = {
vrrpOperAdminState => {
'1' => 'up',
'2' => 'down'
},
vrrpOperAuthType => {
'1' => 'noAuthentication',
'2' => 'simpleTextPassword',
'3' => 'ipAuthenticationHeader'
},
vrrpOperProtocol => {
'1' => 'ip',
'2' => 'bridge',
'3' => 'decnet',
'4' => 'other'
},
vrrpOperState => {
'1' => 'initialize',
'2' => 'backup',
'3' => 'master'
},
vrrpTrapAuthErrorType => {
'1' => 'invalidAuthType',
'2' => 'authTypeMismatch',
'3' => 'authFailure'
}
};
1;

View file

@ -1,12 +0,0 @@
package Classes::Arista::Component::DiskSubsystem;
our @ISA = qw(Classes::HOSTRESOURCESMIB::Component::DiskSubsystem);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('HOST-RESOURCES-MIB', [
['storages', 'hrStorageTable', 'Classes::HOSTRESOURCESMIB::Component::DiskSubsystem::Storage', sub { my $o = shift; return ($o->{hrStorageDescr} =~ /^(Log|Core)$/ or $o->{hrStorageType} eq 'hrStorageFixedDisk') } ],
]);
}

View file

@ -1,110 +0,0 @@
package Classes::Barracuda::Component::HaSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub init {
my ($self) = @_;
if ($self->mode =~ /device::ha::role/) {
$self->get_snmp_tables('PHION-MIB', [
['services', 'serverServicesTable', 'Classes::Barracuda::Component::HaSubsystem::Service'],
]);
if (! $self->opts->role()) {
$self->opts->override_opt('role', 'active');
}
}
}
sub check {
my ($self) = @_;
$self->SUPER::check();
#printf "info %s\n", $self->get_info();
$self->add_ok(sprintf "%s node", $self->opts->role());
my $num_services = scalar(@{$self->{services}});
my $num_up_services = scalar(grep { $_->{serverServiceState} eq "started" } @{$self->{services}});
if (! $num_services) {
$self->add_unknown(sprintf "no failover service found. (only %s)",
join(", ", map { $_->{serverServiceName} } @{$self->{services}}));
}
}
package Classes::Barracuda::Component::HaSubsystem::Service;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
my $type_signature = $self->{serverServiceName};
if ($self->{serverServiceName} =~ /^\w+[-_:\/](\w+)/) {
$type_signature = $1;
}
if ($type_signature =~ /FW/) {
$self->{serverServiceType} = "FW";
} elsif ($type_signature =~ /VPN/) {
$self->{serverServiceType} = "VPN";
} else {
$self->{serverServiceType} = "DHCP";
}
}
sub check {
my ($self) = @_;
if ($self->mode =~ /device::ha::role/) {
$self->add_info(sprintf "service %s is %s",
$self->{serverServiceName},
$self->{serverServiceState});
if ($self->opts->role() eq "active") {
if ($self->{serverServiceState} eq "started") {
$self->add_ok();
} elsif ($self->{serverServiceState} eq "stopped") {
$self->add_warning();
} elsif ($self->{serverServiceState} eq "blocked") {
$self->add_critical();
} else {
$self->add_unknown();
}
} else {
if ($self->{serverServiceState} eq "stopped") {
$self->add_ok();
} elsif ($self->{serverServiceState} eq "started") {
$self->add_warning();
} elsif ($self->{serverServiceState} eq "blocked") {
$self->add_critical();
} else {
$self->add_unknown();
}
}
}
}
__END__
Irgendwann 2019....der einzige Unterschied zwischen zwei Clusterpartnern war
die Liste der serverServiceState (bei gleichen serverServiceName)
Sonst nix, absolut nix, beide snmpwalks gleich.
Die Services hiessen SE1FWEXT, SE1FWEXT_FWEXT und SE1FWEXT_VPNEXT
Nach vielem Hin und Her geht die Frage an den Hersteller, wie man den Cluster
ueberwacht. Antwort:
- Cluster OK Grün
o fwext-node1 gibt folgende Werte zurück: Server SE1FWEXT= 1:up Service SE1FWEXT_FWEXT=1:up Service SE1FWEXT_VPNEXT=1:up
o fwext-node2 gibt folgende Werte zurück: Server SE1FWEXT= 1:up Service SE1FWEXT_FWEXT= stopped Service SE1FWEXT_VPNEXT=stopped
- Cluster Warning Gelb
o fwext-node1 gibt folgende Werte zurück: Server SE1FWEXT= 1:up Service SE1FWEXT_FWEXT= stopped oder 0:down Service SE1FWEXT_VPNEXT= stopped oder 0:down
o fwext-node2 gibt folgende Werte zurück: Server SE1FWEXT= 1:up Service SE1FWEXT_FWEXT=1:up Service SE1FWEXT_VPNEXT=1:up
o Oder:
o fwext-node1 gibt folgende Werte zurück: Server SE1FWEXT= 1:up Service SE1FWEXT_FWEXT=1:up Service SE1FWEXT_VPNEXT=1:up
o fwext-node2 gibt folgende Werte zurück: Server SE1FWEXT= 1:up Service SE1FWEXT_FWEXT=0:down Service SE1FWEXT_VPNEXT=0:down
- Cluster Critical Rot
o fwext-node1 gibt folgende Werte zurück: Server SE1FWEXT= 0:down oder 2:block
o Oder:
o fwext-node2 gibt folgende Werte zurück: Server SE1FWEXT= 0:down oder 2:block
Also diese drei Services hart ins Plugin eingebaut.
Irgendwann 2021 sollen weitere Cluster dazukommen. Nur, jetzt heissen die
Services z.b. FZFW009_DH009, FZFW009_FW009 und FZFW009_VPN009.
Schaut so aus, als koenten die Servernamen voellig willkuerlich vergeben werden.
Bleibt nichts anderes uebrig, als nach FW und VPN zu suchen und nach Spuren von DHCP (oder weder FW noch VPN).

View file

@ -1,18 +0,0 @@
package Classes::Bluecat;
our @ISA = qw(Classes::Device);
use strict;
sub init {
my ($self) = @_;
if ($self->{productname} =~ /Bluecat Address Manager/) {
$self->rebless('Classes::Bluecat::AddressManager');
} elsif ($self->{productname} =~ /Bluecat DNS\/DHCP Server/) {
$self->rebless('Classes::Bluecat::DnsDhcpServer');
}
if (ref($self) ne "Classes::Bluecat") {
$self->init();
} else {
$self->no_such_mode();
}
}

View file

@ -1,30 +0,0 @@
package Classes::Bluecat::AddressManager;
our @ISA = qw(Classes::Device);
use strict;
sub init {
my ($self) = @_;
if ($self->mode =~ /device::hardware::health/) {
$self->analyze_and_check_environmental_subsystem("Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem");
} elsif ($self->mode =~ /device::hardware::load/) {
$self->analyze_and_check_cpu_subsystem("Classes::HOSTRESOURCESMIB::Component::CpuSubsystem");
} elsif ($self->mode =~ /device::hardware::memory/) {
$self->analyze_and_check_mem_subsystem("Classes::HOSTRESOURCESMIB::Component::MemSubsystem");
$self->analyze_and_check_jvm_subsystem("Classes::Bluecat::AddressManager::Component::MemSubsystem");
} elsif ($self->mode =~ /device::ha::/) {
$self->analyze_and_check_ha_subsystem("Classes::Bluecat::AddressManager::Component::HaSubsystem");
} elsif ($self->mode =~ /device::mngmt::/) {
$self->analyze_and_check_mgmt_subsystem("Classes::Bluecat::AddressManager::Component::MgmtSubsystem");
} else {
$self->no_such_mode();
}
}
sub pretty_sysdesc {
my ($self, $sysDescr) = @_;
my $sw_version = $self->get_snmp_object('BAM-SNMP-MIB', 'version');
my $start_time = $self->get_snmp_object('BAM-SNMP-MIB', 'startTime');
return sprintf "%s, sw version %s, start time %s",
$sysDescr, $sw_version, scalar localtime $start_time;
}

View file

@ -1,132 +0,0 @@
package Classes::Bluecat::AddressManager::Component::HaSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub init {
my ($self) = @_;
if ($self->mode =~ /device::ha::status/) {
$self->get_snmp_tables('BAM-SNMP-MIB', [
["replications", "replicationStatusTable", 'Classes::Bluecat::AddressManager::Component::HaSubsystem::Replication'],
]);
$self->get_snmp_objects('BAM-SNMP-MIB', (qw(
queueSize replication
replicationNodeStatus replicationAverageLatency
replicationWarningThreshold replicationBreakThreshold
replicationLatencyWarningThreshold replicationLatencyCriticalThreshold
)));
} elsif ($self->mode =~ /device::ha::role/) {
if (! $self->opts->role()) {
$self->opts->override_opt('role', 'primary');
}
$self->get_snmp_objects('BAM-SNMP-MIB', (qw(replicationNodeStatus)));
}
}
sub check {
my ($self) = @_;
if ($self->mode =~ /device::ha::status/) {
foreach (@{$self->{replications}}) {
$_->{replicationLatencyCriticalThreshold} = $self->{replicationLatencyCriticalThreshold};
$_->{replicationLatencyWarningThreshold} = $self->{replicationLatencyWarningThreshold};
$_->check();
}
} elsif ($self->mode =~ /device::ha::role/) {
$self->add_info(sprintf 'ha node status is %s',
$self->{replicationNodeStatus},
);
if ($self->{replicationNodeStatus} eq 'unknown') {
$self->add_message(
defined $self->opts->mitigation() ? $self->opts->mitigation() : WARNING,
'ha was not started');
} else {
if ($self->{replicationNodeStatus} ne $self->opts->role()) {
$self->add_message(
defined $self->opts->mitigation() ? $self->opts->mitigation() : WARNING,
$self->{info});
$self->add_message(
defined $self->opts->mitigation() ? $self->opts->mitigation() : WARNING,
sprintf "expected role %s", $self->opts->role())
} else {
$self->add_ok();
}
}
}
}
package Classes::Bluecat::AddressManager::Component::HaSubsystem::Replication;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
$self->add_info(sprintf '%s node %s has status %s, latency is %.2f',
lc $self->{replicationRole}, $self->{hostname},
lc $self->{replicationHealth}, $self->{currentLatency});
$self->set_thresholds(metric => 'latency_'.lc $self->{replicationRole},
warning => $self->{replicationLatencyWarningThreshold},
critical => $self->{replicationLatencyCriticalThreshold},
);
$self->add_message($self->check_thresholds(
metric => 'latency_'.lc $self->{replicationRole},
value => $self->{currentLatency}));
$self->add_perfdata(
label => 'latency_'.lc $self->{replicationRole},
value => $self->{currentLatency}
);
}
__END__
sdeb-bam-p03.sys.schwarz
root@sdeb-bam-p03:~# snmpwalk -v2c -c "communitypw" 10.201.135.240 .1.3.6.1.4.1.13315.100.210.1.8.2
BAM-SNMP-MIB::replicationNodeStatus.0 = INTEGER: primary(1)
-> hier soll nur das Ergebnis angezeigt werden
root@sdeb-bam-p03:~# snmpwalk -v2c -c "communitypw" 10.201.135.240 .1.3.6.1.4.1.13315.100.210.1.1.1
BAM-SNMP-MIB::version.0 = STRING: 9.0.0
-> hier soll nur das Ergebnis angezeigt werden
#root@sdeb-bam-p03:~# snmpwalk -v2c -c "communitypw" 10.201.135.240 .1.3.6.1.4.1.13315.100.210.1.1.2
#BAM-SNMP-MIB::startTime.0 = STRING: 2020-5-16,2:4:43.216
# uptime -> hier soll nur das Ergebnis angezeigt werden
root@sdeb-bam-p03:~# snmpwalk -v2c -c "communitypw" 10.201.135.240 .1.3.6.1.4.1.13315.100.210.1.8.8.1.4.10.201.135.240
BAM-SNMP-MIB::replicationHealth.10.201.135.240 = INTEGER: Replicating(2)
-> bei Ausgabe 0 und 1 soll Nagios alarm schlagen, 2 bedeutet alles iO
root@sdeb-bam-p03:~# snmpwalk -v2c -c "communitypw" 10.201.135.240 .1.3.6.1.4.1.13315.100.210.1.10.1.0
BAM-SNMP-MIB::lastSuccessfulBackupTime.0 = STRING: 2020-11-11,3:10:35.0
-> hier soll nur das Ergebnis angezeigt werden
KCZ_DDI
root@b0ac987f7n:~# snmpwalk -v2c -c "communitypw" 127.0.0.1 .1.3.6.1.4.1.13315.3.1.1.2.1.1
BCN-DHCPV4-MIB::bcnDhcpv4SerOperState.0 = INTEGER: running(1)
1Running ist alles iO, bei 2,3,4,5 soll Nagios alarm schlagen
root@b0ac987f7n:~# snmpwalk -v2c -c "communitypw" 127.0.0.1 .1.3.6.1.4.1.13315.3.1.2.2.1.1
BCN-DNS-MIB::bcnDnsSerOperState.0 = INTEGER: running(1)
1Running ist alles iO, bei 2,3,4,5 soll Nagios alarm schlagen
Hallo Gerhard,
für Bluecat devices brauchen wir einen ha-status in check_nwc_health.
Die MIBs hängen schon am Ticket dran.
Wichtige informationen wären:
- BAM-SNMP-MIB::replicationNodeStatus.0
- BAM-SNMP-MIB::startTime.0
- BAM-SNMP-MIB::replicationHealth.10.201.135.240
- BAM-SNMP-MIB::lastSuccessfulBackupTime.0
/omd/sites/mon/local/lib/monitoring-plugins/mon/mon_check_snmp -H 10.201.135.240 -P 2c -o .1.3.6.1.4.1.13315.100.210.1.10.1.0 backup
/omd/sites/mon/local/lib/monitoring-plugins/mon/mon_check_snmp -H 10.201.135.240 -P 2c -o .1.3.6.1.4.1.13315.100.210.1.8.8.1.4.10.201.135.240 -C "***" -w 2:2 -c 2:2 replication 240 replicationHealth
/omd/sites/mon/local/lib/monitoring-plugins/mon/mon_check_snmp -H 10.201.135.240 -P 2c -o .1.3.6.1.4.1.13315.100.210.1.8.2.0 -C "***" -w 1:1 -c 1:1 replicatiuon node replicationNodeStatus
/omd/sites/mon/local/lib/monitoring-plugins/mon/mon_check_snmp -H 10.201.135.240 -P 2c -o .1.3.6.1.4.1.13315.100.210.1.1.2.0 -C "***" -s OK
start time
/omd/sites/mon/local/lib/monitoring-plugins/mon/mon_check_snmp -H 10.201.135.240 -P 2c -o .1.3.6.1.4.1.13315.100.210.1.1.1.0 -C "***" -s OK
version

View file

@ -1,30 +0,0 @@
package Classes::Bluecat::AddressManager::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub init {
my ($self) = @_;
$self->get_snmp_objects('BAM-SNMP-MIB', (qw(
freeMemory maxMemory usageThresholdExceeded
)));
$self->{jvm_usage} = 100 - 100 * $self->{freeMemory} / $self->{maxMemory};
}
sub check {
my ($self) = @_;
$self->add_info(sprintf 'jvm mem usage is %.2f%%',
$self->{jvm_usage});
$self->set_thresholds(metric => "jvm_memory_usage",
warning => 80, critical => 90);
$self->add_message($self->check_thresholds(
metric => "jvm_memory_usage",
value => $self->{jvm_usage}));
$self->add_perfdata(
label => 'jvm_memory_usage',
value => $self->{jvm_usage},
uom => '%',
);
}

View file

@ -1,24 +0,0 @@
package Classes::Bluecat::AddressManager::Component::MgmtSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub init {
my ($self) = @_;
$self->get_snmp_objects('BAM-SNMP-MIB', (qw(lastSuccessfulBackupTime)));
$self->{lastSuccessfulBackupAge} = int((time - $self->{lastSuccessfulBackupTime}) / 3600);
}
sub check {
my ($self) = @_;
$self->add_info(sprintf "last successful backup was %d hours ago (%s)",
$self->{lastSuccessfulBackupAge},
scalar localtime $self->{lastSuccessfulBackupTime}
);
$self->set_thresholds(metric => "backup_age",
warning => 24*7,
critical => 24*7*4,
);
$self->add_message($self->check_thresholds(metric => "backup_age",
value => $self->{lastSuccessfulBackupAge}));
}

View file

@ -1,27 +0,0 @@
package Classes::Bluecat::DnsDhcpServer;
our @ISA = qw(Classes::Device);
use strict;
sub init {
my ($self) = @_;
if ($self->mode =~ /device::hardware::health/) {
$self->analyze_and_check_environmental_subsystem("Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem");
} elsif ($self->mode =~ /device::hardware::load/) {
$self->analyze_and_check_cpu_subsystem("Classes::HOSTRESOURCESMIB::Component::CpuSubsystem");
} elsif ($self->mode =~ /device::hardware::memory/) {
$self->analyze_and_check_mem_subsystem("Classes::HOSTRESOURCESMIB::Component::MemSubsystem");
} elsif ($self->mode =~ /device::ha::/) {
$self->analyze_and_check_ha_subsystem("Classes::Bluecat::DnsDhcpServer::Component::HaSubsystem");
} elsif ($self->mode =~ /device::process::/) {
$self->analyze_and_check_process_subsystem("Classes::Bluecat::DnsDhcpServer::Component::ProcessSubsystem");
} else {
$self->no_such_mode();
}
}
sub pretty_sysdesc {
my ($self, $sysDescr) = @_;
my $sw_version = $self->get_snmp_object('BCN-SYSTEM-MIB', 'bcnSysIdOSRelease');
return sprintf "%s, sw version %s", $sysDescr, $sw_version;
}

View file

@ -1,41 +0,0 @@
package Classes::Bluecat::DnsDhcpServer::Component::HaSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub init {
my ($self) = @_;
$self->get_snmp_objects('ADONIS-DNS-MIB', qw(haServiceRunning));
if ($self->mode =~ /device::ha::status/) {
} elsif ($self->mode =~ /device::ha::role/) {
$self->get_snmp_objects('ADONIS-DNS-MIB', qw(haServiceNodeType));
if (! $self->opts->role()) {
$self->opts->override_opt('role', 'active');
}
}
}
sub check {
my ($self) = @_;
if ($self->mode =~ /device::ha::status/) {
if ($self->{haServiceRunning} == 0) {
$self->add_critical_mitigation("HA service is not running");
} else {
$self->add_ok("HA service is running");
}
} elsif ($self->mode =~ /device::ha::role/) {
$self->{haServiceNodeType} = $self->{haServiceNodeType} == 1 ?
"active" : "passive";
if ($self->{haServiceRunning} == 1) {
$self->add_info(sprintf 'ha node type is %s', $self->{haServiceNodeType});
if ($self->opts->role() ne $self->{haServiceNodeType}) {
$self->add_critical_mitigation();
} else {
$self->add_ok();
}
} else {
$self->add_critical_mitigation("HA service is not running");
}
}
}

View file

@ -1,47 +0,0 @@
package Classes::Bluecat::DnsDhcpServer::Component::ProcessSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub init {
my ($self) = @_;
$self->get_snmp_objects('BCN-DNS-MIB', (qw(bcnDnsSerOperState)));
$self->get_snmp_objects('BCN-DHCPV4-MIB', (qw(bcnDhcpv4SerOperState)));
}
sub check {
my ($self) = @_;
if ($self->{bcnDnsSerOperState}) {
$self->add_info(sprintf "dns service is %s", $self->{bcnDnsSerOperState});
$self->add_ok() if $self->{bcnDnsSerOperState} eq "running";
$self->add_critical() if $self->{bcnDnsSerOperState} eq "notRunning";
$self->add_warning() if $self->{bcnDnsSerOperState} eq "starting";
$self->add_warning() if $self->{bcnDnsSerOperState} eq "stopping";
$self->add_critical() if $self->{bcnDnsSerOperState} eq "fault";
} else {
$self->get_snmp_objects('ADONIS-DNS-MIB', (qw(dnsDaemonRunning)));
if (exists $self->{dnsDaemonRunning}) {
$self->add_info(sprintf "dns service is %s",
$self->{dnsDaemonRunning} ? "running" : "not running");
$self->add_ok() if $self->{dnsDaemonRunning} == 0;
$self->add_critical() if $self->{dnsDaemonRunning} == 1;
}
}
if ($self->{bcnDhcpv4SerOperState}) {
$self->add_info(sprintf "dhcp service is %s", $self->{bcnDhcpv4SerOperState});
$self->add_ok() if $self->{bcnDhcpv4SerOperState} eq "running";
$self->add_critical() if $self->{bcnDhcpv4SerOperState} eq "notRunning";
$self->add_warning() if $self->{bcnDhcpv4SerOperState} eq "starting";
$self->add_warning() if $self->{bcnDhcpv4SerOperState} eq "stopping";
$self->add_critical() if $self->{bcnDhcpv4SerOperState} eq "fault";
} else {
$self->get_snmp_objects('ADONIS-DNS-MIB', (qw(dhcpDaemonRunning)));
if (exists $self->{dhcpDaemonRunning}) {
$self->add_info(sprintf "dhcp service is %s",
$self->{dhcpDaemonRunning} ? "running" : "not running");
$self->add_ok() if $self->{dhcpDaemonRunning} == 0;
$self->add_critical() if $self->{dhcpDaemonRunning} == 1;
}
}
}

View file

@ -1,37 +0,0 @@
package Classes::Cisco::AsyncOS::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects('ASYNCOS-MAIL-MIB', (qw(
perCentMemoryUtilization memoryAvailabilityStatus)));
}
sub check {
my ($self) = @_;
$self->add_info('checking memory');
$self->add_info(sprintf 'memory usage is %.2f%%',
$self->{perCentMemoryUtilization});
$self->set_thresholds(warning => 80, critical => 90);
$self->add_message($self->check_thresholds($self->{perCentMemoryUtilization}));
if ($self->{memoryAvailabilityStatus}) {
$self->add_info(sprintf "memoryAvailabilityStatus is %s",
$self->{memoryAvailabilityStatus});
if ($self->{memoryAvailabilityStatus} eq 'memoryShortage') {
$self->add_warning();
$self->set_thresholds(warning => $self->{perCentMemoryUtilization}, critical => 90);
} elsif ($self->{memoryAvailabilityStatus} eq 'memoryFull') {
$self->add_critical();
$self->set_thresholds(warning => 80, critical => $self->{perCentMemoryUtilization});
} else {
$self->add_ok();
}
}
$self->add_perfdata(
label => 'memory_usage',
value => $self->{perCentMemoryUtilization},
uom => '%',
);
}

View file

@ -1,65 +0,0 @@
package Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects("CISCO-LICENSE-MGMT-MIB", qw(clmgmtLicenseDeviceInformation clmgmtLicenseInformation clmgmtLicenseConfiguration));
$self->get_snmp_tables('CISCO-LICENSE-MGMT-MIB', [
['licenses', 'clmgmtLicenseInfoTable', 'Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem::License'],
]);
}
sub check {
my ($self) = @_;
if (! $self->{licenses} eq "false") {
$self->add_ok("licensing is not enabled");
} else {
$self->SUPER::check();
}
}
package Classes::Cisco::CISCOLICENSEMGMTMIB::Component::KeySubsystem::License;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
$self->{clmgmtLicenseValidityPeriodRemainingHuman} = scalar localtime (time + $self->{clmgmtLicenseValidityPeriodRemaining});
$self->{clmgmtLicenseValidityPeriodRemainingDays} =
int($self->{clmgmtLicenseValidityPeriodRemaining} / (3600*24));
}
sub check {
my ($self) = @_;
#$self->{keyDaysUntilExpire} = int($self->{keySecondsUntilExpire} / 86400);
$self->add_info(sprintf "feature %s license type is %s",
$self->{clmgmtLicenseFeatureName},
$self->{clmgmtLicenseType},
);
if ($self->{clmgmtLicenseType} =~ /^permanent/) {
$self->add_ok();
} else {
my $label = lc "expiration_".(my $new = $self->{clmgmtLicenseFeatureName} =~ s/\s+//gr);
$self->set_thresholds(metric => $label,
warning => "7:", critical => "2:");
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{clmgmtLicenseValidityPeriodRemainingDays}));
$self->add_perfdata(label => $label,
value => $self->{clmgmtLicenseValidityPeriodRemainingDays}
);
}
}
__END__
This object identifies type of license. Licenses may have validity period defined in terms of time duration that the license is valid for or it may be defined in terms of actual calendar dates. Subscription licenses are licenses that have validity period defined in terms of calendar dates.
demo(1) - demo(evaluation license) license.
extension(2) - Extension(expiring) license.
gracePeriod(3) - Grace period license.
permanent(4) - permanent license, the license has no expiry date.
paidSubscription(5) - Paid subscription licenses are the licenses which are purchased by customers. These licenses have a start date and end date associated with them.
evaluationSubscription(6)-Evaluation subscription licenses are the trial licenses. These licenses are node locked and it can be obtained only once for an UDI. They are valid based on calendar days. These licenses have a start date and an end date associated with them and are issued once per UDI.
extensionSubscription(7)- Extension subscription licenses are similar to evaluation subscription licenses but these licenses are issued based on customer request. There are no restrictions on the number of licenses available for a UDI.
evalRightToUse(8) - Evaluation Right to use (RTU) license.
rightToUse(9) - Right to use (RTU) license.
permanentRightToUse(10) ? Right To Use license right after it is configured and is valid for the lifetime of the product. This is a Right To Use license which is not in evaluation mode for a limited time.

View file

@ -1,139 +0,0 @@
package Classes::Cisco::CISCOPROCESSMIB::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('CISCO-PROCESS-MIB', [
['cpumems', 'cpmCPUTotalTable', 'Classes::Cisco::CISCOPROCESSMIB::Component::MemSubsystem::Mem', sub { my $o = shift; return exists $o->{cpmCPUMemoryUsed} ? 1 : 0 } ],
]);
}
package Classes::Cisco::CISCOPROCESSMIB::Component::MemSubsystem::Mem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
if (! exists $self->{cpmCPUMemoryUsed}) {
# dann fluigt der ganze scheisdreck weida ohm beim get_snmp_tables
# ausse. mit wos fir am oltn glump das i mi heid wieder oweerchan mou!
return;
}
$self->{cpmCPUTotalIndex} = $self->{flat_indices};
# $self->{cpmCPUTotalPhysicalIndex} = exists $self->{cpmCPUTotalPhysicalIndex} ?
# $self->{cpmCPUTotalPhysicalIndex} : 0;
$self->{entPhysicalName} = $self->get_snmp_object('ENTITY-MIB', 'entPhysicalName', $self->{cpmCPUTotalPhysicalIndex});
# wichtig fuer gestacktes zeugs, bei dem entPhysicalName doppelt und mehr vorkommen kann
# This object is a user-assigned asset tracking identifier for the physical entity
# as specified by a network manager, and provides non-volatile storage of this
# information. On the first instantiation of an physical entity, the value of
# entPhysicalAssetID associated with that entity is set to the zero-length string.
# ...
# If write access is implemented for an instance of entPhysicalAssetID, and a value
# is written into the instance, the agent must retain the supplied value in the
# entPhysicalAssetID instance associated with the same physical entity for as long
# as that entity remains instantiated. This includes instantiations across all
# re-initializations/reboots of the network management system, including those
# which result in a change of the physical entity's entPhysicalIndex value.
$self->{entPhysicalAssetID} = $self->get_snmp_object('ENTITY-MIB', 'entPhysicalAssetID', $self->{cpmCPUTotalPhysicalIndex});
$self->{entPhysicalDescr} = $self->get_snmp_object('ENTITY-MIB', 'entPhysicalDescr', $self->{cpmCPUTotalPhysicalIndex});
$self->{name} = $self->{entPhysicalName} || $self->{entPhysicalDescr};
# letzter Ausweg, weil auch alle drei get_snmp_object fehlschlagen koennen
$self->{name} ||= $self->{cpmCPUTotalIndex};
if ($self->{cpmCPUMemoryHCUsed} and $self->{cpmCPUMemoryHCFree}) {
$self->{cpmCPUMemoryHCTotal} = $self->{cpmCPUMemoryHCUsed} + $self->{cpmCPUMemoryHCFree};
$self->{usageu} = 100 * $self->{cpmCPUMemoryHCUsed} /
$self->{cpmCPUMemoryHCTotal};
$self->{usagec} = 100 * $self->{cpmCPUMemoryHCCommitted} /
$self->{cpmCPUMemoryHCTotal};
} else {
$self->{cpmCPUMemoryLCUsed} = $self->{cpmCPUMemoryUsedOvrflw} ?
($self->{cpmCPUMemoryUsedOvrflw} << 32) + ($self->{cpmCPUMemoryUsed}) :
$self->{cpmCPUMemoryUsed};
$self->{cpmCPUMemoryLCFree} = $self->{cpmCPUMemoryFreeOvrflw} ?
($self->{cpmCPUMemoryFreeOvrflw} << 32) + ($self->{cpmCPUMemoryFree}) :
$self->{cpmCPUMemoryFree};
$self->{cpmCPUMemoryLCTotal} = $self->{cpmCPUMemoryLCUsed} + $self->{cpmCPUMemoryLCFree};
if (exists $self->{cpmCPUMemoryCommitted}) {
$self->{cpmCPUMemoryLCCommitted} = $self->{cpmCPUMemoryCommittedOvrflw} ?
($self->{cpmCPUMemoryCommittedOvrflw} << 32) + ($self->{cpmCPUMemoryCommitted}) :
$self->{cpmCPUMemoryCommitted};
$self->{usagec} = 100 * $self->{cpmCPUMemoryLCCommited} /
$self->{cpmCPUMemoryLCTotal};
}
$self->{usageu} = 100 * $self->{cpmCPUMemoryLCUsed} /
$self->{cpmCPUMemoryLCTotal};
}
# immer den kleineren wert. ist nicht ganz korrekt, aber so muss ich mich
# am wenigsten rumaergern.
if (exists $self->{usagec} and $self->{usagec} < $self->{usageu}) {
$self->{usage} = $self->{usagec};
} else {
$self->{usage} = $self->{usageu};
}
return $self;
}
sub check {
my ($self) = @_;
$self->add_info(sprintf '%s memory usage is %.2f%%',
$self->{name}, $self->{usage});
my $label = 'cpumem_'.$self->{name}.'_usage';
$self->set_thresholds(
metric => $label,
warning => 80,
critical => 90,
);
$self->add_message($self->check_thresholds(
metric => $label,
value => $self->{usage},
));
$self->add_perfdata(
label => $label,
value => $self->{usage},
uom => '%',
);
}
__END__
https://thwack.solarwinds.com/t5/NPM-Feature-Requests/Additional-Cisco-quot-CPU-Memory-quot-Poller-for-Cisco-ASR/idc-p/560968
Memory (kB)
Slot Status Total Used (Pct) Free (Pct) Committed (Pct)
RP0 Healthy 3969316 3849744 (97%) 119572 ( 3%) 2582596 (65%)
In this output, the "Committed" output is what we recommend focusing on, as this represents what memory processes have actually requested from the kernel. The "Used" value, on the other hand, appears high because this includes the Linux kernel cache: this "extra" memory is used by the kernel to store bits of frequently used data, but that memory can be freed at any time if needed. From the perspective of committed memory, this router is not low on memory and appears to be operating normally.
We frequently see cases inquiring about the misleadingly high value in the "Used" column. As a result, this is being adjusted in later code to provide a better representation of what memory is actually available for use. Additionally, two bugs have been filled to document the behavior, these are CSCuc40262 and CSCuv32343:
https://www.cisco.com/c/de_de/support/docs/ip/simple-network-management-protocol-snmp/118901-technote-snmp-00.html
ASR1K#show platform software status control-processor brief | s Memory
Memory (kB)
Slot Status Total Used(Pct) Free (Pct) Committed (Pct)
RP0 Healthy 3874504 2188404 (56%) 1686100 (44%) 2155996 (56%)
ESP0 Healthy 969088 590880 (61%) 378208 (39%) 363840 (38%)
SIP0 Healthy 471832 295292 (63%) 176540 (37%) 288540 (61%)
(cpmCPUMemoryHCUsed)
1.3.6.1.4.1.9.9.109.1.1.1.1.17.2 = Counter64: 590880 -ESP Used memory
1.3.6.1.4.1.9.9.109.1.1.1.1.17.3 = Counter64: 2188404 -RP used memory
1.3.6.1.4.1.9.9.109.1.1.1.1.17.4 = Counter64: 295292 -SIP used memory
(cpmCPUMemoryHCFree)
1.3.6.1.4.1.9.9.109.1.1.1.1.19.2 = Counter64: 378208 -ESP free Memory
1.3.6.1.4.1.9.9.109.1.1.1.1.19.3 = Counter64: 1686100 -RP free Memory
1.3.6.1.4.1.9.9.109.1.1.1.1.19.4 = Counter64: 176540 -SIP free memory
cpmCPUMemoryHCCommitted)
1.3.6.1.4.1.9.9.109.1.1.1.1.29.2 = Counter64: 363840 -ESP Committed Memory
1.3.6.1.4.1.9.9.109.1.1.1.1.29.3 = Counter64: 2155996 -RP Committed Memory
1.3.6.1.4.1.9.9.109.1.1.1.1.29.4 = Counter64: 288540 -SIP committed memory
stimmt alles wunderbar zusammen, total = used+free
Und in der Realitaet kommt dann so eine Scheisse raus wie
cpmCPUMemoryHCCommitted: 4469120
cpmCPUMemoryHCFree: 171404
cpmCPUMemoryHCKernelReserved: 0
cpmCPUMemoryHCUsed: 3786752
Bravo, bravoooo! Und bei auf cpmCPUMemoryHCCommitted basierender Usage gibts dann > 100%
Und zwar ausfgerechnet bei dem, der den ganzen Stackswitchmemorydreck haben wollte.

View file

@ -1,331 +0,0 @@
package Classes::Cisco::CISCORTTMONMIB::Component::RttSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables("CISCO-RTTMON-MIB", [
['rttmons', 'rttMonCtrlAdminTable+rttMonCtrlOperTable', 'Classes::Cisco::CISCORTTMONMIB::Component::RttSubsystem::Probe'],
['lastrtts', 'rttMonLatestRttOperTable', 'Monitoring::GLPlugin::SNMP::TableItem'],
['rttechos', 'rttMonEchoAdminTable', 'Monitoring::GLPlugin::SNMP::TableItem'],
['latestjitters', 'rttMonLatestJitterOperTable', 'Monitoring::GLPlugin::SNMP::TableItem'],
]);
# bei manchen geraeten kommt nach SNMPv2-SMI::enterprises.9.9.42.1.3.3.1.2
# nichts mehr. (nach rttMonStatsTotalsTable)
$self->merge_tables("rttmons", ("lastrtts", "rttechos", "latestjitters"));
@{$self->{rttmons}} = grep {
$self->filter_name($_->{name});
} map {
$_->_finish(); $_;
} grep {
($_->{rttMonCtrlAdminRttType} =~ /^(echo|pathEcho|jitter)$/) ? 1 : 0;
} @{$self->{rttmons}};
}
package Classes::Cisco::CISCORTTMONMIB::Component::RttSubsystem::LatestJitter;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
sub finish {
my ($self) = @_;
}
sub check {
my ($self) = @_;
}
package Classes::Cisco::CISCORTTMONMIB::Component::RttSubsystem::Probe;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
sub _finish {
# kein finish(), da erst merge_tables laufen muss
my ($self) = @_;
$self->{rttMonEchoAdminSourceAddress} =
$self->unhex_ip($self->{rttMonEchoAdminSourceAddress});
$self->{rttMonEchoAdminTargetAddress} =
$self->unhex_ip($self->{rttMonEchoAdminTargetAddress});
if ($self->{rttMonCtrlAdminLongTag}) {
$self->{name} = $self->{rttMonCtrlAdminLongTag}
} elsif ($self->{rttMonCtrlAdminTag}) {
$self->{name} = $self->{rttMonCtrlAdminTag}
} elsif ($self->{rttMonEchoAdminTargetAddress}) {
$self->{name} = "target_".$self->{rttMonEchoAdminTargetAddress}
} else {
$self->{name} = $self->{flat_indices};
}
if (defined $self->{rttMonLatestJitterOperNumOfRTT}) {
# War ja klar, dass in irgendeiner Besenkammer noch so alte Kisten
# rumstehen, die keine 64bittige RTTSum kennen.
# Cisco Internetwork Operating System Software ^M IOS (tm) GS Software (C12KPRP-K4P-M), Version 12.0(32)SY7, RELEASE SOFTWARE (fc1)^M Technical Support: http://www.cisco.com/techsupport^M Copyright (c) 1986-2008 by cisco Systems, Inc.^M Compiled Mon 29-Sep-08
$self->{rttMonLatestJitterOperRTTSumHigh} ||= 0;
$self->{rttMonLatestJitterOperRTTSum2High} ||= 0;
#
$self->{rttMonLatestJitterOperRTTSum} =
$self->{rttMonLatestJitterOperRTTSum} +
($self->{rttMonLatestJitterOperRTTSumHigh} << 32);
$self->{rttMonLatestJitterOperRTTSum2} =
$self->{rttMonLatestJitterOperRTTSum2} +
($self->{rttMonLatestJitterOperRTTSum2High} << 32);
$self->{rttMonLatestJitterAvgRTT} =
$self->{rttMonLatestJitterOperNumOfRTT} ?
$self->{rttMonLatestJitterOperRTTSum} /
$self->{rttMonLatestJitterOperNumOfRTT} : 0;
$self->{rttMonLatestJitterVarianceRTT} =
$self->{rttMonLatestJitterOperNumOfRTT} > 1 ?
$self->{rttMonLatestJitterOperRTTSum2} /
($self->{rttMonLatestJitterOperNumOfRTT} - 1) : 0;
$self->{rttMonLatestJitterStdDevRTT} =
$self->{rttMonLatestJitterOperNumOfRTT} > 1 ?
sqrt($self->{rttMonLatestJitterOperRTTSum2} /
($self->{rttMonLatestJitterOperNumOfRTT} - 1)) : 0;
$self->{rttMonLatestJitterOperMOS} /= 100;
# https://en.wikipedia.org/wiki/Mean_opinion_score
# Rating Label
# 5 Excellent
# 4 Good
# 3 Fair
# 2 Poor
# 1 Bad
$self->{rttMonLatestJitterOperAvgPositivesSD} =
$self->{rttMonLatestJitterOperNumOfPositivesSD} ?
$self->{rttMonLatestJitterOperSumOfPositivesSD} /
$self->{rttMonLatestJitterOperNumOfPositivesSD} : 0;
$self->{rttMonLatestJitterOperAvgNegativesSD} =
$self->{rttMonLatestJitterOperNumOfNegativesSD} ?
-1 * $self->{rttMonLatestJitterOperSumOfNegativesSD} /
$self->{rttMonLatestJitterOperNumOfNegativesSD} : 0;
$self->{rttMonLatestJitterOperAvgPositivesDS} =
$self->{rttMonLatestJitterOperNumOfPositivesDS} ?
$self->{rttMonLatestJitterOperSumOfPositivesDS} /
$self->{rttMonLatestJitterOperNumOfPositivesDS} : 0;
$self->{rttMonLatestJitterOperAvgNegativesDS} =
$self->{rttMonLatestJitterOperNumOfNegativesDS} ?
- 1 * $self->{rttMonLatestJitterOperSumOfNegativesDS} /
$self->{rttMonLatestJitterOperNumOfNegativesDS} : 0;
$self->{rttMonLatestJitterOperPacketLossCount} =
$self->{rttMonLatestJitterOperPacketLossSD} +
$self->{rttMonLatestJitterOperPacketLossDS} +
$self->{rttMonLatestJitterOperPacketMIA};
}
}
sub check {
my ($self) = @_;
if ($self->{rttMonCtrlOperState} ne "active") {
$self->add_info(sprintf "%s probe %s has oper status %s",
$self->{rttMonCtrlAdminRttType},
$self->{name},
$self->{rttMonCtrlOperState},
);
$self->add_unknown();
return;
}
if ($self->{rttMonCtrlAdminRttType} eq "jitter") {
$self->add_info(sprintf "%s probe %s (target %s, codec %s) has status %s",
$self->{rttMonCtrlAdminRttType},
$self->{name},
$self->{rttMonEchoAdminTargetAddress},
$self->{rttMonEchoAdminCodecType},
$self->{rttMonLatestRttOperSense});
} else {
$self->add_info(sprintf "%s probe %s has status %s",
$self->{rttMonCtrlAdminRttType},
$self->{name},
$self->{rttMonLatestRttOperSense});
}
if ($self->{rttMonCtrlOperConnectionLostOccurred} eq "true") {
$self->add_info(sprintf "%s probe %s lost connection",
$self->{rttMonCtrlAdminRttType},
$self->{name},
);
$self->add_warning();
return;
}
if ($self->{rttMonCtrlOperOverThresholdOccurred} eq "true") {
$self->add_info(sprintf "%s probe %s is over threshold",
$self->{rttMonCtrlAdminRttType},
$self->{name},
);
$self->add_warning();
return;
}
if ($self->{rttMonCtrlOperTimeoutOccurred} eq "true") {
$self->add_info(sprintf "%s probe %s timed out",
$self->{rttMonCtrlAdminRttType},
$self->{name},
);
$self->add_warning();
return;
}
if ($self->{rttMonCtrlOperVerifyErrorOccurred} eq "true") {
$self->add_info(sprintf "%s probe %s shows data corruption",
$self->{rttMonCtrlAdminRttType},
$self->{name},
);
$self->add_warning();
return;
}
if ($self->{rttMonCtrlAdminRttType} eq "jitter") {
$self->check_jitter();
}
$self->add_ok() if ! $self->check_messages();
}
sub check_jitter {
my ($self) = @_;
if ($self->{rttMonLatestRttOperSense} eq "ok") {
$self->add_ok();
} else {
$self->add_critical();
}
my $label = $self->{name}."_".$self->{rttMonCtrlAdminRttType}."_rtt_completion_time";
$self->add_perfdata(label =>
$label,
value => $self->{rttMonLatestRttOperCompletionTime},
uom => "ms",
);
if (defined $self->{rttMonLatestJitterOperNumOfRTT}) {
$self->add_info(sprintf "%s latest jitter status is %s",
$self->{name},
$self->{rttMonLatestJitterOperSense}
);
if ($self->{rttMonLatestJitterOperSense} ne "ok") {
$self->add_critical();
}
if ($self->{rttMonLatestJitterOperNTPState} ne "sync") {
$self->add_warning(sprintf "%s NTP not in sync", $self->{name});
}
$label = $self->{name}."_"."latest_jitter_rtt_avg";
$self->add_info(sprintf "average jitter RTT was %.2fms",
$self->{rttMonLatestJitterAvgRTT},
);
$self->set_thresholds(metric => $label,
warning => "",
critical => 5000,
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterAvgRTT}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterAvgRTT},
uom => "ms",
min => $self->{rttMonLatestJitterOperRTTMin},
max => $self->{rttMonLatestJitterOperRTTMax},
);
$label = $self->{name}."_"."latest_jitter_rtt_variance";
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterVarianceRTT},
);
$label = $self->{name}."_"."latest_jitter_rtt_stddev";
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterStdDevRTT},
);
$label = $self->{name}."_"."jitter_mos";
$self->add_info(sprintf "MOS value was %.2f",
$self->{rttMonLatestJitterOperMOS},
);
$self->set_thresholds(metric => $label,
warning => "4:",
critical => "3.5:",
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperMOS}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperMOS},
min => 0,
max => 6,
);
$label = $self->{name}."_"."jitter_icpif";
$self->add_info(sprintf "ICPIF value was %.2f",
$self->{rttMonLatestJitterOperICPIF},
);
$self->set_thresholds(metric => $label,
warning => 20,
critical => 30,
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperICPIF}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperICPIF},
min => 0,
max => 60,
);
$label = $self->{name}."_"."pos_jitter_sd";
$self->add_info(sprintf "Avg. positive jitter from source to dest was %.2f",
$self->{rttMonLatestJitterOperSumOfPositivesSD},
);
$self->set_thresholds(metric => $label,
warning => "",
critical => 50,
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperSumOfPositivesSD}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperSumOfPositivesSD},
);
$label = $self->{name}."_"."neg_jitter_sd";
$self->add_info(sprintf "Avg. negative jitter from source to dest was %.2f",
$self->{rttMonLatestJitterOperSumOfNegativesSD},
);
$self->set_thresholds(metric => $label,
warning => "",
critical => "-50:",
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperSumOfNegativesSD}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperSumOfNegativesSD},
);
$label = $self->{name}."_"."pos_jitter_ds";
$self->add_info(sprintf "Avg. positive jitter from source to dest was %.2f",
$self->{rttMonLatestJitterOperSumOfPositivesDS},
);
$self->set_thresholds(metric => $label,
warning => "",
critical => 50,
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperSumOfPositivesDS}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperSumOfPositivesDS},
);
$label = $self->{name}."_"."neg_jitter_ds";
$self->add_info(sprintf "Avg. negative jitter from source to dest was %.2f",
$self->{rttMonLatestJitterOperSumOfNegativesDS},
);
$self->set_thresholds(metric => $label,
warning => "",
critical => "-50:",
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperSumOfNegativesDS}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperSumOfNegativesDS},
);
$label = $self->{name}."_"."jitter_packet_loss_count";
$self->add_info(sprintf "Avg. jitter packet loss was %d",
$self->{rttMonLatestJitterOperPacketLossCount},
);
$self->set_thresholds(metric => $label,
warning => 0,
critical => 0,
);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{rttMonLatestJitterOperPacketLossCount}));
$self->add_perfdata(label => $label,
value => $self->{rttMonLatestJitterOperPacketLossCount},
);
}
}

View file

@ -1,150 +0,0 @@
package Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects("CISCO-SMART-LIC-MIB", qw(ciscoSlaEnabled));
$self->get_snmp_tables('CISCO-SMART-LIC-MIB', [
['keys', 'ciscoSlaEntitlementInfoTable', 'Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem::Entitlement'],
['keys', 'ciscoSlaRegistrationStatusInfoTable', 'Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem::RegStatusInfo', sub { shift->{valid} }],
['keys', 'ciscoSlaAuthorizationInfoTable', 'Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem::AuthInfo', sub { shift->{valid} }],
]);
}
sub check {
my ($self) = @_;
if ($self->{ciscoSlaEnabled} eq "false") {
$self->add_ok("smart licensing is not enabled");
} else {
$self->SUPER::check();
}
}
package Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem::Entitlement;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
#$self->{keyDaysUntilExpire} = int($self->{keySecondsUntilExpire} / 86400);
$self->add_info(sprintf "entitlement %s for feature %s mode is %s",
$self->{ciscoSlaEntitlementTag},
$self->{ciscoSlaEntitlementFeatureName},
$self->{ciscoSlaEntitlementEnforceMode}
);
if ($self->{ciscoSlaEntitlementEnforceMode} =~ /(outOfCompliance|gracePeriodExpired|disabled)/) {
$self->add_critical();
} elsif ($self->{ciscoSlaEntitlementEnforceMode} =~ /(waiting|evaluationExpired|gracePeriod)/) {
$self->add_warning();
} else {
$self->add_ok();
}
}
package Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem::RegStatusInfo;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
$self->{valid} = exists $self->{ciscoSlaRegistrationStatus} ? 1 : 0;
return if ! $self->{valid};
foreach (qw(ciscoSlaNextCertificateExpireTime ciscoSlaRegisterInitTime ciscoSlaRenewNextRetryTime)) {
$self->{$_."Human"} = scalar localtime $self->{$_}
if exists $self->{$_} and $self->{$_} =~ /^\d+$/;
}
}
sub check {
my ($self) = @_;
$self->add_info(sprintf "Registration status is %s", $self->{ciscoSlaRegistrationStatus});
if ($self->{ciscoSlaRegistrationStatus} =~ /(notRegistered|registrationFailed)/ ) {
$self->add_warning();
}
if ($self->{ciscoSlaRegisterSuccess} and
$self->{ciscoSlaRegisterSuccess} ne "true" ) {
$self->add_warning(sprintf "registration failed with %s", $self->{ciscoSlaRegisterFailureReason});
}
}
package Classes::Cisco::CISCOSMARTLICMIB::Component::KeySubsystem::AuthInfo;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
$self->{valid} = exists $self->{ciscoSlaAuthComplianceStatus} ? 1 : 0;
return if ! $self->{valid};
foreach (qw(ciscoSlaAuthRenewTime ciscoSlaAuthExpireTime ciscoSlaAuthRenewNextRetryTime ciscoSlaAuthRenewInitTime)) {
$self->{$_."Human"} = scalar localtime $self->{$_}
if exists $self->{$_} and $self->{$_} =~ /^\d+$/;
}
$self->{ciscoSlaAuthExpireTimeDays} =
int(($self->{ciscoSlaAuthExpireTime} - time) / (3600*24));
$self->{ciscoSlaAuthExpireTimeDays} =
$self->{ciscoSlaAuthExpireTimeDays} < 0 ?
0 : $self->{ciscoSlaAuthExpireTimeDays};
$self->{ciscoSlaAuthEvalPeriodLeftDays} =
int(($self->{ciscoSlaAuthEvalPeriodLeft} - time) / (3600*24));
$self->{ciscoSlaAuthEvalPeriodLeftDays} =
$self->{ciscoSlaAuthEvalPeriodLeftDays} < 0 ?
0 : $self->{ciscoSlaAuthEvalPeriodLeftDays};
if ($self->{ciscoSlaAuthOOCStartTime} > 0) {
$self->{ciscoSlaAuthOOCStartTimeDays} =
int((time - $self->{ciscoSlaAuthExpireTime}) / (3600*24));
} else {
$self->{ciscoSlaAuthOOCStartTimeDays} = 0;
}
}
sub check {
my ($self) = @_;
$self->add_info(sprintf "compliance status is %s",
$self->{ciscoSlaAuthComplianceStatus});
if ($self->{ciscoSlaAuthComplianceStatus} =~ /AUTHORIZED/) {
# STRING: "AUTHORIZED"
# STRING: "AUTHORIZED - RESERVED" scheint der beste Status von allen zu sein
$self->add_ok();
} else {
$self->add_critical();
}
if ($self->{ciscoSlaAuthOOCStartTime}) {
$self->add_critical(
sprintf "smart agent entered out of compliance %d days ago",
$self->{ciscoSlaAuthOOCStartTimeDays});
}
if ($self->{ciscoSlaAuthComplianceStatus} ne "AUTHORIZED - RESERVED") {
my $label = "sla_remaining_days";
$self->set_thresholds(metric => $label,
warning => "7:", critical => "2:");
$self->add_info(sprintf "authorization will expire in %d days",
$self->{ciscoSlaAuthExpireTimeDays})
if $self->{ciscoSlaAuthExpireTimeDays};
$self->add_info("authorization has expired")
if ! $self->{ciscoSlaAuthExpireTimeDays};
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{ciscoSlaAuthExpireTimeDays}));
$self->add_perfdata(label => $label,
value => $self->{ciscoSlaAuthExpireTimeDays});
}
if ($self->{ciscoSlaAuthEvalPeriodInUse} and
$self->{ciscoSlaAuthEvalPeriodInUse} eq "true") {
my $label = "eval_remaining_days";
$self->set_thresholds(metric => $label,
warning => "7:", critical => "2:");
$self->add_info(sprintf "evaluation will expire in %d days",
$self->{ciscoSlaAuthEvalPeriodLeftDays})
if $self->{ciscoSlaAuthEvalPeriodLeftDays};
$self->add_info("evaluation has expired")
if ! $self->{ciscoSlaAuthEvalPeriodLeftDays};
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{ciscoSlaAuthEvalPeriodLeftDays}));
$self->add_perfdata(label => $label,
value => $self->{ciscoSlaAuthEvalPeriodLeftDays});
}
}

View file

@ -1,42 +0,0 @@
package Classes::Cisco::IOS::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
if ($self->implements_mib('CISCO-ENHANCED-MEMPOOL-MIB')) {
$self->analyze_and_check_mem_subsystem("Classes::Cisco::CISCOENHANCEDMEMPOOLMIB::Component::MemSubsystem");
if (! exists $self->{components}->{mem_subsystem} ||
scalar(@{$self->{components}->{mem_subsystem}->{mems}}) == 0) {
# satz mix x....
# der hier: Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.03.02SE RELEASE SOFTWARE (fc2)
# hat nicht mehr zu bieten als eine einzige oid
# cempMemBufferNotifyEnabled .1.3.6.1.4.1.9.9.221.1.2.1.0 = INTEGER: 2
# deshalb:
$self->analyze_and_check_mem_subsystem("Classes::Cisco::CISCOMEMORYPOOLMIB::Component::MemSubsystem");
}
} else {
$self->analyze_and_check_mem_subsystem("Classes::Cisco::CISCOMEMORYPOOLMIB::Component::MemSubsystem");
}
if ($self->implements_mib('CISCO-STACKWISE-MIB') and
$self->implements_mib('CISCO-STACKWISE-MIB')) {
# bei stacks, bestehend aus mehreren switches, wuenschen sich admins
# deren individuelle speichermetriken zu sehen. enhanced-mempool, bzw.
# der fallback auf memory-pool, der bei stacks vorkommt, gibt es lediglich
# einen globalen wert.
# die sind das von solarwinds so gewohnt, welches aber neuerdings nicht
# mehr ganz so angesagt ist.
#
# und gleich wieder der naechste dreck am 27.1.21, bei einem switch wird
# 105% usage gemeldet. der stack besteht nur aus einem switch, daher
# lassen wir das mit den per-node-memories hier bleiben.
$self->get_snmp_tables("CISCO-STACKWISE-MIB", [
['switches', 'cswSwitchInfoTable', 'Classes::Cisco::CISCOSTACKWISEMIB::Component::StackSubsystem::Switch', undef, ["cswSwitchNumCurrent"]],
]);
if (scalar(@{$self->{switches}}) > 1) {
$self->analyze_and_check_mem_subsystem("Classes::Cisco::CISCOPROCESSMIB::Component::MemSubsystem");
}
delete $self->{switches};
}
}

View file

@ -1,24 +0,0 @@
package Classes::Fortigate::Component::VpnSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self, %params) = @_;
my $type = 0;
$self->get_snmp_objects('FORTINET-FORTIGATE-MIB', (qw(
fgSysSesCount)));
}
sub check {
my ($self) = @_;
my $errorfound = 0;
$self->add_info('checking vpn sessions');
$self->add_info(sprintf '%u vpn sessions', $self->{fgSysSesCount});
$self->set_thresholds(warning => 25000, critical => 50000);
$self->add_message($self->check_thresholds($self->{fgSysSesCount}));
$self->add_perfdata(
label => 'vpn_session_count',
value => $self->{fgSysSesCount},
);
}

View file

@ -1,30 +0,0 @@
package Classes::HP::Aruba;
our @ISA = qw(Classes::HP);
use strict;
sub init {
my ($self) = @_;
if ($self->mode =~ /device::hardware::health/) {
$self->analyze_and_check_environmental_subsystem("Classes::HP::Aruba::Component::EnvironmentalSubsystem");
if ($self->implements_mib("iiENTITY-SENSOR-MIB")) {
$self->analyze_and_check_environmental_subsystem("Classes::ENTITYSENSORMIB::Component::EnvironmentalSubsystem");
}
$self->analyze_and_check_disk_subsystem("Classes::HOSTRESOURCESMIB::Component::DiskSubsystem");
$self->reduce_messages_short('environmental hardware working fine');
} elsif ($self->mode =~ /device::hardware::load/) {
if ($self->implements_mib("ARUBAWIRED-VSF-MIB")) {
$self->analyze_and_check_cpu_subsystem("Classes::HP::Aruba::Component::CpuSubsystem");
} else {
$self->analyze_and_check_cpu_subsystem("Classes::HOSTRESOURCESMIB::Component::CpuSubsystem");
}
} elsif ($self->mode =~ /device::hardware::memory/) {
if ($self->implements_mib("ARUBAWIRED-VSF-MIB")) {
$self->analyze_and_check_cpu_subsystem("Classes::HP::Aruba::Component::CpuSubsystem");
} else {
$self->analyze_and_check_mem_subsystem("Classes::HOSTRESOURCESMIB::Component::MemSubsystem");
}
} else {
$self->no_such_mode();
}
}

View file

@ -1,40 +0,0 @@
package Classes::HP::Aruba::Component::CpuSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('ARUBAWIRED-VSF-MIB', [
['members', 'arubaWiredVsfCpuberTable', 'Classes::HP::Aruba::Component::CpuSubsystem::Cpu'],
]);
}
sub check {
my ($self) = @_;
$self->add_info('checking cpus');
if (scalar (@{$self->{members}}) == 0) {
} else {
foreach (@{$self->{members}}) {
$_->check();
}
}
}
package Classes::HP::Aruba::Component::CpuSubsystem::Cpu;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
$self->add_info(sprintf 'cpu %s usage is %.2f',
$self->{flat_indices}, $self->{usage});
$self->set_thresholds(warning => 80, critical => 90);
$self->add_message($self->check_thresholds($self->{usage}));
$self->add_perfdata(
label => 'cpu'.$self->{flat_indices}.'_usage',
value => $self->{arubaWiredVsfMemberCpuUtil},
uom => '%',
);
}

View file

@ -1,30 +0,0 @@
package Classes::HP::Aruba::Component::EnvironmentalSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->{powersupply_subsystem} =
Classes::HP::Aruba::Component::PowersupplySubsystem->new();
$self->{fan_subsystem} =
Classes::HP::Aruba::Component::FanSubsystem->new();
$self->{temperature_subsystem} =
Classes::HP::Aruba::Component::TemperatureSubsystem->new();
}
sub check {
my ($self) = @_;
$self->{powersupply_subsystem}->check();
$self->{fan_subsystem}->check();
$self->{temperature_subsystem}->check();
$self->reduce_messages("hardware working fine");
}
sub xdump {
my ($self) = @_;
$self->{powersupply_subsystem}->dump();
$self->{fan_subsystem}->dump();
$self->{temperature_subsystem}->dump();
}

View file

@ -1,31 +0,0 @@
package Classes::HP::Aruba::Component::FanSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('ARUBAWIRED-FAN-MIB', [
['fans', 'arubaWiredFanTable', 'Classes::HP::Aruba::Component::FanSubsystem::Fan'],
]);
}
package Classes::HP::Aruba::Component::FanSubsystem::Fan;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
$self->add_info(sprintf 'fan %s/%s status is %s',
$self->{flat_indices},
$self->{arubaWiredFanName},
$self->{arubaWiredFanState});
if ($self->{arubaWiredFanState} eq 'ok') {
$self->add_ok();
} else {
$self->add_critical();
}
my $label = sprintf "fan_%s_rpm", $self->{flat_indices};
$self->add_perfdata(label => $label,
value => $self->{arubaWiredFanRPM},
);
}

View file

@ -1,42 +0,0 @@
package Classes::HP::Aruba::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('ARUBAWIRED-VSF-MIB', [
['members', 'arubaWiredVsfMemberTable', 'Classes::HP::Aruba::Component::MemSubsystem::Member'],
]);
}
sub check {
my ($self) = @_;
$self->add_info('checking memory');
if (scalar (@{$self->{members}}) == 0) {
} else {
foreach (@{$self->{members}}) {
$_->check();
}
}
}
package Classes::HP::Aruba::Component::MemSubsystem::Member;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
$self->{usage} = $self->{arubaWiredVsfMemberCurrentUsage} /
$self->{arubaWiredVsfMemberTotalMemory} * 100;
$self->add_info(sprintf 'member %s memory usage is %.2f',
$self->{arubaWiredVsfMemberIndex}, $self->{usage});
$self->set_thresholds(warning => 80, critical => 90);
$self->add_message($self->check_thresholds($self->{usage}));
$self->add_perfdata(
label => 'memory_'.$self->{arubaWiredVsfMemberIndex}.'_usage',
value => $self->{usage},
uom => '%',
);
}

View file

@ -1,35 +0,0 @@
package Classes::HP::Aruba::Component::PowersupplySubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('ARUBAWIRED-POWERSUPPLY-MIB', [
['powersupplies', 'arubaWiredPowerSupplyTable', 'Classes::HP::Aruba::Component::PowersupplySubsystem::Powersupply'],
]);
$self->get_snmp_tables('ENTITY-MIBx', [
['powersupplies2', 'entPhysicalTable', 'Monitoring::GLPlugin::SNMP::TableItem'],
]);
}
package Classes::HP::Aruba::Component::PowersupplySubsystem::Powersupply;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
$self->add_info(sprintf 'power supply %d/%s status is %s',
$self->{arubaWiredPSUSlotIndex},
$self->{arubaWiredPSUName},
$self->{arubaWiredPSUState});
if ($self->{arubaWiredPSUState} eq 'ok') {
$self->add_ok();
} else {
$self->add_critical();
}
my $label = sprintf "ps_%d_power", $self->{arubaWiredPSUSlotIndex};
$self->add_perfdata(label => $label,
value => $self->{arubaWiredPSUInstantaneousPower},
max => $self->{arubaWiredPSUMaximumPower}
);
}

View file

@ -1,41 +0,0 @@
package Classes::HP::Aruba::Component::TemperatureSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('ARUBAWIRED-TEMPSENSOR-MIB', [
['temps', 'arubaWiredTempSensorTable', 'Classes::HP::Aruba::Component::TemperatureSubsystem::Tempsensor'],
]);
}
package Classes::HP::Aruba::Component::TemperatureSubsystem::Tempsensor;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
$self->{arubaWiredTempSensorTemperature} /= 1000;
# nur historische werte, keine thresholds
$self->{arubaWiredTempSensorMaxTemp} /= 1000;
$self->{arubaWiredTempSensorMinTemp} /= 1000;
}
sub check {
my ($self) = @_;
$self->add_info(sprintf 'temperature %s/%s is %.2fC, %s',
$self->{flat_indices},
$self->{arubaWiredTempSensorName},
$self->{arubaWiredTempSensorTemperature},
$self->{arubaWiredTempSensorState}
);
if ($self->{arubaWiredTempSensorState} eq 'normal') {
$self->add_ok();
} else {
$self->add_critical();
}
my $label = sprintf "temp_%s", $self->{flat_indices};
$self->add_perfdata(label => $label,
value => $self->{arubaWiredTempSensorTemperature},
);
}

View file

@ -1,318 +0,0 @@
package Classes::Huawei::Component::PeerSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
our $errorcodes = {
# REFERENCE "RFC 4271, Section 4.5."
0 => {
0 => 'No Error',
},
1 => {
0 => 'MESSAGE Header Error',
1 => 'Connection Not Synchronized',
2 => 'Bad Message Length',
3 => 'Bad Message Type',
},
2 => {
0 => 'OPEN Message Error',
1 => 'Unsupported Version Number',
2 => 'Bad Peer AS',
3 => 'Bad BGP Identifier',
4 => 'Unsupported Optional Parameter',
5 => '[Deprecated => see Appendix A]',
6 => 'Unacceptable Hold Time',
},
3 => {
0 => 'UPDATE Message Error',
1 => 'Malformed Attribute List',
2 => 'Unrecognized Well-known Attribute',
3 => 'Missing Well-known Attribute',
4 => 'Attribute Flags Error',
5 => 'Attribute Length Error',
6 => 'Invalid ORIGIN Attribute',
7 => '[Deprecated => see Appendix A]',
8 => 'Invalid NEXT_HOP Attribute',
9 => 'Optional Attribute Error',
10 => 'Invalid Network Field',
11 => 'Malformed AS_PATH',
},
4 => {
0 => 'Hold Timer Expired',
},
5 => {
0 => 'Finite State Machine Error',
},
6 => {
0 => 'Cease',
1 => 'Maximum Number of Prefixes Reached',
2 => 'Administrative Shutdown',
3 => 'Peer De-configured',
4 => 'Administrative Reset',
5 => 'Connection Rejected',
6 => 'Other Configuration Change',
7 => 'Connection Collision Resolution',
8 => 'Out of Resources',
},
};
sub init {
my ($self) = @_;
$self->{peers} = [];
$self->implements_mib('INET-ADDRESS-MIB');
$self->get_snmp_tables('HUAWEI-BGP-VPN-MIB', [
['peers', 'hwBgpPeerAddrFamilyTable+hwBgpPeerTable', 'Classes::Huawei::Component::PeerSubsystem::Peer', sub {
my $o = shift;
# regexp -> arschlecken!
if ($self->opts->name) {
return $self->filter_name($o->compact_v6($o->{hwBgpPeerRemoteAddr}));
} else {
return 1;
}
}],
['sessions', 'hwBgpPeerSessionTable', 'Monitoring::GLPlugin::SNMP::TableItem'],
['extsessions', 'hwBgpPeerSessionExtTable', 'Monitoring::GLPlugin::SNMP::TableItem'],
]);
}
sub check {
my ($self) = @_;
my $errorfound = 0;
$self->add_info('checking bgp peers');
if ($self->mode =~ /peer::list/) {
foreach (sort {$a->{hwBgpPeerRemoteAddr} cmp $b->{hwBgpPeerRemoteAddr}} @{$self->{peers}}) {
printf "%s\n", $_->{hwBgpPeerRemoteAddr};
#$_->list();
}
$self->add_ok("have fun");
} elsif ($self->mode =~ /peer::count/) {
$self->add_info(sprintf "found %d peers", scalar(@{$self->{peers}}));
$self->set_thresholds(warning => '1:', critical => '1:');
$self->add_message($self->check_thresholds(scalar(@{$self->{peers}})));
$self->add_perfdata(
label => 'peers',
value => scalar(@{$self->{peers}}),
);
} elsif ($self->mode =~ /peer::watch/) {
# take a snapshot of the peer list. -> good baseline
# warning if there appear peers, mitigate to ok
# critical if warn/crit percent disappear
$self->{numOfPeers} = scalar (@{$self->{peers}});
$self->{peerNameList} = [map { $_->{hwBgpPeerRemoteAddr} } @{$self->{peers}}];
$self->opts->override_opt('lookback', 3600) if ! $self->opts->lookback;
if ($self->opts->reset) {
my $statefile = $self->create_statefile(name => 'bgppeerlist', lastarray => 1);
unlink $statefile if -f $statefile;
}
$self->valdiff({name => 'bgppeerlist', lastarray => 1},
qw(peerNameList numOfPeers));
my $problem = 0;
if ($self->opts->warning || $self->opts->critical) {
$self->set_thresholds(warning => $self->opts->warning,
critical => $self->opts->critical);
my $before = $self->{numOfPeers} - scalar(@{$self->{delta_found_peerNameList}}) + scalar(@{$self->{delta_lost_peerNameList}});
# use own delta_numOfPeers, because the glplugin version treats
# negative deltas as overflows
$self->{delta_numOfPeers} = $self->{numOfPeers} - $before;
if ($self->opts->units && $self->opts->units eq "%") {
my $delta_pct = $before ? (($self->{delta_numOfPeers} / $before) * 100) : 0;
$self->add_message($self->check_thresholds($delta_pct),
sprintf "%.2f%% delta, before: %d, now: %d", $delta_pct, $before, $self->{numOfPeers});
$problem = $self->check_thresholds($delta_pct);
} else {
$self->add_message($self->check_thresholds($self->{delta_numOfPeers}),
sprintf "%d delta, before: %d, now: %d", $self->{delta_numOfPeers}, $before, $self->{numOfPeers});
$problem = $self->check_thresholds($self->{delta_numOfPeers});
}
if (scalar(@{$self->{delta_found_peerNameList}}) > 0) {
$self->add_ok(sprintf 'found: %s',
join(", ", @{$self->{delta_found_peerNameList}}));
}
if (scalar(@{$self->{delta_lost_peerNameList}}) > 0) {
$self->add_ok(sprintf 'lost: %s',
join(", ", @{$self->{delta_lost_peerNameList}}));
}
} else {
if (scalar(@{$self->{delta_found_peerNameList}}) > 0) {
$self->add_warning(sprintf '%d new bgp peers (%s)',
scalar(@{$self->{delta_found_peerNameList}}),
join(", ", @{$self->{delta_found_peerNameList}}));
$problem = 1;
}
if (scalar(@{$self->{delta_lost_peerNameList}}) > 0) {
$self->add_critical(sprintf '%d bgp peers missing (%s)',
scalar(@{$self->{delta_lost_peerNameList}}),
join(", ", @{$self->{delta_lost_peerNameList}}));
$problem = 2;
}
$self->add_ok(sprintf 'found %d bgp peers', scalar (@{$self->{peers}}));
}
if ($problem) { # relevant only for lookback=9999 and support contract customers
$self->valdiff({name => 'bgppeerlist', lastarray => 1, freeze => 1},
qw(peerNameList numOfPeers));
} else {
$self->valdiff({name => 'bgppeerlist', lastarray => 1, freeze => 2},
qw(peerNameList numOfPeers));
}
$self->add_perfdata(
label => 'num_peers',
value => scalar (@{$self->{peers}}),
);
} else {
if (scalar(@{$self->{peers}}) == 0) {
$self->add_unknown('no peers');
return;
}
# es gibt
# kleine installation: 1 peer zu 1 as, evt 2. as als fallback
# grosse installation: n peer zu 1 as, alternative routen zum provider
# n peer zu m as, mehrere provider, mehrere alternativrouten
# 1 ausfall on 4 peers zu as ist egal
my $as_numbers = {};
foreach (@{$self->{peers}}) {
$_->check();
if (! exists $as_numbers->{$_->{hwBgpPeerRemoteAs}}->{peers}) {
$as_numbers->{$_->{hwBgpPeerRemoteAs}}->{peers} = [];
$as_numbers->{$_->{hwBgpPeerRemoteAs}}->{availability} = 100;
}
push(@{$as_numbers->{$_->{hwBgpPeerRemoteAs}}->{peers}}, $_);
}
if ($self->opts->name2) {
$self->clear_ok();
$self->clear_critical();
if ($self->opts->name2 eq "_ALL_") {
$self->opts->override_opt("name2", join(",", keys %{$as_numbers}));
}
foreach my $as (split(",", $self->opts->name2)) {
my $asname = "";
if ($as =~ /(\d+)=(\w+)/) {
$as = $1;
$asname = $2;
}
if (exists $as_numbers->{$as}) {
my $num_peers = scalar(@{$as_numbers->{$as}->{peers}});
my $num_ok_peers = scalar(grep { $_->{hwBgpPeerFaulty} == 0 } @{$as_numbers->{$as}->{peers}});
my $num_admdown_peers = scalar(grep { $_->{hwBgpPeerAdminStatus} eq "stop" } @{$as_numbers->{$as}->{peers}});
$as_numbers->{$as}->{availability} = 100 * $num_ok_peers / $num_peers;
$self->set_thresholds(warning => "100:", critical => "50:");
$self->add_message($self->check_thresholds($as_numbers->{$as}->{availability}),
sprintf "%d from %d connections to %s are up (%.2f%%%s)",
$num_ok_peers, $num_peers, $asname ? $asname : "AS".$as,
$as_numbers->{$as}->{availability},
$num_admdown_peers ? sprintf(", but %d are admin down and counted as up!", $num_admdown_peers) : "");
} else {
$self->add_critical(sprintf 'found no peer for %s', $asname ? $asname : "AS".$as);
}
}
}
if ($self->opts->report eq "short") {
$self->clear_ok();
$self->add_ok('no problems') if ! $self->check_messages();
}
}
}
package Classes::Huawei::Component::PeerSubsystem::Peer;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub finish {
my ($self) = @_;
my @tmp_indices = @{$self->{indices}};
my $last_tmp = scalar(@tmp_indices) - 1;
$self->{hwBgpPeerInstanceId} = $tmp_indices[0];
shift @tmp_indices;
$self->{hwBgpPeerAddrFamilyAfi} = $tmp_indices[0];
shift @tmp_indices;
$self->{hwBgpPeerAddrFamilySafi} = $tmp_indices[0];
shift @tmp_indices;
$self->{hwBgpPeerType} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressType', $tmp_indices[0]);
shift @tmp_indices;
$self->{hwBgpPeerIPAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressMaker',
$self->{hwBgpPeerType}, @tmp_indices);
$self->{hwBgpPeerLastError} |= "00 00";
my $errorcode = 0;
my $subcode = 0;
if (lc $self->{hwBgpPeerLastError} =~ /([0-9a-f]+)\s+([0-9a-f]+)/) {
$errorcode = hex($1) * 1;
$subcode = hex($2) * 1;
}
$self->{hwBgpPeerLastError} = $Classes::Huawei::Component::PeerSubsystem::errorcodes->{$errorcode}->{$subcode};
$self->{hwBgpPeerRemoteAsName} = "";
$self->{hwBgpPeerRemoteAsImportant} = 0; # if named in --name2
$self->{hwBgpPeerFaulty} = 0;
my @parts = gmtime($self->{hwBgpPeerFsmEstablishedTime});
$self->{hwBgpPeerFsmEstablishedTime} = sprintf ("%dd, %dh, %dm, %ds",@parts[7,2,1,0]);
if ($self->{hwBgpPeerType} eq "ipv6") {
$self->{hwBgpPeerRemoteAddrCompact} = $self->compact_v6($self->{hwBgpPeerRemoteAddr});
#$self->{hwBgpPeerSessionLocalAddr} = $self->compact_v6($self->{hwBgpPeerSessionLocalAddr});
} else {
$self->{hwBgpPeerRemoteAddrCompact} = $self->{hwBgpPeerRemoteAddr};
#$self->{hwBgpPeerSessionLocalAddrCompact} = $self->{hwBgpPeerSessionLocalAddr};
}
# bin zu faul, HwBgpPeerSessionEntry zu holen (abgesehen davon, daß die auch
# leer sein kann). Wer die hwBgpPeerSessionLocalAddr unbedingt haben will,
# soll schon mal anfangen zu sparen. Das ist teuer. Und wer featurebettelt,
# hat verschissen und kommt auf die Spamliste.
$self->{hwBgpPeerSessionLocalAddr} = "undefined";
}
sub check {
my ($self) = @_;
if ($self->opts->name2) {
foreach my $as (split(",", $self->opts->name2)) {
if ($as =~ /(\d+)=(\w+)/) {
$as = $1;
$self->{hwBgpPeerRemoteAsName} = ", ".$2;
} else {
$self->{hwBgpPeerRemoteAsName} = "";
}
if ($as eq "_ALL_" || $as == $self->{hwBgpPeerRemoteAs}) {
$self->{hwBgpPeerRemoteAsImportant} = 1;
}
}
} else {
$self->{hwBgpPeerRemoteAsImportant} = 1;
}
if ($self->{hwBgpPeerState} eq "established") {
$self->add_ok(sprintf "peer %s (AS%s) state is %s since %s",
$self->{hwBgpPeerRemoteAddr},
$self->{hwBgpPeerRemoteAs}.$self->{hwBgpPeerRemoteAsName},
$self->{hwBgpPeerState},
$self->{hwBgpPeerFsmEstablishedTime}
);
} elsif ($self->{hwBgpPeerAdminStatus} eq "stop") {
# admin down is by default critical, but can be mitigated
$self->add_message(
defined $self->opts->mitigation() ? $self->opts->mitigation() :
$self->{hwBgpPeerRemoteAsImportant} ? WARNING : OK,
sprintf "peer %s (AS%s) state is %s (is admin down)",
$self->{hwBgpPeerRemoteAddr},
$self->{hwBgpPeerRemoteAs}.$self->{hwBgpPeerRemoteAsName},
$self->{hwBgpPeerState}
);
$self->{hwBgpPeerFaulty} =
defined $self->opts->mitigation() && $self->opts->mitigation() eq "ok" ? 0 :
$self->{hwBgpPeerRemoteAsImportant} ? 1 : 0;
} else {
# hwBgpPeerLastError may be undef, at least under the following circumstances
# hwBgpPeerRemoteAsName is "", hwBgpPeerAdminStatus is "start",
# hwBgpPeerState is "active"
$self->add_message($self->{hwBgpPeerRemoteAsImportant} ? CRITICAL : OK,
sprintf "peer %s (AS%s) state is %s (last error: %s, local address: %s)",
$self->{hwBgpPeerRemoteAddr},
$self->{hwBgpPeerRemoteAs}.$self->{hwBgpPeerRemoteAsName},
$self->{hwBgpPeerState},
$self->{hwBgpPeerLastError}||"no error",
$self->{hwBgpPeerSessionLocalAddr}
);
$self->{hwBgpPeerFaulty} = $self->{hwBgpPeerRemoteAsImportant} ? 1 : 0;
}
}

View file

@ -1,21 +0,0 @@
package Classes::PulseSecure::Gateway;
our @ISA = qw(Classes::Juniper);
use strict;
sub init {
my ($self) = @_;
# irgendwo ausgegraben, nicht offiziell dokumentiert
$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{'PULSESECURE-PSG-MIB'}->{'maxLicensedUsers'} = '1.3.6.1.4.1.12532.55';
if ($self->mode =~ /device::hardware::health/) {
$self->analyze_and_check_environmental_subsystem("Classes::PulseSecure::Gateway::Component::EnvironmentalSubsystem");
} elsif ($self->mode =~ /device::hardware::load/) {
$self->analyze_and_check_cpu_subsystem("Classes::PulseSecure::Gateway::Component::CpuSubsystem");
} elsif ($self->mode =~ /device::hardware::memory/) {
$self->analyze_and_check_mem_subsystem("Classes::PulseSecure::Gateway::Component::MemSubsystem");
} elsif ($self->mode =~ /device::users/) {
$self->analyze_and_check_user_subsystem("Classes::PulseSecure::Gateway::Component::UserSubsystem");
} else {
$self->no_such_mode();
}
}

View file

@ -1,24 +0,0 @@
package Classes::PulseSecure::Gateway::Component::CpuSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw(
iveCpuUtil)));
}
sub check {
my ($self) = @_;
$self->add_info('checking cpus');
$self->add_info(sprintf 'cpu usage is %.2f%%', $self->{iveCpuUtil});
# http://www.juniper.net/techpubs/software/ive/guides/howtos/SA-IC-MAG-SNMP-Monitoring-Guide.pdf
$self->set_thresholds(warning => 50, critical => 90);
$self->add_message($self->check_thresholds($self->{iveCpuUtil}));
$self->add_perfdata(
label => 'cpu_usage',
value => $self->{iveCpuUtil},
uom => '%',
);
}

View file

@ -1,40 +0,0 @@
package Classes::PulseSecure::Gateway::Component::DiskSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw(
diskFullPercent raidDescription logFullPercent)));
}
sub check {
my ($self) = @_;
$self->add_info('checking disks');
$self->add_info(sprintf 'disk is %.2f%% full',
$self->{diskFullPercent});
$self->set_thresholds(metric => 'disk_usage', warning => 80, critical => 90);
$self->add_message($self->check_thresholds(metric => 'disk_usage',
value => $self->{diskFullPercent}));
$self->add_perfdata(
label => 'disk_usage',
value => $self->{diskFullPercent},
uom => '%',
);
if ($self->{raidDescription} && $self->{raidDescription} =~ /(failed)|(unknown)/) {
$self->add_critical($self->{raidDescription});
}
if (defined $self->{logFullPercent}) {
$self->add_info(sprintf 'log is %.2f%% full',
$self->{logFullPercent});
$self->set_thresholds(metric => 'log_usage', warning => 80, critical => 90);
$self->add_message($self->check_thresholds(metric => 'log_usage',
value => $self->{logFullPercent}));
$self->add_perfdata(
label => 'log_usage',
value => $self->{logFullPercent},
uom => '%',
);
}
}

View file

@ -1,40 +0,0 @@
package Classes::PulseSecure::Gateway::Component::EnvironmentalSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->{disk_subsystem} =
Classes::PulseSecure::Gateway::Component::DiskSubsystem->new();
$self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw(
iveTemperature fanDescription psDescription)));
}
sub check {
my ($self) = @_;
$self->{disk_subsystem}->check();
$self->add_info(sprintf "temperature is %.2f deg", $self->{iveTemperature});
$self->set_thresholds(warning => 70, critical => 75);
$self->check_thresholds(0);
$self->add_perfdata(
label => 'temperature',
value => $self->{iveTemperature},
warning => $self->{warning},
critical => $self->{critical},
) if $self->{iveTemperature};
if ($self->{fanDescription} && $self->{fanDescription} =~ /(failed)|(threshold)/i) {
$self->add_critical($self->{fanDescription});
}
if ($self->{psDescription} && $self->{psDescription} =~ /failed/i) {
$self->add_critical($self->{psDescription});
}
if (! $self->check_messages()) {
$self->add_ok("environmental hardware working fine");
}
}
sub dump {
my ($self) = @_;
$self->{disk_subsystem}->dump();
}

View file

@ -1,33 +0,0 @@
package Classes::PulseSecure::Gateway::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw(
iveMemoryUtil iveSwapUtil)));
}
sub check {
my ($self) = @_;
$self->add_info('checking memory');
$self->add_info(sprintf 'memory usage is %.2f%%, swap usage is %.2f%%',
$self->{iveMemoryUtil}, $self->{iveSwapUtil});
$self->set_thresholds(warning => 90, critical => 95);
$self->add_message($self->check_thresholds($self->{iveMemoryUtil}),
sprintf 'memory usage is %.2f%%', $self->{iveMemoryUtil});
$self->add_perfdata(
label => 'memory_usage',
value => $self->{iveMemoryUtil},
uom => '%',
);
$self->set_thresholds(warning => 5, critical => 10);
$self->add_message($self->check_thresholds($self->{iveSwapUtil}),
sprintf 'swap usage is %.2f%%', $self->{iveSwapUtil});
$self->add_perfdata(
label => 'swap_usage',
value => $self->{iveSwapUtil},
uom => '%',
);
}

View file

@ -1,114 +0,0 @@
package Classes::PulseSecure::Gateway::Component::UserSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
# https://kb.pulsesecure.net/articles/Pulse_Secure_Article/KB44150
$self->get_snmp_objects('PULSESECURE-PSG-MIB', (qw(
iveSSLConnections iveVPNTunnels
signedInWebUsers signedInMailUsers
iveConcurrentUsers clusterConcurrentUsers iveTotalSignedInUsers
maxLicensedUsers)));
foreach (qw(
iveSSLConnections iveVPNTunnels
signedInWebUsers signedInMailUsers
iveConcurrentUsers clusterConcurrentUsers iveTotalSignedInUsers)) {
$self->{$_} = 0 if ! defined $self->{$_};
}
}
sub check {
my ($self) = @_;
# info signedInWebUsers iveConcurrentUsers
# info but trap clusterConcurrentUsers+maxLicensedUsers
$self->add_info('checking memory');
if (defined $self->{maxLicensedUsers}) {
$self->add_info(sprintf 'Users: cluster=%d (of %d), node=%d, web=%d, mail=%d, vpn=%d, ssl=%d',
$self->{clusterConcurrentUsers},
$self->{maxLicensedUsers},
$self->{iveConcurrentUsers},
$self->{signedInWebUsers},
$self->{signedInMailUsers},
$self->{iveVPNTunnels},
$self->{iveSSLConnections}
);
$self->{license_usage} = 100 * $self->{iveConcurrentUsers} /
$self->{maxLicensedUsers};
$self->{cluster_license_usage} = 100 * $self->{clusterConcurrentUsers} /
$self->{maxLicensedUsers};
$self->set_thresholds(metric => "license_usage",
warning => 90, critical => 95);
$self->add_message($self->check_thresholds(metric => "license_usage",
value => $self->{license_usage}));
$self->add_perfdata(
label => 'license_usage',
value => $self->{license_usage},
uom => "%",
);
} else {
$self->add_info(sprintf 'Users: cluster=%d, node=%d, web=%d, mail=%d, vpn=%d, ssl=%d',
$self->{clusterConcurrentUsers},
$self->{iveConcurrentUsers},
$self->{signedInWebUsers},
$self->{signedInMailUsers},
$self->{iveVPNTunnels},
$self->{iveSSLConnections}
);
$self->set_thresholds(metric => "concurrent_users",
warning => 1000, critical => 1500);
$self->add_message($self->check_thresholds(metric => "concurrent_users",
value => $self->{iveConcurrentUsers}));
}
$self->add_perfdata(
label => 'cluster_concurrent_users',
value => $self->{clusterConcurrentUsers},
);
$self->add_perfdata(
label => 'concurrent_users',
value => $self->{iveConcurrentUsers},
);
$self->add_perfdata(
label => 'web_users',
value => $self->{signedInWebUsers},
);
$self->add_perfdata(
label => 'vpn_tunnels',
value => $self->{iveVPNTunnels},
);
}
__END__
Beispiel
Knoten a
[USERSUBSYSTEM]
clusterConcurrentUsers: 153
iveConcurrentUsers: 153
iveSSLConnections: 153
iveTotalSignedInUsers: 153
iveVPNTunnels: 152
license_usage: 76.5
maxLicensedUsers: 200 <- nicht bestaetigt, dass es den wert offiziell gibt. knoten oder cluster?
signedInMailUsers: 0
signedInWebUsers: 153
Knoten b
[USERSUBSYSTEM]
clusterConcurrentUsers: 153
iveConcurrentUsers: 0
iveSSLConnections: 0
iveTotalSignedInUsers: 153 <- identisch mit clusterConcurrentUsers?
iveVPNTunnels: 0
license_usage: 76.5
maxLicensedUsers: 200
signedInMailUsers: 0
signedInWebUsers: 153 <- vermutlich clusterweit
iveTotalSignedInUsers 1.3.6.1.4.1.12532.48
"The Total number of Users Logged In for the Cluster"
iveConcurrentUsers 1.3.6.1.4.1.12532.12
"The Total number of Concurrent user Licenses used for the IVE Node"
clusterConcurrentUsers 1.3.6.1.4.1.12532.13
"The Total number of Concurrent user Licenses used for the Cluster"

View file

@ -1,46 +0,0 @@
package Classes::Server::Linux::Component::EnvironmentalSubsystem;
our @ISA = qw(Classes::Server::Linux);
use strict;
sub new {
my ($class) = @_;
my $self = {};
bless $self, $class;
$self->init();
return $self;
}
sub init {
my ($self) = @_;
if ($self->implements_mib("LM-SENSORS-MIB")) {
$self->{fan_subsystem} =
Classes::LMSENSORSMIB::Component::FanSubsystem->new();
$self->{temperature_subsystem} =
Classes::LMSENSORSMIB::Component::TemperatureSubsystem->new();
}
$self->{env_subsystem} =
Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem->new();
}
sub check {
my ($self) = @_;
if ($self->implements_mib("LM-SENSORS-MIB")) {
$self->{fan_subsystem}->check();
$self->{temperature_subsystem}->check();
}
$self->{env_subsystem}->check();
if (! $self->check_messages()) {
$self->add_ok("environmental hardware working fine");
}
}
sub dump {
my ($self) = @_;
if ($self->implements_mib("LM-SENSORS-MIB")) {
$self->{fan_subsystem}->dump();
$self->{temperature_subsystem}->dump();
}
$self->{env_subsystem}->dump();
}
1;

View file

@ -1,62 +0,0 @@
package Classes::Versa;
our @ISA = qw(Classes::Device);
use strict;
sub init {
my ($self) = @_;
if ($self->mode =~ /device::hardware::health/) {
$self->analyze_and_check_environmental_subsystem("Classes::Versa::Component::EnvironmentalSubsystem");
} elsif ($self->mode =~ /device::hardware::load/) {
$self->analyze_and_check_cpu_subsystem("Classes::Versa::Component::CpuSubsystem");
} elsif ($self->mode =~ /device::hardware::memory/) {
$self->analyze_and_check_mem_subsystem("Classes::Versa::Component::MemSubsystem");
} elsif ($self->mode =~ /device::bgp/) {
if ($self->implements_mib('DC-BGP-MIB', 'bgpPeerStatusTable')) {
$self->analyze_and_check_interface_subsystem("Classes::Versa::Component::PeerSubsystem");
} else {
if ($self->implements_mib('DC-BGP-MIB', 'bgpPeerStatusTable')) {
$self->analyze_and_check_interface_subsystem("Classes::Versa::Component::PeerSubsystem");
}
}
} else {
$self->no_such_mode();
}
}
__END__
MONITOR-MIB::monitorInfoTable
MONITOR-MIB::monitorName.1 = inet-nh-monitor
MONITOR-MIB::monitorName.2 = mpls-nh-monitor
MONITOR-MIB::monitorName.3 = INET-1-monitor-google-dns
MONITOR-MIB::monitorVrf.1 = INET-2-Transport-VR
MONITOR-MIB::monitorVrf.2 = INET-1-Transport-VR
MONITOR-MIB::monitorVrf.3 = INET-1-Transport-VR
MONITOR-MIB::monitorTenant.1 = KPL
MONITOR-MIB::monitorTenant.2 = KPL
MONITOR-MIB::monitorTenant.3 = KPL
MONITOR-MIB::monitorState.1 = Up
MONITOR-MIB::monitorState.2 = Up
MONITOR-MIB::monitorState.3 = Inactive
ORG-MIB::sessStatsTable
ORG-MIB::sessOrgName.2 = KPL
ORG-MIB::sessVsnId.2 = 0
ORG-MIB::sessActive.2 = 28
ORG-MIB::sessCreated.2 = 3112872
ORG-MIB::sessClosed.2 = 3112844
ORG-MIB::sessActiveNAT.2 = 0
ORG-MIB::sessCreatedNAT.2 = 303400
ORG-MIB::sessClosedNAT.2 = 303400
ORG-MIB::sessFailed.2 = 19
ORG-MIB::sessMax.2 = 100000
ORG-MIB::sessSdwanStatsTable
ORG-MIB::sessSdwanOrgName.2 = KPL
ORG-MIB::sessSdwanVsnId.2 = 0
ORG-MIB::sessSdwanActive.2 = 12
ORG-MIB::sessSdwanCreated.2 = 2581846
ORG-MIB::sessSdwanClosed.2 = 2581834
ORG-MIB::orgAlarmStatsTable
VERSA-IF-MIB::versaIfVIfName.7 = vni-0/1
VERSA-IF-MIB::versaIfVIfName.8 = vni-0/1.0
VERSA-IF-MIB::versaIfVIfName.17 = vni-0/0
VERSA-IF-MIB::versaIfVIfName.18 = vni-0/0.0

View file

@ -1,31 +0,0 @@
package Classes::Versa::Component::CpuSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('DEVICE-MIB', [
['devices', 'deviceTable', 'Classes::Versa::Component::CpuSubsystem::Device' ],
]);
}
package Classes::Versa::Component::CpuSubsystem::Device;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
my $label = sprintf('cpu_%s_usage', $self->{flat_indices});
$self->add_info(sprintf 'cpu_%s usage is %.2f%%',
$self->{flat_indices}, $self->{deviceCPULoad});
$self->set_thresholds(metric => $label, warning => 80, critical => 90);
$self->add_message($self->check_thresholds(
metric => $label, value => $self->{deviceCPULoad}));
$self->add_perfdata(
label => $label,
value => $self->{deviceCPULoad},
uom => '%',
);
}

View file

@ -1,108 +0,0 @@
package Classes::Versa::Component::EnvironmentalSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('STORAGE-MIB', [
['storages', 'storageGlobalProfileStatsTable', 'Classes::Versa::Component::EnvironmentalSubsystem::StorageProfile' ],
]);
$self->get_snmp_tables('DEVICE-MIB', [
['alarms', 'deviceAlarmStatsTable', 'Classes::Versa::Component::EnvironmentalSubsystem::Alarm' ],
]);
if (! @{$self->{alarms}}) {
$self->get_snmp_tables('ORG-MIB', [
['alarms', 'orgAlarmStatsTable', 'Classes::Versa::Component::EnvironmentalSubsystem::Alarm' ],
]);
}
}
sub xcheck {
my ($self) = @_;
$self->add_ok("environmental hardware working fine, at least i hope so. this device did not implement any kind of hardware health status. use -vv to see a list of components");
}
package Classes::Versa::Component::EnvironmentalSubsystem::StorageProfile;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
$self->{storageGlobalProfileHardDiskUsage} =
$self->{storageGlobalProfileUsedHardDiskSize} /
$self->{storageGlobalProfileAvailableHardDiskSize} * 100;
if ($self->{storageGlobalProfileAvailableRamDiskSize}) {
$self->{storageGlobalProfileRamDiskUsage} =
$self->{storageGlobalProfileUsedRamDiskSize} /
$self->{storageGlobalProfileAvailableRamDiskSize} * 100;
}
}
sub check {
my ($self) = @_;
my $label = sprintf 'disk_%s_usage', $self->{flat_indices};
$self->add_info(sprintf 'disk %s usage is %.2f%%',
$self->{flat_indices},
$self->{storageGlobalProfileHardDiskUsage});
$self->set_thresholds(metric => $label, warning => 90, critical => 95);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{storageGlobalProfileHardDiskUsage}));
$self->add_perfdata(label => $label,
value => $self->{storageGlobalProfileHardDiskUsage},
uom => "%");
if (exists $self->{storageGlobalProfileRamDiskUsage}) {
$label = sprintf 'ramdisk_%s_usage', $self->{flat_indices};
$self->add_info(sprintf 'ramdisk %s usage is %.2f%%',
$self->{flat_indices},
$self->{storageGlobalProfileRamDiskUsage}
);
$self->set_thresholds(metric => $label, warning => 90, critical => 95);
$self->add_message($self->check_thresholds(metric => $label,
value => $self->{storageGlobalProfileRamDiskUsage}));
$self->add_perfdata(label => $label,
value => $self->{storageGlobalProfileRamDiskUsage},
uom => "%"
);
}
}
package Classes::Versa::Component::EnvironmentalSubsystem::Alarm;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
if (exists $self->{deviceAlarmName}) {
foreach my $devkey (keys %{$self}) {
(my $key = $devkey) =~ s/deviceAlarm/alarm/;
$self->{$key} = $self->{$devkey};
delete $self->{$devkey};
}
}
# [ALARM_2.99]
# alarmAnalyticsCnt: 0
# alarmChangedCnt: 0
# alarmClearedCnt: 0
# alarmName: ha-sync-state-change
# alarmNetconfCnt: 0
# alarmNewCnt: 0
# alarmOrgName: KPL
# alarmSnmpCnt: 0
# alarmSyslogCnt: 0
#
# [ALARM_99]
# deviceAlarmAnalyticsCnt: 0
# deviceAlarmChangedCnt: 0
# deviceAlarmClearedCnt: 0
# deviceAlarmName: ha-sync-state-change
# deviceAlarmNetconfCnt: 0
# deviceAlarmNewCnt: 0
# deviceAlarmSnmpCnt: 0
# deviceAlarmSyslogCnt: 0
#
# evt Anstieg von alarmNewCnt beobachten
# alarmName: sdwan-nbr-datapath-down
}

View file

@ -1,31 +0,0 @@
package Classes::Versa::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_tables('DEVICE-MIB', [
['devices', 'deviceTable', 'Classes::Versa::Component::MemSubsystem::Device' ],
]);
}
package Classes::Versa::Component::MemSubsystem::Device;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub check {
my ($self) = @_;
my $label = sprintf('memory_%s_usage', $self->{flat_indices});
$self->add_info(sprintf 'memory_%s usage is %.2f%%',
$self->{flat_indices}, $self->{deviceMemoryLoad});
$self->set_thresholds(metric => $label, warning => 80, critical => 90);
$self->add_message($self->check_thresholds(
metric => $label, value => $self->{deviceMemoryLoad}));
$self->add_perfdata(
label => $label,
value => $self->{deviceMemoryLoad},
uom => '%',
);
}

View file

@ -1,384 +0,0 @@
package Classes::Versa::Component::PeerSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
our $errorcodes = {
0 => {
0 => 'No Error',
},
1 => {
0 => 'MESSAGE Header Error',
1 => 'Connection Not Synchronized',
2 => 'Bad Message Length',
3 => 'Bad Message Type',
},
2 => {
0 => 'OPEN Message Error',
1 => 'Unsupported Version Number',
2 => 'Bad Peer AS',
3 => 'Bad BGP Identifier',
4 => 'Unsupported Optional Parameter',
5 => '[Deprecated => see Appendix A]',
6 => 'Unacceptable Hold Time',
},
3 => {
0 => 'UPDATE Message Error',
1 => 'Malformed Attribute List',
2 => 'Unrecognized Well-known Attribute',
3 => 'Missing Well-known Attribute',
4 => 'Attribute Flags Error',
5 => 'Attribute Length Error',
6 => 'Invalid ORIGIN Attribute',
7 => '[Deprecated => see Appendix A]',
8 => 'Invalid NEXT_HOP Attribute',
9 => 'Optional Attribute Error',
10 => 'Invalid Network Field',
11 => 'Malformed AS_PATH',
},
4 => {
0 => 'Hold Timer Expired',
},
5 => {
0 => 'Finite State Machine Error',
},
6 => {
0 => 'Cease',
1 => 'Maximum Number of Prefixes Reached',
2 => 'Administrative Shutdown',
3 => 'Peer De-configured',
4 => 'Administrative Reset',
5 => 'Connection Rejected',
6 => 'Other Configuration Change',
7 => 'Connection Collision Resolution',
8 => 'Out of Resources',
},
};
sub init {
my ($self) = @_;
$self->{peers} = [];
$self->bulk_is_baeh(10);
if ($self->mode =~ /device::bgp::peer::(list|count|watch)/) {
###$self->update_entry_cache(1, 'BGP4-MIB', 'bgpPeerStatusTable', 'bgpPeerStatusSelRemoteAddr');
}
$self->get_snmp_tables('DC-BGP-MIB', [
['peerstatus', 'bgpPeerStatusTable', 'Classes::Versa::Component::PeerSubsystem::PeerStatus' ],
['peers', 'bgpPeerTable', 'Classes::Versa::Component::PeerSubsystem::Peer' ],
]);
# keine gute Idee, weil get_snmp_table_objects_with_cache die eingelesenen
# Zeilen nicht zu Objekten blesst wie get_snmp_tables. D.h. es wird auch
# kein finish() aufgerufen und manche Attribute sind binaerer Schlonz.
# foreach ($self->get_snmp_table_objects_with_cache(
# 'DC-BGP-MIB', 'bgpPeerStatusTable', 'bgpPeerStatusSelRemoteAddr')) {
# if ($self->filter_name($_->{bgpPeerStatusSelRemoteAddr})) {
# push(@{$self->{peerstatus}},
# Classes::Versa::Component::PeerSubsystem::PeerStatus->new(%{$_}));
# }
# }
# foreach ($self->get_snmp_table_objects_with_cache(
# 'DC-BGP-MIB', 'bgpPeerTable', 'bgpPeerStatusSelectedRemoteAddr')) {
# if ($self->filter_name($_->{bgpPeerStatusSelectedRemoteAddr})) {
# push(@{$self->{peers}},
# Classes::Versa::Component::PeerSubsystem::Peer->new(%{$_}));
# }
# }
$self->merge_tables("peers", (qw(peerstatus)));
}
sub check {
my ($self) = @_;
my $errorfound = 0;
$self->add_info('checking bgp peers');
if ($self->mode =~ /peer::list/) {
foreach (sort {$a->{bgpPeerStatusSelRemoteAddr} cmp $b->{bgpPeerStatusSelRemoteAddr}} @{$self->{peers}}) {
printf "%s\n", $_->{bgpPeerStatusSelRemoteAddr};
#$_->list();
}
$self->add_ok("have fun");
} elsif ($self->mode =~ /peer::count/) {
$self->add_info(sprintf "found %d peers", scalar(@{$self->{peers}}));
$self->set_thresholds(warning => '1:', critical => '1:');
$self->add_message($self->check_thresholds(scalar(@{$self->{peers}})));
$self->add_perfdata(
label => 'peers',
value => scalar(@{$self->{peers}}),
);
} elsif ($self->mode =~ /peer::watch/) {
# take a snapshot of the peer list. -> good baseline
# warning if there appear peers, mitigate to ok
# critical if warn/crit percent disappear
$self->{numOfPeers} = scalar (@{$self->{peers}});
$self->{peerNameList} = [map { $_->{bgpPeerStatusSelRemoteAddr} } @{$self->{peers}}];
$self->opts->override_opt('lookback', 3600) if ! $self->opts->lookback;
if ($self->opts->reset) {
my $statefile = $self->create_statefile(name => 'bgppeerlist', lastarray => 1);
unlink $statefile if -f $statefile;
}
$self->valdiff({name => 'bgppeerlist', lastarray => 1},
qw(peerNameList numOfPeers));
my $problem = 0;
if ($self->opts->warning || $self->opts->critical) {
$self->set_thresholds(warning => $self->opts->warning,
critical => $self->opts->critical);
my $before = $self->{numOfPeers} - scalar(@{$self->{delta_found_peerNameList}}) + scalar(@{$self->{delta_lost_peerNameList}});
# use own delta_numOfPeers, because the glplugin version treats
# negative deltas as overflows
$self->{delta_numOfPeers} = $self->{numOfPeers} - $before;
if ($self->opts->units && $self->opts->units eq "%") {
my $delta_pct = $before ? (($self->{delta_numOfPeers} / $before) * 100) : 0;
$self->add_message($self->check_thresholds($delta_pct),
sprintf "%.2f%% delta, before: %d, now: %d", $delta_pct, $before, $self->{numOfPeers});
$problem = $self->check_thresholds($delta_pct);
} else {
$self->add_message($self->check_thresholds($self->{delta_numOfPeers}),
sprintf "%d delta, before: %d, now: %d", $self->{delta_numOfPeers}, $before, $self->{numOfPeers});
$problem = $self->check_thresholds($self->{delta_numOfPeers});
}
if (scalar(@{$self->{delta_found_peerNameList}}) > 0) {
$self->add_ok(sprintf 'found: %s',
join(", ", @{$self->{delta_found_peerNameList}}));
}
if (scalar(@{$self->{delta_lost_peerNameList}}) > 0) {
$self->add_ok(sprintf 'lost: %s',
join(", ", @{$self->{delta_lost_peerNameList}}));
}
} else {
if (scalar(@{$self->{delta_found_peerNameList}}) > 0) {
$self->add_warning(sprintf '%d new bgp peers (%s)',
scalar(@{$self->{delta_found_peerNameList}}),
join(", ", @{$self->{delta_found_peerNameList}}));
$problem = 1;
}
if (scalar(@{$self->{delta_lost_peerNameList}}) > 0) {
$self->add_critical(sprintf '%d bgp peers missing (%s)',
scalar(@{$self->{delta_lost_peerNameList}}),
join(", ", @{$self->{delta_lost_peerNameList}}));
$problem = 2;
}
$self->add_ok(sprintf 'found %d bgp peers', scalar (@{$self->{peers}}));
}
if ($problem) { # relevant only for lookback=9999 and support contract customers
$self->valdiff({name => 'bgppeerlist', lastarray => 1, freeze => 1},
qw(peerNameList numOfPeers));
} else {
$self->valdiff({name => 'bgppeerlist', lastarray => 1, freeze => 2},
qw(peerNameList numOfPeers));
}
$self->add_perfdata(
label => 'num_peers',
value => scalar (@{$self->{peers}}),
);
} else {
if (scalar(@{$self->{peers}}) == 0) {
$self->add_unknown('no peers');
return;
}
# es gibt
# kleine installation: 1 peer zu 1 as, evt 2. as als fallback
# grosse installation: n peer zu 1 as, alternative routen zum provider
# n peer zu m as, mehrere provider, mehrere alternativrouten
# 1 ausfall on 4 peers zu as ist egal
my $as_numbers = {};
foreach (@{$self->{peers}}) {
$_->check();
if (! exists $as_numbers->{$_->{bgpPeerStatusRemoteAs}}->{peers}) {
$as_numbers->{$_->{bgpPeerStatusRemoteAs}}->{peers} = [];
$as_numbers->{$_->{bgpPeerStatusRemoteAs}}->{availability} = 100;
}
push(@{$as_numbers->{$_->{bgpPeerStatusRemoteAs}}->{peers}}, $_);
}
if ($self->opts->name2) {
$self->clear_ok();
$self->clear_critical();
if ($self->opts->name2 eq "_ALL_") {
$self->opts->override_opt("name2", join(",", keys %{$as_numbers}));
}
foreach my $as (split(",", $self->opts->name2)) {
my $asname = "";
if ($as =~ /(\d+)=(\w+)/) {
$as = $1;
$asname = $2;
}
if (exists $as_numbers->{$as}) {
my $num_peers = scalar(@{$as_numbers->{$as}->{peers}});
my $num_ok_peers = scalar(grep { $_->{bgpPeerStatusFaulty} == 0 } @{$as_numbers->{$as}->{peers}});
my $num_admdown_peers = scalar(grep { $_->{bgpPeerStatusAdminStatus} eq "stop" } @{$as_numbers->{$as}->{peers}});
$as_numbers->{$as}->{availability} = 100 * $num_ok_peers / $num_peers;
$self->set_thresholds(warning => "100:", critical => "50:");
$self->add_message($self->check_thresholds($as_numbers->{$as}->{availability}),
sprintf "%d from %d connections to %s are up (%.2f%%%s)",
$num_ok_peers, $num_peers, $asname ? $asname : "AS".$as,
$as_numbers->{$as}->{availability},
$num_admdown_peers ? sprintf(", but %d are admin down and counted as up!", $num_admdown_peers) : "");
} else {
$self->add_critical(sprintf 'found no peer for %s', $asname ? $asname : "AS".$as);
}
}
}
if ($self->opts->report eq "short") {
$self->clear_ok();
$self->add_ok('no problems') if ! $self->check_messages();
}
}
}
package Classes::Versa::Component::PeerSubsystem::PeerStatus;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub finish {
my ($self) = @_;
# INDEX { bgpRmEntIndex,
# bgpPeerLocalAddrType,
# bgpPeerLocalAddr,
# bgpPeerLocalPort,
# bgpPeerRemoteAddrType,
# bgpPeerRemoteAddr,
# bgpPeerRemotePort,
# bgpPeerLocalAddrScopeId}
my @tmp_indices = @{$self->{indices}};
my $last_tmp = scalar(@tmp_indices) - 1;
shift @tmp_indices;
$self->{bgpPeerLocalAddrType} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressType', shift @tmp_indices);
$self->{bgpPeerLocalAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressMaker',
$self->{bgpPeerLocalAddrType}, @tmp_indices);
# pos0 = anzahl der folgenden adress-bestandteile
# pos1..<$pos0 - 1> adresse
for (1..$tmp_indices[0]+1) { shift @tmp_indices }
$self->{bgpPeerLocalPort} = shift @tmp_indices;
$self->{bgpPeerRemoteAddrType} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressType', shift @tmp_indices);
$self->{bgpPeerRemoteAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressMaker',
$self->{bgpPeerRemoteAddrType}, @tmp_indices);
for (1..$tmp_indices[0]+1) { shift @tmp_indices }
$self->{bgpPeerRemotePort} = shift @tmp_indices;
$self->{bgpPeerLocalAddr} = "=empty=" if ! $self->{bgpPeerLocalAddr};
$self->{bgpPeerStatusSelLocalAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddress',
$self->{bgpPeerStatusSelLocalAddr}, $self->{bgpPeerStatusSelLocalAddrType}) if $self->{bgpPeerStatusSelLocalAddr};
$self->{bgpPeerStatusSelRemoteAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddress',
$self->{bgpPeerStatusSelRemoteAddr}, $self->{bgpPeerStatusSelRemoteAddrType}) if $self->{bgpPeerStatusSelRemoteAddr};
$self->{bgpPeerStatusLastError} |= "00 00";
my $errorcode = 0;
my $subcode = 0;
if (lc $self->{bgpPeerStatusLastError} =~ /([0-9a-f]+)\s+([0-9a-f]+)/) {
$errorcode = hex($1) * 1;
$subcode = hex($2) * 1;
}
$self->{bgpPeerStatusLastError} = $Classes::Versa::Component::PeerSubsystem::errorcodes->{$errorcode}->{$subcode};
$self->{bgpPeerStatusRemoteAsName} = "";
$self->{bgpPeerStatusRemoteAsImportant} = 0; # if named in --name2
$self->{bgpPeerStatusFaulty} = 0;
my @parts = gmtime($self->{bgpPeerStatusFsmEstablishedTime});
$self->{bgpPeerStatusFsmEstablishedTime} = sprintf ("%dd, %dh, %dm, %ds",@parts[7,2,1,0]);
}
package Classes::Versa::Component::PeerSubsystem::Peer;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub finish {
my ($self) = @_;
# INDEX { bgpRmEntIndex, # Unsigned32
# bgpPeerLocalAddrType, # InetAddressType
# bgpPeerLocalAddr, # InetAddress
# bgpPeerLocalPort, # InetPortNumber
# bgpPeerRemoteAddrType, # InetAddressType
# bgpPeerRemoteAddr, # InetAddress
# bgpPeerRemotePort, # InetPortNumber
# bgpPeerLocalAddrScopeId} # Unsigned32
my @tmp_indices = @{$self->{indices}};
my $last_tmp = scalar(@tmp_indices) - 1;
shift @tmp_indices;
$self->{bgpPeerLocalAddrType} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressType', shift @tmp_indices);
$self->{bgpPeerLocalAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressMaker',
$self->{bgpPeerLocalAddrType}, @tmp_indices);
# pos0 = anzahl der folgenden adress-bestandteile
# pos1..<$pos0 - 1> adresse
for (1..$tmp_indices[0]+1) { shift @tmp_indices }
$self->{bgpPeerLocalPort} = shift @tmp_indices;
$self->{bgpPeerRemoteAddrType} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressType', shift @tmp_indices);
$self->{bgpPeerRemoteAddr} = $self->mibs_and_oids_definition(
'INET-ADDRESS-MIB', 'InetAddressMaker',
$self->{bgpPeerRemoteAddrType}, @tmp_indices);
for (1..$tmp_indices[0]+1) { shift @tmp_indices }
$self->{bgpPeerRemotePort} = shift @tmp_indices;
$self->{bgpPeerLocalAddr} = "=empty=" if ! $self->{bgpPeerLocalAddr};
foreach my $key (grep /^bgp/, keys %{$self}) {
delete $self->{$key} if ! (grep /^$key$/, (qw(bgpPeerAdminStatus bgpPeerOperStatus bgpPeerLocalAddr bgpPeerRemoteAddr)))
}
}
sub check {
my ($self) = @_;
if ($self->opts->name2) {
foreach my $as (split(",", $self->opts->name2)) {
if ($as =~ /(\d+)=(\w+)/) {
$as = $1;
$self->{bgpPeerStatusRemoteAsName} = ", ".$2;
} else {
$self->{bgpPeerStatusRemoteAsName} = "";
}
if ($as eq "_ALL_" || $as == $self->{bgpPeerStatusRemoteAs}) {
$self->{bgpPeerStatusRemoteAsImportant} = 1;
}
}
} else {
$self->{bgpPeerStatusRemoteAsImportant} = 1;
}
if ($self->{bgpPeerStatusState} eq "established") {
$self->add_ok(sprintf "peer %s (AS%s) state is %s since %s",
$self->{bgpPeerStatusSelRemoteAddr},
$self->{bgpPeerStatusRemoteAs}.$self->{bgpPeerStatusRemoteAsName},
$self->{bgpPeerStatusState},
$self->{bgpPeerStatusFsmEstablishedTime}
);
} elsif ($self->{bgpPeerStatusAdminStatus} ne "adminStatusUp") {
# admin down is by default critical, but can be mitigated
$self->add_message(
defined $self->opts->mitigation() ? $self->opts->mitigation() :
$self->{bgpPeerStatusRemoteAsImportant} ? WARNING : OK,
sprintf "peer %s (AS%s) state is %s (is admin down)",
$self->{bgpPeerStatusSelRemoteAddr},
$self->{bgpPeerStatusRemoteAs}.$self->{bgpPeerStatusRemoteAsName},
$self->{bgpPeerStatusState}
);
$self->{bgpPeerStatusFaulty} =
defined $self->opts->mitigation() && $self->opts->mitigation() eq "ok" ? 0 :
$self->{bgpPeerStatusRemoteAsImportant} ? 1 : 0;
} else {
# bgpPeerStatusLastError may be undef, at least under the following circumstances
# bgpPeerStatusRemoteAsName is "", bgpPeerStatusAdminStatus is "start",
# bgpPeerStatusState is "active"
# https://community.cisco.com/t5/routing/confirm-quot-active-quot-meaning-in-bgp/td-p/1391629
$self->add_message($self->{bgpPeerStatusRemoteAsImportant} ? CRITICAL : OK,
sprintf "peer %s (AS%s) state is %s (last error: %s)",
$self->{bgpPeerStatusSelRemoteAddr},
$self->{bgpPeerStatusRemoteAs}.$self->{bgpPeerStatusRemoteAsName},
$self->{bgpPeerStatusState},
$self->{bgpPeerStatusLastError}||"no error"
);
$self->{bgpPeerStatusFaulty} = $self->{bgpPeerStatusRemoteAsImportant} ? 1 : 0;
}
}

View file

@ -1,18 +0,0 @@
package Classes::Vormetric;
our @ISA = qw(Classes::Device);
use strict;
sub init {
my ($self) = @_;
if ($self->mode =~ /device::hardware::health/) {
$self->analyze_and_check_environmental_subsystem("Classes::Vormetric::Component::EnvironmentalSubsystem");
} elsif ($self->mode =~ /device::hardware::load/) {
$self->analyze_and_check_cpu_subsystem("Classes::Vormetric::Component::CpuSubsystem");
} elsif ($self->mode =~ /device::hardware::memory/) {
$self->analyze_and_check_mem_subsystem("Classes::Vormetric::Component::MemSubsystem");
} else {
$self->no_such_mode();
}
}

View file

@ -1,60 +0,0 @@
package Classes::Vormetric::Component::CpuSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects('VORMETRIC-MIB', (qw(vmstat)));
my @columns = ();
foreach my $line (split(/\n/, $self->{vmstat})) {
$line =~ s/^\s+//;
$line =~ s/\s+$//;
if ($line =~ /free/) {
@columns = split(/\s+/, $line);
} elsif ($line =~ /^[\d\s]+$/) {
my @metrics = split(/\s+/, $line);
while (@columns) {
my $column = shift @columns;
$self->{$column} = shift @metrics;
}
}
}
$self->{busy} = $self->{us} + $self->{sy};
}
sub check {
my ($self) = @_;
$self->add_info('checking cpu');
$self->add_info(sprintf 'cpu is %.2f%% busy', $self->{busy});
$self->set_thresholds(
metric => 'cpu_busy',
warning => 90,
critical => 95);
$self->add_message($self->check_thresholds(
metric => 'cpu_busy',
value => $self->{busy}));
$self->add_perfdata(
label => 'cpu_busy',
value => $self->{busy},
uom => '%',
);
$self->add_info(sprintf '(%.2f%% io wait)', $self->{wa});
$self->set_thresholds(
metric => 'cpu_iowait',
warning => 10,
critical => 20);
$self->add_message($self->check_thresholds(
metric => 'cpu_iowait',
value => $self->{wa}));
$self->add_perfdata(
label => 'cpu_iowait',
value => $self->{wa},
uom => '%',
);
}
__END__
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 29696 778556 271924 1014372 0 0 0 1 1 1 1 0 99 0 0

View file

@ -1,53 +0,0 @@
package Classes::Vormetric::Component::DiskSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->{filesystems} = [];
$self->get_snmp_objects('VORMETRIC-MIB', (qw(diskUsage)));
foreach my $line (split(/\n/, $self->{diskUsage})) {
if ($line =~ /(.*?)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)%\s+(.*)/) {
push(@{$self->{filesystems}},
Classes::Vormetric::Component::DiskSubsystem::Filesystem->new(
device => $1,
size => $2 * 1024*1024,
used => $3 * 1024*1024,
available => $4 * 1024*1024,
usedpct => $5,
mountpoint => $6,
));
}
}
}
package Classes::Vormetric::Component::DiskSubsystem::Filesystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::TableItem);
use strict;
sub finish {
my ($self) = @_;
$self->{freepct} = 100 - $self->{usedpct};
}
sub check {
my ($self) = @_;
$self->add_info(sprintf "%s has %d%% free space",
$self->{mountpoint}, $self->{freepct});
my $label = $self->{mountpoint}."_free_pct";
$self->set_thresholds(
metric => $label,
warning => "10:",
critical => "5:",
);
$self->add_message($self->check_thresholds(
metric => $label,
value => $self->{freepct}));
$self->add_perfdata(
label => $label,
value => $self->{freepct},
uom => "%",
);
}

View file

@ -1,23 +0,0 @@
package Classes::Vormetric::Component::EnvironmentalSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->{disk_subsystem} =
Classes::Vormetric::Component::DiskSubsystem->new();
}
sub check {
my ($self) = @_;
$self->{disk_subsystem}->check();
if (! $self->check_messages()) {
$self->add_ok("environmental hardware working fine");
}
}
sub dump {
my ($self) = @_;
$self->{disk_subsystem}->dump();
}

View file

@ -1,52 +0,0 @@
package Classes::Vormetric::Component::MemSubsystem;
our @ISA = qw(Monitoring::GLPlugin::SNMP::Item);
use strict;
sub init {
my ($self) = @_;
$self->get_snmp_objects('VORMETRIC-MIB', (qw(vmstat)));
my @columns = ();
foreach my $line (split(/\n/, $self->{vmstat})) {
$line =~ s/^\s+//;
$line =~ s/\s+$//;
if ($line =~ /free/) {
@columns = split(/\s+/, $line);
} elsif ($line =~ /^[\d\s]+$/) {
my @metrics = split(/\s+/, $line);
while (@columns) {
my $column = shift @columns;
$self->{$column} = shift @metrics;
# default is 1024bytes, but it may change
$self->{$column} *= 8 * $self->number_of_bits("KB");
}
}
}
$self->{total} = $self->{free} + $self->{buff} + $self->{cache} + $self->{swpd};
$self->{mem_free_pct} = $self->{free} / $self->{total} * 100;
$self->{mem_used_pct} = 100 - $self->{mem_free_pct};
}
sub check {
my ($self) = @_;
$self->add_info('checking memory');
$self->add_info(sprintf 'memory used is %.2f%%',
$self->{mem_used_pct});
$self->set_thresholds(
metric => 'mem_used_pct',
warning => 80,
critical => 90);
$self->add_message($self->check_thresholds(
metric => 'mem_used_pct',
value => $self->{mem_used_pct}));
$self->add_perfdata(
label => 'mem_used_pct',
value => $self->{mem_used_pct},
uom => '%',
);
}
__END__
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 29696 778556 271924 1014372 0 0 0 1 1 1 1 0 99 0 0

View file

@ -1,91 +1,3 @@
* 2022-07-29 10.3
add mode check-rtt (cisco-rttmon-mib slas)
* 2022-07-21 10.2.1
increase cpu thresholds for linux, separate user/system/etc from iowait
* 2022-07-20 10.2
update glplugin, better get_table fallback handling
* 2022-05-05 10.1.0.3
fix a pull-request. Und das war damit auch der letzte Pull-Request, den ich in meinem Leben angenommen habe.
* 2022-05-04 10.1.0.2
use JSON::XS in Interface.pm to avoid misleading UNKNOWN error message
* 2022-02-23 10.1.0.1
suppress unknown arista sensors which are not marked as faulty
* 2022-02-18 10.1
check filesystems in Arista (full Log/Core stops syslog and accounting)
accept disabled sensors
* 2022-01-13 10.0.0.3
bugfix in arista power supply
* 2022-01-07 10.0.0.2
bugfix in f5 ltm detail output
* 2021-11-22 10.0.0.1
tweak barracuda hardware-health snmp parameters
* 2021-11-16 10.0
use json for temporary files
* 2021-10-13 9.1
add Pulse Secure
* 2021-10-08 9.0.1.2
update git with latest cisco license gedoens
* 2021-09-21 9.0.1.1
remove broken line from Makefile.am
* 2021-09-08 9.0.1
improve cisco license checks
* 2021-09-01 9.0
add Versa Appliance, add HP Aruba
* 2021-08-24 8.5.0.1
tweak barracuda snmp params for interface/route checks
* 2021-07-27 8.5
improve Barracuda cluster-check
* 2021-06-30 8.4
add bgp for huawei
* 2021-06-16 8.3.3.3
bugfix in UCD-MIB memory
* 2021-05-31 8.3.3.2
bugfix in IOS cpu-load for very old models without CISCO-PROCESS-MIB
* 2021-05-31 8.3.3.1
bugfix in f5 memory-usage, correct negative values
* 2021-05-20 8.3.3
Add vpn sessions for Fortigate PR #279
* 2021-05-18 8.3.2.4
optimize etherlike and rmon walks
* 2021-05-12 8.3.2.3
save bgp peer local addresses and show them in the error case
* 2021-04-29 8.3.2.2
Blacklist storage device "junosprocfs" on JunOS (Juniper) devices PR #278
* 2021-04-15 8.3.2.1
bugfix in f5 cpu-load, correct negative values
* 2021-03-23 8.3.2
query LM-SENSORS-MIB only if it exists on Linux (it may hang even if not existing)
* 2021-03-19 8.3.1.2
bugfix in CISCO-ENTITY-SENSOR-MIB. Scale values correctly.
* 2021-03-02 8.3.1.1
bugfix in interface-stack-status (triggered when --name did not match)
* 2021-02-12 8.3.1
add mode license-status for cisco
* 2021-02-08 8.3
split Bluecat in AddressManager and DnsDhcpServer
* 2021-01-28 8.2.0.2
do not use cpmCPUMemoryHCCommitted, except if you want mem usage > 100%
* 2021-01-27 8.2.0.1
check the memory of all members in a cisco stack only if there are > 1 members
* 2021-01-22 8.2
check the memory of all members in a cisco stack
* 2021-01-18 8.1.0.1
bugfix in Bluecat jvm
* 2021-01-18 8.1
add Bluecat Address Manager
* 2021-01-13 8.0.0.2
bugfix in HOST-RESOURCE-MIB memory (Arista triggered)
bugfix in CISCO-ENVMON-MIB, temperatures > 200
* 2021-01-13 8.0.0.1
bugfix in arista bgp, mitigate admin down
* 2020-10-22 8.0
broadcast traffic is now shown as percentage of the overall traffic (...broadcast_in) and percentage of the available bandwitdth (..._broadcast_usage_in).
errors and discards are now calculated as percentage of all received/sent packets.
TenGig-VRF-MPLS-Dingsbums without errors and discard metrics are no longer treated as StackSubs.
* 2020-10-12 7.13
add Vormetric Appliance
* 2020-09-18 7.12.2
add some exceptions to hrDeviceDiskStorage and hrDeviceNetwork
* 2020-09-08 7.12.1.3
fix a bug in mode count-routes, update glplugin
* 2020-07-13 7.12.1.2

View file

@ -11,8 +11,6 @@ use IO::File;
use File::Basename;
use Digest::MD5 qw(md5_hex);
use Errno;
use JSON;
use File::Slurp qw(read_file);
use Data::Dumper;
$Data::Dumper::Indent = 1;
eval {
@ -22,7 +20,7 @@ eval {
$Data::Dumper::Sparseseen = 1;
};
our $AUTOLOAD;
*VERSION = \'5.1.1';
*VERSION = \'3.2.26.2';
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
@ -79,10 +77,8 @@ sub dumper {
sub no_such_mode {
my ($self) = @_;
$self->nagios_exit(3,
sprintf "Mode %s is not implemented for this type of device",
$self->opts->mode
);
printf "Mode %s is not implemented for this type of device\n",
$self->opts->mode;
exit 3;
}
@ -897,7 +893,7 @@ sub getopts {
# der fliegt raus, sonst gehts gleich wieder in needs_restart rein
next if $option eq "runas";
foreach my $spec (map { $_->{spec} } @{$Monitoring::GLPlugin::plugin->opts->{_args}}) {
if ($spec =~ /^([\-\w]+)[\?\+:\|\w+]*=(.*)/) {
if ($spec =~ /^(\w+)[\|\w+]*=(.*)/) {
if ($1 eq $option && $2 =~ /s%/) {
foreach (keys %{$self->opts->$option()}) {
push(@restart_opts, sprintf "--%s", $option);
@ -1455,9 +1451,7 @@ sub protect_value {
});
} else {
# if the device gives us an clearly wrong value, simply use the last value.
my $laststate = $self->load_state(name => 'protect_'.$ident.'_'.$key) || {
exception => 0,
};
my $laststate = $self->load_state(name => 'protect_'.$ident.'_'.$key);
$self->debug(sprintf "self->{%s} is %s and invalid for the %dth time",
$key, defined $self->{$key} ? $self->{$key} : "<undef>",
$laststate->{exception} + 1);
@ -1483,11 +1477,7 @@ sub save_state {
}
my $seekfh = IO::File->new();
if ($seekfh->open($tmpfile, "w")) {
my $coder = JSON::XS->new->ascii->pretty->allow_nonref;
my $jsonscalar = $coder->encode($params{save});
$seekfh->print($jsonscalar);
# the very time-consuming old way.
# $seekfh->printf("%s", Data::Dumper::Dumper($params{save}));
$seekfh->printf("%s", Data::Dumper::Dumper($params{save}));
$seekfh->flush();
$seekfh->close();
$self->debug(sprintf "saved %s to %s",
@ -1506,18 +1496,10 @@ sub load_state {
our $VAR1;
eval {
delete $INC{$statefile} if exists $INC{$statefile}; # else unit tests fail
my $jsonscalar = read_file($statefile);
my $coder = JSON::XS->new->ascii->pretty->allow_nonref;
$VAR1 = $coder->decode($jsonscalar);
require $statefile;
};
if($@) {
$self->debug(sprintf "json load from %s failed. fallback", $statefile);
eval {
require $statefile;
};
if($@) {
printf "FATAL: Could not load old state in perl format!\n";
}
printf "FATAL: Could not load state!\n";
}
$self->debug(sprintf "load %s from %s", Data::Dumper::Dumper($VAR1), $statefile);
return $VAR1;

View file

@ -531,14 +531,12 @@ sub check_thresholds {
$value = $params{value};
my $metric = $params{metric};
if ($metric ne 'default') {
$warningrange = defined $params{warning} ? $params{warning} :
(exists $self->{thresholds}->{$metric}->{warning} ?
$self->{thresholds}->{$metric}->{warning} :
$self->{thresholds}->{default}->{warning});
$criticalrange = defined $params{critical} ? $params{critical} :
(exists $self->{thresholds}->{$metric}->{critical} ?
$self->{thresholds}->{$metric}->{critical} :
$self->{thresholds}->{default}->{critical});
$warningrange = exists $self->{thresholds}->{$metric}->{warning} ?
$self->{thresholds}->{$metric}->{warning} :
$self->{thresholds}->{default}->{warning};
$criticalrange = exists $self->{thresholds}->{$metric}->{critical} ?
$self->{thresholds}->{$metric}->{critical} :
$self->{thresholds}->{default}->{critical};
} else {
$warningrange = (defined $params{warning}) ?
$params{warning} : $self->{thresholds}->{default}->{warning};

View file

@ -142,27 +142,6 @@ sub getopts {
*{"all_my_opts"} = sub {
return $self->{opts}->{all_my_opts};
};
foreach (@{$self->{_args}}) {
$_->{spec} =~ /^([\w\-]+)/;
my $spec = $1;
my $envname = uc $spec;
$envname =~ s/\-/_/g;
if (! exists $commandline{$spec}) {
# Kommandozeile hat oberste Prioritaet
# Also: --option ueberschreibt NAGIOS__HOSTOPTION
# Aaaaber: extra-opts haben immer noch Vorrang vor allem anderen.
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
# beschreibt das anders, Posix-Tools verhalten sich auch entsprechend.
# Irgendwann wird das hier daher umgeschrieben, so dass extra-opts
# die niedrigste Prioritaet erhalten.
if (exists $ENV{'NAGIOS__SERVICE'.$envname}) {
$commandline{$spec} = $ENV{'NAGIOS__SERVICE'.$envname};
} elsif (exists $ENV{'NAGIOS__HOST'.$envname}) {
$commandline{$spec} = $ENV{'NAGIOS__HOST'.$envname};
}
}
$self->{opts}->{$spec} = $_->{default};
}
foreach (map { $_->{spec} =~ /^([\w\-]+)/; $1; }
grep { exists $_->{required} && $_->{required} } @{$self->{_args}}) {
do { $self->print_usage(); exit 3 } if ! exists $commandline{$_};

View file

@ -5,8 +5,6 @@ our @ISA = qw(Monitoring::GLPlugin);
use strict;
use File::Basename;
use Digest::MD5 qw(md5_hex);
use JSON;
use File::Slurp qw(read_file);
use Module::Load;
use AutoLoader;
our $AUTOLOAD;
@ -370,39 +368,12 @@ sub init {
printf "OK - all requested oids are in %s\n", $name;
}
} else {
my @credentials = ();
my $credmapping = {
"-community" => "-c",
"-privpassword" => "-X",
"-privprotocol" => "-x",
"-authpassword" => "-A",
"-authprotocol" => "-a",
"-username" => "-u",
"-context" => "-n",
"-version" => "-v",
};
foreach (keys %{$Monitoring::GLPlugin::SNMP::session_params}) {
if (exists $credmapping->{$_}) {
push(@credentials, sprintf "%s '%s'",
$credmapping->{$_},
$Monitoring::GLPlugin::SNMP::session_params->{$_}
);
}
}
if (grep(/-X/, @credentials) and grep(/-A/, @credentials)) {
push(@credentials, "-l authPriv");
} elsif (grep(/-A/, @credentials)) {
push(@credentials, "-l authNoPriv");
} else {
push(@credentials, "-l noAuthNoPriv");
}
my $credentials = join(" ", @credentials);
$credentials =~ s/-v2 /-v2c /g;
printf "rm -f %s\n", $name;
foreach (@trees) {
printf "%s -ObentU %s %s %s >> %s\n",
printf "%s -ObentU -v%s -c %s %s %s >> %s\n",
($self->mode =~ /bulk/) ? "snmpbulkwalk -t 15 -r 20" : "snmpwalk",
$credentials,
$self->opts->protocol,
$self->opts->community,
$self->opts->hostname,
$_, $name;
}
@ -821,7 +792,7 @@ sub init {
push(@{$mibdepot}, ['1.3.6.1.2.1.65', 'ietf', 'v2', 'WWW-MIB']);
push(@{$mibdepot}, ['1.3.6.1.4.1.8072', 'net-snmp', 'v2', 'NET-SNMP-MIB']);
my $oids = $self->get_entries_by_walk(-varbindlist => [
'1.3.6.1.2.1', '1.3.6.1.4.1', '1',
'1.3.6.1.2.1', '1.3.6.1.4.1',
]);
foreach my $mibinfo (@{$mibdepot}) {
next if $self->opts->protocol eq "1" && $mibinfo->[2] ne "v1";
@ -845,8 +816,7 @@ sub init {
}
my $toplevels = {};
map {
/^(1\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+)\./ and $toplevels->{$1} = 1;
/^(1\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+\.\d+)\./ and $toplevels->{$1} = 1;
/^(1\.3\.6\.1\.(\d+)\.(\d+)\.\d+\.\d+)\./; $toplevels->{$1} = 1;
} keys %{$unknowns};
foreach (sort {$a cmp $b} keys %{$toplevels}) {
push(@outputlist, ["<unknown>", $_]);
@ -938,11 +908,8 @@ sub check_snmp_and_model {
}
}
$self->opts->override_opt('hostname', 'walkhost') if $self->opts->mode ne 'walk';
my $current_oid = undef;
my @multiline_string = ();
open(MESS, $self->opts->snmpwalk);
while(<MESS>) {
next if /No Such Object available on this agent at this OID/;
# SNMPv2-SMI::enterprises.232.6.2.6.7.1.3.1.4 = INTEGER: 6
if (/^([\d\.]+) = .*?INTEGER: .*\((\-*\d+)\)/) {
# .1.3.6.1.2.1.2.2.1.8.1 = INTEGER: down(2)
@ -952,9 +919,6 @@ sub check_snmp_and_model {
$response->{$1} = $2;
} elsif (/^([\d\.]+) = STRING:\s*$/) {
$response->{$1} = "";
} elsif (/^([\.\d]+) = STRING: "([^"]*)$/) {
$current_oid = $1;
push(@multiline_string, $2);
} elsif (/^([\d\.]+) = Network Address: (.*)/) {
$response->{$1} = $2;
} elsif (/^([\d\.]+) = Hex-STRING: (.*)/) {
@ -975,17 +939,6 @@ sub check_snmp_and_model {
} elsif (/^([\d\.]+) = "(.*?)"/) {
$response->{$1} = $2;
$response->{$1} =~ s/\s+$//;
} elsif (/^([^"]*)"$/ && @multiline_string && $current_oid) {
push(@multiline_string, $1);
$response->{$current_oid} = join("\n", @multiline_string);
$current_oid = undef;
@multiline_string = ();
} elsif (/^"$/ && @multiline_string && $current_oid) {
$response->{$current_oid} = join("\n", @multiline_string);
$current_oid = undef;
@multiline_string = ();
} elsif (/(.*)/ && @multiline_string && $current_oid) {
push(@multiline_string, $1);
}
}
close MESS;
@ -1038,27 +991,25 @@ sub check_snmp_and_model {
scalar localtime (time - $sysUptime),
$self->human_timeticks($sysUptime));
}
my $best_uptime = undef;
if ($hrSystemUptime) {
# Bei Linux-basierten Geraeten wird snmpEngineTime viel zu haeufig
# durchgestartet, also lieber das hier.
$best_uptime = $hrSystemUptime;
# Es sei denn, snmpEngineTime ist tatsaechlich groesser, dann gilt
# wiederum dieses. Mag sein, dass der zahlenwert hier manchmal huepft
# und ein Performancegraph Zacken bekommt, aber das ist mir egal.
# es geht nicht um Graphen in Form einer ansteigenden Geraden, sondern
# um das Erkennen von spontanen Reboots und das Vermeiden von
# falschen Alarmen.
if ($snmpEngineTime && $snmpEngineTime > $hrSystemUptime) {
$best_uptime = $snmpEngineTime;
if (defined $sysUptime && defined $sysDescr) {
if ($hrSystemUptime) {
# Bei Linux-basierten Geraeten wird snmpEngineTime viel zu haeufig
# durchgestartet, also lieber das hier.
$self->{uptime} = $hrSystemUptime;
# Es sei denn, snmpEngineTime ist tatsaechlich groesser, dann gilt
# wiederum dieses. Mag sein, dass der zahlenwert hier manchmal huepft
# und ein Performancegraph Zacken bekommt, aber das ist mir egal.
# es geht nicht um Graphen in Form einer ansteigenden Geraden, sondern
# um das Erkennen von spontanen Reboots und das Vermeiden von
# falschen Alarmen.
if ($snmpEngineTime && $snmpEngineTime > $hrSystemUptime) {
$self->{uptime} = $snmpEngineTime;
}
} elsif ($snmpEngineTime) {
$self->{uptime} = $snmpEngineTime;
} else {
$self->{uptime} = $sysUptime;
}
} elsif ($snmpEngineTime) {
$best_uptime = $snmpEngineTime;
} else {
$best_uptime = $sysUptime;
}
if (defined $best_uptime && defined $sysDescr) {
$self->{uptime} = $best_uptime;
$self->{productname} = $sysDescr;
$self->{sysobjectid} = $self->get_snmp_object('MIB-2-MIB', 'sysObjectID', 0);
$self->debug(sprintf 'uptime: %s', $self->{uptime});
@ -1092,11 +1043,11 @@ sub check_snmp_and_model {
}
if (! $mein_lieber_freund_und_kupferstecher) {
$self->add_message(UNKNOWN,
'got neither sysUptime and sysDescr nor any other useful information, is this snmp agent working correctly?');
'got neither sysUptime nor sysDescr nor any other useful information, is this snmp agent working correctly?');
}
} else {
$self->add_message(UNKNOWN,
'Did not receive both sysUptime and sysDescr, is this snmp agent working correctly?');
'got neither sysUptime nor sysDescr, is this snmp agent working correctly?');
}
$Monitoring::GLPlugin::SNMP::session->close if $Monitoring::GLPlugin::SNMP::session;
}
@ -1213,7 +1164,6 @@ sub establish_snmp_session {
}
$Monitoring::GLPlugin::SNMP::max_msg_size = $max_msg_size;
$Monitoring::GLPlugin::SNMP::session = $session;
$Monitoring::GLPlugin::SNMP::session_params = \%params;
}
} else {
$self->add_message(CRITICAL,
@ -1303,7 +1253,7 @@ sub bulk_baeh_reset {
my ($self, $maxrepetitions) = @_;
$self->reset_snmp_max_msg_size();
$Monitoring::GLPlugin::SNMP::maxrepetitions =
int($Monitoring::GLPlugin::SNMP::session->max_msg_size() * 0.017);
$Monitoring::GLPlugin::SNMP::session->max_msg_size() * 0.017;
}
sub bulk_is_baeh {
@ -1346,10 +1296,8 @@ sub no_such_mode {
}
}
if (ref($self) eq "Monitoring::GLPlugin::SNMP") {
$self->nagios_exit(3,
sprintf "Mode %s is not implemented for this type of device",
$self->opts->mode
);
printf "Mode %s is not implemented for this type of device\n",
$self->opts->mode;
exit 3;
}
}
@ -1505,10 +1453,6 @@ sub implements_mib {
grep { # following oid is inside this tree
substr($_, 0, length($check_oid)) eq $check_oid
} keys %{$traces}) {
if (exists $traces->{$check_oid} &&
$traces->{$check_oid} eq "endOfMibView") {
return 0;
}
$self->debug(sprintf "implements %s (found traces)", $mib);
return 1;
}
@ -1662,14 +1606,9 @@ sub save_cache {
$self->create_statefilesdir();
my $statefile = $self->create_entry_cache_file($mib, $table, join('#', @{$key_attrs}));
my $tmpfile = $statefile.$$.rand();
my $fh = IO::File->new();
if ($fh->open($tmpfile, "w")) {
my $coder = JSON::XS->new->ascii->pretty->allow_nonref;
my $jsonscalar = $coder->encode($self->{$cache});
$fh->print($jsonscalar);
$fh->flush();
$fh->close();
}
open(STATE, ">".$tmpfile);
printf STATE Data::Dumper::Dumper($self->{$cache});
close STATE;
rename $tmpfile, $statefile;
$self->debug(sprintf "saved %s to %s",
Data::Dumper::Dumper($self->{$cache}), $statefile);
@ -1681,26 +1620,25 @@ sub load_cache {
my $statefile = $self->create_entry_cache_file($mib, $table, join('#', @{$key_attrs}));
$self->{$cache} = {};
if ( -f $statefile) {
my $jsonscalar = read_file($statefile);
our $VAR1;
our $VAR2;
eval {
my $coder = JSON::XS->new->ascii->pretty->allow_nonref;
$VAR1 = $coder->decode($jsonscalar);
require $statefile;
};
if($@) {
$self->debug(sprintf "json load from %s failed. fallback", $statefile);
delete $INC{$statefile} if exists $INC{$statefile}; # else unit tests fail
eval "$jsonscalar";
if($@) {
printf "FATAL: Could not load cache in perl format!\n";
$self->debug(sprintf "fallback perl load from %s failed", $statefile);
}
printf "FATAL: Could not load cache!\n";
}
# keinesfalls mehr require verwenden!!!!!!
# beim require enthaelt VAR1 andere werte als beim slurp
# und zwar diejenigen, die beim letzten save_cache geschrieben wurden.
my $content = do { local (@ARGV, $/) = $statefile; my $x = <>; close ARGV; $x };
$VAR1 = eval "$content";
$self->debug(sprintf "load %s", Data::Dumper::Dumper($VAR1));
$self->{$cache} = $VAR1;
}
}
################################################################
# top-level convenience functions
#
@ -1892,7 +1830,7 @@ sub get_table_row_oids {
} map {
[$_, $Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}->{$_}]
} keys %{$Monitoring::GLPlugin::SNMP::MibsAndOids::mibs_and_oids->{$mib}};
return $self->sort_oids(\@columns);
return @columns;
}
# get_snmp_table_objects('MIB-Name', 'Table-Name', 'Table-Entry', [indices])
@ -2189,7 +2127,6 @@ sub get_entries_get_bulk {
$newparams{-contextengineid} = $self->opts->contextengineid if $self->opts->contextengineid;
$newparams{-contextname} = $self->opts->contextname if $self->opts->contextname;
}
delete $newparams{'-maxrepetitions'}; # bulk howe gsagt!!
$result = $Monitoring::GLPlugin::SNMP::session->get_entries(%newparams);
return $result;
}
@ -2438,9 +2375,6 @@ sub get_entries_by_walk {
while (my $result = $Monitoring::GLPlugin::SNMP::session->get_bulk_request(%params)) {
my @names = $Monitoring::GLPlugin::SNMP::session->var_bind_names();
my @oids = $self->sort_oids(\@names);
foreach (keys %{$result}) {
$self->add_rawdata($_, $result->{$_});
}
$params{-varbindlist} = [pop @oids];
}
}
@ -2474,7 +2408,6 @@ sub get_table {
if (! defined $result || (defined $result && ! %{$result})) {
$self->debug(sprintf "get_table error: %s",
$Monitoring::GLPlugin::SNMP::session->error());
my $fallback = 0;
if ($Monitoring::GLPlugin::SNMP::session->error() =~ /message size exceeded.*buffer maxMsgSize/i) {
# bei irrsinnigen maxrepetitions
$self->debug(sprintf "buffer exceeded");
@ -2486,24 +2419,12 @@ sub get_table {
} else {
$self->mult_snmp_max_msg_size(2);
}
$fallback = 1;
} elsif ($Monitoring::GLPlugin::SNMP::session->error() =~ /No response from remote host/i) {
# some agents can not handle big loads
if ($params{'-maxrepetitions'}) {
$params{'-maxrepetitions'} = int($params{'-maxrepetitions'} / 2);
$self->debug(sprintf "reduce maxrepetitions to %d",
$params{'-maxrepetitions'});
$fallback = 1;
}
}
if ($fallback) {
$self->debug("get_table error: try fallback");
$self->debug(sprintf "get_table %s", Data::Dumper::Dumper(\%params));
$tic = time;
$result = $Monitoring::GLPlugin::SNMP::session->get_table(%params);
$tac = time;
$self->debug(sprintf "get_table returned %d oids in %ds", scalar(keys %{$result}), $tac - $tic);
}
$self->debug("get_table error: try fallback");
$self->debug(sprintf "get_table %s", Data::Dumper::Dumper(\%params));
$result = $Monitoring::GLPlugin::SNMP::session->get_table(%params);
$tac = time;
$self->debug(sprintf "get_table returned %d oids in %ds", scalar(keys %{$result}), $tac - $tic);
if (! defined $result || ! %{$result}) {
$self->debug(sprintf "get_table error: %s",
$Monitoring::GLPlugin::SNMP::session->error());
@ -2511,7 +2432,6 @@ sub get_table {
$params{'-maxrepetitions'} = 1;
$self->debug("get_table error: try getnext fallback");
$self->debug(sprintf "get_table %s", Data::Dumper::Dumper(\%params));
$tic = time;
$result = $Monitoring::GLPlugin::SNMP::session->get_table(%params);
$tac = time;
$self->debug(sprintf "get_table returned %d oids in %ds", scalar(keys %{$result}), $tac - $tic);
@ -2673,23 +2593,19 @@ sub make_symbolic {
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition} &&
ref($Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}) eq 'CODE') {
if ($parameters) {
my @args = ($result->{$fulloid});
foreach my $parameter (split(",", $parameters)) {
if (! exists $mo->{$parameter}) {
# this happens if there are two isolated get_snmp_object calls, one for
# cLHaPeerIpAddressType and one for cLHaPeerIpAddress where the latter needs
# the symbolized value of the first. we are inside this index-loop because
# both have this usual extra .0 although this is not a table row.
# if this were a table row, $mo would know cLHaPeerIpAddressType.
# there's a chance that $self got cLHaPeerIpAddressType in a previous call
# to make_symbolic
if (@{$indices} and scalar(@{$indices}) == 1 and ! $indices->[0]->[0]) {
$mo->{$parameter} = $self->{$parameter};
}
if (! exists $mo->{$parameters}) {
# this happens if there are two isolated get_snmp_object calls, one for
# cLHaPeerIpAddressType and one for cLHaPeerIpAddress where the latter needs
# the symbolized value of the first. we are inside this index-loop because
# both have this usual extra .0 although this is not a table row.
# if this were a table row, $mo would know cLHaPeerIpAddressType.
# there's a chance that $self got cLHaPeerIpAddressType in a previous call
# to make_symbolic
if (@{$indices} and scalar(@{$indices}) == 1 and ! $indices->[0]->[0]) {
$mo->{$parameters} = $self->{$parameters};
}
push(@args, $mo->{$parameter});
}
$mo->{$symoid} = $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}->(@args);
$mo->{$symoid} = $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}->($result->{$fulloid}, $mo->{$parameters});
} else {
$mo->{$symoid} = $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}->($result->{$fulloid});
}
@ -2757,16 +2673,12 @@ sub make_symbolic {
exists $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition} &&
ref($Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}) eq 'CODE') {
if ($parameters) {
my @args = ($result->{$fulloid});
foreach my $parameter (split(",", $parameters)) {
if (! exists $mo->{$parameter}) {
if (@{$indices} and scalar(@{$indices}) == 1 and ! $indices->[0]->[0]) {
$mo->{$parameter} = $self->{$parameter};
}
if (! exists $mo->{$parameters}) {
if (@{$indices} and scalar(@{$indices}) == 1 and ! $indices->[0]->[0]) {
$mo->{$parameters} = $self->{$parameters};
}
push(@args, $mo->{$parameter});
}
$mo->{$symoid} = $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}->(@args);
$mo->{$symoid} = $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}->($result->{$fulloid}, $mo->{$parameters});
} else {
$mo->{$symoid} = $Monitoring::GLPlugin::SNMP::MibsAndOids::definitions->{$mib}->{$definition}->($result->{$fulloid});
}

Some files were not shown because too many files have changed in this diff Show more