add snmp-exporter
This commit is contained in:
parent
719ff8189a
commit
bb2c1270a2
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@ KUBECTL = kubectl
|
|||
KUBECTLFLAGS =
|
||||
KUBECTLDIFFFLAGS =
|
||||
KUBECTLDIFFPRINTER = highlight --out-format xterm256 --syntax diff
|
||||
KUBECTLAPPLYFLAGS = --prune
|
||||
KUBECTLAPPLYFLAGS = --prune --server-side --force-conflicts
|
||||
KUBECTLAPPLYPRINTER = sed -E -e 's/(.+configured)/\o033[32m\1\o033[0m/g' -e 's/(.+pruned)/\o033[31m\1\o033[0m/g'
|
||||
|
||||
SRC := $(shell find kustomize/ -type f)
|
||||
|
|
|
@ -25,14 +25,9 @@ spec:
|
|||
- name: deluge-daemon
|
||||
hostPort: 58846
|
||||
containerPort: 58846
|
||||
- name: torrent-tcp
|
||||
- name: torrent
|
||||
containerPort: 6881
|
||||
hostPort: 6881
|
||||
protocol: TCP
|
||||
- name: torrent-udp
|
||||
containerPort: 6881
|
||||
hostPort: 6881
|
||||
protocol: UDP
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1500m
|
||||
|
|
|
@ -45,3 +45,14 @@ spec:
|
|||
name: collabora
|
||||
port:
|
||||
name: http
|
||||
---
|
||||
# https://docs.nextcloud.com/server/27/admin_manual/issues/general_troubleshooting.html#service-discovery
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: server-redirectregex
|
||||
spec:
|
||||
redirectRegex:
|
||||
permanent: true
|
||||
regex: https://(.*)/.well-known/(?:card|cal)dav
|
||||
replacement: https://$${1}/remote.php/dav
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
|||
resources:
|
||||
- snmp-exporter-deployment.yaml
|
||||
|
||||
commonLabels:
|
||||
app.kubernetes.io/name: snmp-exporter
|
||||
app.kubernetes.io/part-of: monitoring
|
||||
|
||||
configMapGenerator:
|
||||
- name: exporter-config
|
||||
files:
|
||||
- snmp.yml=configurations/snmp.yml
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,128 @@
|
|||
--
|
||||
-- Copyright (c) 2005-2006
|
||||
-- Hartmut Brandt
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $FreeBSD$
|
||||
--
|
||||
-- Additional stuff for the HOST-RESOURCES MIB.
|
||||
--
|
||||
BEGEMOT-HOSTRES-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, TimeTicks
|
||||
FROM SNMPv2-SMI
|
||||
begemot
|
||||
FROM BEGEMOT-MIB;
|
||||
|
||||
begemotHostres MODULE-IDENTITY
|
||||
LAST-UPDATED "200601030000Z"
|
||||
ORGANIZATION "German Aerospace Center"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: German Aerospace Center
|
||||
Oberpfaffenhofen
|
||||
82234 Wessling
|
||||
Germany
|
||||
|
||||
Fax: +49 8153 28 2843
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The MIB for additional HOST-RESOURCES data."
|
||||
REVISION "200601030000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { begemot 202 }
|
||||
|
||||
begemotHostresObjects OBJECT IDENTIFIER ::= { begemotHostres 1 }
|
||||
|
||||
begemotHrStorageUpdate OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum number of ticks the storage table is cached."
|
||||
DEFVAL { 700 }
|
||||
::= { begemotHostresObjects 1 }
|
||||
|
||||
begemotHrFSUpdate OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum number of ticks the FS table is cached."
|
||||
DEFVAL { 700 }
|
||||
::= { begemotHostresObjects 2 }
|
||||
|
||||
begemotHrDiskStorageUpdate OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum number of ticks the disk storage table is cached."
|
||||
DEFVAL { 300 }
|
||||
::= { begemotHostresObjects 3 }
|
||||
|
||||
begemotHrNetworkUpdate OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum number of ticks the network table is cached."
|
||||
DEFVAL { 700 }
|
||||
::= { begemotHostresObjects 4 }
|
||||
|
||||
begemotHrSWInstalledUpdate OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum number of ticks the hrSWInstalledTable is cached."
|
||||
DEFVAL { 1200 }
|
||||
::= { begemotHostresObjects 5 }
|
||||
|
||||
begemotHrSWRunUpdate OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum number of ticks the hrSWRunTable and
|
||||
hrSWRunPerfTable are cached."
|
||||
DEFVAL { 300 }
|
||||
::= { begemotHostresObjects 6 }
|
||||
|
||||
begemotHrPkgDir OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The path to the package DB directory."
|
||||
DEFVAL { "/var/db/pkg" }
|
||||
::= { begemotHostresObjects 7 }
|
||||
|
||||
END
|
|
@ -0,0 +1,64 @@
|
|||
--
|
||||
-- Copyright (c) 2006
|
||||
-- Hartmut Brandt
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $Begemot: bsnmp/snmp_mibII/BEGEMOT-IP-MIB.txt,v 1.1 2006/02/14 09:04:18 brandt_h Exp $
|
||||
--
|
||||
-- Private MIB for IP stuff.
|
||||
--
|
||||
BEGEMOT-IP-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY
|
||||
FROM SNMPv2-SMI
|
||||
begemot
|
||||
FROM BEGEMOT-MIB;
|
||||
|
||||
begemotIp MODULE-IDENTITY
|
||||
LAST-UPDATED "200602130000Z"
|
||||
ORGANIZATION "German Aerospace Center"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: German Aerospace Center
|
||||
Oberpfaffenhofen
|
||||
82234 Wessling
|
||||
Germany
|
||||
|
||||
Fax: +49 8153 28 2843
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The MIB for IP stuff that is not in the official IP MIBs."
|
||||
REVISION "200602130000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { begemot 3 }
|
||||
|
||||
begemotIpObjects OBJECT IDENTIFIER ::= { begemotIp 1 }
|
||||
|
||||
END
|
|
@ -0,0 +1,160 @@
|
|||
--
|
||||
-- Copyright (c) 2014 Luiz Otavio O Souza <loos@FreeBSD.org>
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $FreeBSD$
|
||||
--
|
||||
|
||||
BEGEMOT-LM75-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
|
||||
Counter64, Integer32
|
||||
FROM SNMPv2-SMI
|
||||
TEXTUAL-CONVENTION, RowStatus
|
||||
FROM SNMPv2-TC
|
||||
begemot
|
||||
FROM BEGEMOT-MIB;
|
||||
|
||||
begemotLoos MODULE-IDENTITY
|
||||
LAST-UPDATED "201402240000Z"
|
||||
ORGANIZATION "FreeBSD"
|
||||
CONTACT-INFO
|
||||
" Luiz Otavio O Souza
|
||||
|
||||
Postal: N/A
|
||||
|
||||
Fax: N/A
|
||||
|
||||
E-Mail: loos@FreeBSD.org"
|
||||
DESCRIPTION
|
||||
"The Begemot MIB for reading lm75 sensors data."
|
||||
REVISION "201402240000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { begemot 400 }
|
||||
|
||||
begemotLm75Objects OBJECT IDENTIFIER ::= { begemotLm75 1 }
|
||||
|
||||
-- ---------------------------------------------------------- --
|
||||
-- Configuration parameters
|
||||
-- ---------------------------------------------------------- --
|
||||
|
||||
lm75Sensor OBJECT IDENTIFIER ::= { begemotlm75Objects 1 }
|
||||
|
||||
lm75Sensors OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of LM75 sensors in the system."
|
||||
::= { lm75Sensors 1 }
|
||||
|
||||
-- ---------------------------------------------------------- --
|
||||
-- TempSensor Table
|
||||
-- ---------------------------------------------------------- --
|
||||
lm75SensorTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF Lm75SensorEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table containing information about all temperature sensors."
|
||||
::= { begemotLm75Objects 2 }
|
||||
|
||||
loosTempSensorEntry OBJECT-TYPE
|
||||
SYNTAX Lm75SensorEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table entry that describes one temperature sensor."
|
||||
INDEX { lm75SensorIndex }
|
||||
::= { lm75SensorTable 1 }
|
||||
|
||||
Lm75SensorEntry ::= SEQUENCE {
|
||||
lm75SensorIndex Integer32,
|
||||
lm75SensorSysctlIndex Integer32,
|
||||
lm75SensorDesc OCTET STRING,
|
||||
lm75SensorLocation OCTET STRING,
|
||||
lm75SensorPnpInfo OCTET STRING,
|
||||
lm75SensorParent OCTET STRING,
|
||||
lm75SensorTemperature Integer32
|
||||
}
|
||||
|
||||
lm75SensorIndex OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor index."
|
||||
::= { lm75SensorEntry 1 }
|
||||
|
||||
lm75SensorSysctlIndex OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor sysctl index."
|
||||
::= { lm75SensorEntry 2 }
|
||||
|
||||
lm75SensorDesc OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor description."
|
||||
::= { lm75SensorEntry 3 }
|
||||
|
||||
lm75SensorLocation OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor location."
|
||||
::= { lm75SensorEntry 4 }
|
||||
|
||||
lm75SensorPnpInfo OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor pnp information."
|
||||
::= { lm75SensorEntry 5 }
|
||||
|
||||
lm75SensorParent OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor parent bus."
|
||||
::= { lm75SensorEntry 6 }
|
||||
|
||||
lm75SensorTemperature OBJECT-TYPE
|
||||
SYNTAX Integer32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"LM75 Sensor temperature."
|
||||
::= { lm75SensorEntry 7 }
|
||||
|
||||
END
|
|
@ -0,0 +1,62 @@
|
|||
--
|
||||
-- Copyright (c) 2001-2003
|
||||
-- Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $Begemot: bsnmp/snmpd/BEGEMOT-MIB.txt,v 1.5 2004/08/06 08:47:07 brandt Exp $
|
||||
--
|
||||
-- Begemot private definitions and root.
|
||||
--
|
||||
BEGEMOT-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY
|
||||
FROM SNMPv2-SMI
|
||||
fokus
|
||||
FROM FOKUS-MIB;
|
||||
|
||||
begemot MODULE-IDENTITY
|
||||
LAST-UPDATED "200201300000Z"
|
||||
ORGANIZATION "Fraunhofer FOKUS, CATS"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: Fraunhofer Institute for Open Communication Systems
|
||||
Kaiserin-Augusta-Allee 31
|
||||
10589 Berlin
|
||||
Germany
|
||||
|
||||
Fax: +49 30 3463 7352
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The root of the Begemot subtree of the fokus tree."
|
||||
REVISION "200201300000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { fokus 1 }
|
||||
|
||||
END
|
|
@ -0,0 +1,106 @@
|
|||
--
|
||||
-- Copyright (c) 2006
|
||||
-- Hartmut Brandt
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $Begemot: bsnmp/snmp_mibII/BEGEMOT-MIB2-MIB.txt,v 1.1 2006/02/14 09:04:18 brandt_h Exp $
|
||||
--
|
||||
-- Private MIB for MIB2.
|
||||
--
|
||||
BEGEMOT-MIB2-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, TimeTicks, Counter64
|
||||
FROM SNMPv2-SMI
|
||||
begemotIp
|
||||
FROM BEGEMOT-IP-MIB;
|
||||
|
||||
begemotMib2 MODULE-IDENTITY
|
||||
LAST-UPDATED "200908030000Z"
|
||||
ORGANIZATION "German Aerospace Center"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: German Aerospace Center
|
||||
Oberpfaffenhofen
|
||||
82234 Wessling
|
||||
Germany
|
||||
|
||||
Fax: +49 8153 28 2843
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The MIB for private mib2 stuff."
|
||||
REVISION "200908030000Z"
|
||||
DESCRIPTION
|
||||
"Second edition adds begemotIfDataPoll object."
|
||||
REVISION "200602130000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { begemotIp 1 }
|
||||
|
||||
begemotIfMaxspeed OBJECT-TYPE
|
||||
SYNTAX Counter64
|
||||
UNITS "bps"
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The speed of the fastest interface in ifTable in bps."
|
||||
::= { begemotMib2 1 }
|
||||
|
||||
begemotIfPoll OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The current polling rate for the HC 64-bit counters."
|
||||
::= { begemotMib2 2 }
|
||||
|
||||
begemotIfForcePoll OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The polling rate to be enforced for the HC 64-bit counters.
|
||||
If this value is 0 the mib2 module computes a polling rate
|
||||
depending on the value of begemotIfMaxspeed. If this value
|
||||
turns out to be wrong, the polling rate can be force to an
|
||||
arbitrary value by setting begemotIfForcePoll to a non-0
|
||||
value. This may be necessary if an interface announces a wrong
|
||||
bit rate in its MIB."
|
||||
::= { begemotMib2 3 }
|
||||
|
||||
begemotIfDataPoll OBJECT-TYPE
|
||||
SYNTAX TimeTicks
|
||||
UNITS "deciseconds"
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The rate at which the mib2 module will poll interface data."
|
||||
DEFVAL { 100 }
|
||||
::= { begemotMib2 4 }
|
||||
|
||||
END
|
|
@ -0,0 +1,411 @@
|
|||
--
|
||||
-- Copyright (c) 2001-2003
|
||||
-- Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution of this software and documentation and use in source and
|
||||
-- binary forms, with or without modification, are permitted provided that
|
||||
-- the following conditions are met:
|
||||
--
|
||||
-- 1. Redistributions of source code or documentation must retain the above
|
||||
-- copyright notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY FRAUNHOFER FOKUS
|
||||
-- AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
-- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
-- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
-- FRAUNHOFER FOKUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
-- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
-- OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
-- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- $FreeBSD$
|
||||
--
|
||||
-- Private MIB for netgraph part of Begemot SNMP daemon.
|
||||
--
|
||||
BEGEMOT-NETGRAPH-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, Counter32, Unsigned32
|
||||
FROM SNMPv2-SMI
|
||||
TEXTUAL-CONVENTION, TruthValue
|
||||
FROM SNMPv2-TC
|
||||
MODULE-COMPLIANCE, OBJECT-GROUP
|
||||
FROM SNMPv2-CONF
|
||||
begemot
|
||||
FROM BEGEMOT-MIB;
|
||||
|
||||
begemotNg MODULE-IDENTITY
|
||||
LAST-UPDATED "200311140000Z"
|
||||
ORGANIZATION "Fraunhofer FOKUS, CATS"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: Fraunhofer Institute for Open Communication Systems
|
||||
Kaiserin-Augusta-Allee 31
|
||||
10589 Berlin
|
||||
Germany
|
||||
|
||||
Fax: +49 30 3463 7352
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The MIB for the NetGraph access module for SNMP."
|
||||
REVISION "200311140000Z"
|
||||
DESCRIPTION
|
||||
"The maximum width of the following OCTET STRINGs was increased
|
||||
from 15 to 31:
|
||||
|
||||
- NgTypeName
|
||||
- NgNodeName
|
||||
- NgNodeNameOrEmpty
|
||||
- NgHookName
|
||||
"
|
||||
REVISION "200201310000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { begemot 2 }
|
||||
|
||||
begemotNgObjects OBJECT IDENTIFIER ::= { begemotNg 1 }
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
|
||||
NgTypeName ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "31a"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of a netgraph type."
|
||||
SYNTAX OCTET STRING (SIZE(1..31))
|
||||
|
||||
NgNodeName ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "31a"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of a netgraph node."
|
||||
SYNTAX OCTET STRING (SIZE(1..31))
|
||||
|
||||
NgNodeNameOrEmpty ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "31a"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of a netgraph node."
|
||||
SYNTAX OCTET STRING (SIZE(0..31))
|
||||
|
||||
NgHookName ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "31a"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of a netgraph hook."
|
||||
SYNTAX OCTET STRING (SIZE(1..31))
|
||||
|
||||
NgNodeId ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "x"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Node identifier."
|
||||
SYNTAX Unsigned32 (1..4294967295)
|
||||
|
||||
NgNodeIdOrZero ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "x"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Node identifier or 0 for 'no-node'."
|
||||
SYNTAX Unsigned32 (0..4294967295)
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
--
|
||||
-- Configuration parameters
|
||||
--
|
||||
begemotNgConfig OBJECT IDENTIFIER ::= { begemotNgObjects 1 }
|
||||
|
||||
begemotNgControlNodeName OBJECT-TYPE
|
||||
SYNTAX NgNodeName
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The name of the netgraph node of this daemon. The name is
|
||||
writeable during initialisation. If the name is set from
|
||||
the empty string to the non-empty string, the netgraph socket
|
||||
is created. Once set it cannot be changed."
|
||||
::= { begemotNgConfig 1 }
|
||||
|
||||
begemotNgResBufSiz OBJECT-TYPE
|
||||
SYNTAX INTEGER (1024..65536)
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The size of the receive buffers for netgraph messages."
|
||||
DEFVAL { 20000 }
|
||||
::= { begemotNgConfig 2 }
|
||||
|
||||
begemotNgTimeout OBJECT-TYPE
|
||||
SYNTAX INTEGER (10..10000)
|
||||
UNITS "milliseconds"
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The maximum time to wait for a response to a netgraph message."
|
||||
DEFVAL { 1000 }
|
||||
::= { begemotNgConfig 3 }
|
||||
|
||||
begemotNgDebugLevel OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The netgraph library debug level. This should be set only
|
||||
if the daemon is run with a terminal attached."
|
||||
DEFVAL { 0 }
|
||||
::= { begemotNgConfig 4 }
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
--
|
||||
-- The STATISTICS Group
|
||||
--
|
||||
begemotNgStats OBJECT IDENTIFIER ::= { begemotNgObjects 2 }
|
||||
|
||||
begemotNgNoMems OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times a memory allocation has failed for buffers
|
||||
or the message queue."
|
||||
::= { begemotNgStats 1 }
|
||||
|
||||
begemotNgMsgReadErrs OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times reading a netgraph message has failed."
|
||||
::= { begemotNgStats 2 }
|
||||
|
||||
begemotNgTooLargeMsgs OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times a netgraph message was too large for
|
||||
the buffer. Try increasing begemotNgResBufSiz if
|
||||
this happens."
|
||||
::= { begemotNgStats 3 }
|
||||
|
||||
begemotNgDataReadErrs OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times reading a netgraph data message has failed."
|
||||
::= { begemotNgStats 4 }
|
||||
|
||||
begemotNgTooLargeDatas OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times a netgraph data message was too large.
|
||||
You need to increase begemotNgResBufSiz."
|
||||
::= { begemotNgStats 5 }
|
||||
|
||||
-- -----------------------------------------------------
|
||||
--
|
||||
-- The NODE table
|
||||
--
|
||||
begemotNgTypeTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotNgTypeEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table containing information about all netgraph node types."
|
||||
::= { begemotNgObjects 3 }
|
||||
|
||||
begemotNgTypeEntry OBJECT-TYPE
|
||||
SYNTAX BegemotNgTypeEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table entry that describes one netgraph node."
|
||||
INDEX { begemotNgTypeName }
|
||||
::= { begemotNgTypeTable 1 }
|
||||
|
||||
BegemotNgTypeEntry ::= SEQUENCE {
|
||||
begemotNgTypeName NgTypeName,
|
||||
begemotNgTypeStatus INTEGER
|
||||
}
|
||||
|
||||
begemotNgTypeName OBJECT-TYPE
|
||||
SYNTAX NgTypeName
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The name of the type. Used as index."
|
||||
::= { begemotNgTypeEntry 1 }
|
||||
|
||||
begemotNgTypeStatus OBJECT-TYPE
|
||||
SYNTAX INTEGER { loaded(1), unloaded(2) }
|
||||
MAX-ACCESS read-create
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"If loaded then the node type is available. A type can be load
|
||||
by setting this field to loaded. It is unload if the field is
|
||||
set to unloaded. Note, that a type cannot be unloaded if it
|
||||
is compiled into the kernel or has nodes of this type. The name
|
||||
of the file containing the type implementation is constructed by
|
||||
prepending ng_ to the type name."
|
||||
::= { begemotNgTypeEntry 2 }
|
||||
|
||||
--
|
||||
-- Node table
|
||||
--
|
||||
begemotNgNodeTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotNgNodeEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table containing information about all netgraph nodes."
|
||||
::= { begemotNgObjects 4 }
|
||||
|
||||
begemotNgNodeEntry OBJECT-TYPE
|
||||
SYNTAX BegemotNgNodeEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table entry that describes one netgraph node."
|
||||
INDEX { begemotNgNodeId }
|
||||
::= { begemotNgNodeTable 1 }
|
||||
|
||||
BegemotNgNodeEntry ::= SEQUENCE {
|
||||
begemotNgNodeId NgNodeId,
|
||||
begemotNgNodeStatus INTEGER,
|
||||
begemotNgNodeName NgNodeNameOrEmpty,
|
||||
begemotNgNodeType NgTypeName,
|
||||
begemotNgNodeHooks Unsigned32
|
||||
}
|
||||
|
||||
begemotNgNodeId OBJECT-TYPE
|
||||
SYNTAX NgNodeId
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The 32bit node id of this node. 0 is an illegal value."
|
||||
::= { begemotNgNodeEntry 1 }
|
||||
|
||||
begemotNgNodeStatus OBJECT-TYPE
|
||||
SYNTAX INTEGER { valid(1), invalid(2) }
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Indicates whether the node exists or not."
|
||||
::= { begemotNgNodeEntry 2 }
|
||||
|
||||
begemotNgNodeName OBJECT-TYPE
|
||||
SYNTAX NgNodeNameOrEmpty
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of the node (if any)."
|
||||
::= { begemotNgNodeEntry 3 }
|
||||
|
||||
begemotNgNodeType OBJECT-TYPE
|
||||
SYNTAX NgTypeName
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Type name of the node."
|
||||
::= { begemotNgNodeEntry 4 }
|
||||
|
||||
begemotNgNodeHooks OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of hooks on this node."
|
||||
::= { begemotNgNodeEntry 5 }
|
||||
|
||||
--
|
||||
-- Hook table
|
||||
--
|
||||
begemotNgHookTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotNgHookEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table containing information about all netgraph hooks."
|
||||
::= { begemotNgObjects 5 }
|
||||
|
||||
begemotNgHookEntry OBJECT-TYPE
|
||||
SYNTAX BegemotNgHookEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Table entry that describes one netgraph node."
|
||||
INDEX { begemotNgHookNodeId, begemotNgHookHook }
|
||||
::= { begemotNgHookTable 1 }
|
||||
|
||||
BegemotNgHookEntry ::= SEQUENCE {
|
||||
begemotNgHookNodeId NgNodeId,
|
||||
begemotNgHookHook NgHookName,
|
||||
begemotNgHookStatus INTEGER,
|
||||
begemotNgHookPeerNodeId NgNodeId,
|
||||
begemotNgHookPeerHook NgHookName,
|
||||
begemotNgHookPeerType NgTypeName
|
||||
}
|
||||
|
||||
begemotNgHookNodeId OBJECT-TYPE
|
||||
SYNTAX NgNodeId
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The 32bit node id of this node."
|
||||
::= { begemotNgHookEntry 1 }
|
||||
|
||||
begemotNgHookHook OBJECT-TYPE
|
||||
SYNTAX NgHookName
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of the hook."
|
||||
::= { begemotNgHookEntry 2 }
|
||||
|
||||
begemotNgHookStatus OBJECT-TYPE
|
||||
SYNTAX INTEGER { valid(1), invalid(2) }
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Indicates whether the hook exists or not."
|
||||
::= { begemotNgHookEntry 3 }
|
||||
|
||||
begemotNgHookPeerNodeId OBJECT-TYPE
|
||||
SYNTAX NgNodeId
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The 32bit node id of the peer node of this hook."
|
||||
::= { begemotNgHookEntry 4 }
|
||||
|
||||
begemotNgHookPeerHook OBJECT-TYPE
|
||||
SYNTAX NgHookName
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of the peer hook."
|
||||
::= { begemotNgHookEntry 5 }
|
||||
|
||||
begemotNgHookPeerType OBJECT-TYPE
|
||||
SYNTAX NgTypeName
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of the peer type."
|
||||
::= { begemotNgHookEntry 6 }
|
||||
|
||||
END
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,691 @@
|
|||
--
|
||||
-- Copyright (c) 2001-2003
|
||||
-- Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Copyright (c) 2018
|
||||
-- Hartmut Brandt.
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $Begemot: bsnmp/snmpd/BEGEMOT-SNMPD.txt,v 1.23 2004/08/06 08:47:08 brandt Exp $
|
||||
--
|
||||
-- Begemot Private SNMPd MIB.
|
||||
--
|
||||
BEGEMOT-SNMPD-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, OBJECT-IDENTITY, Counter32,
|
||||
Integer32, Unsigned32, IpAddress
|
||||
FROM SNMPv2-SMI
|
||||
TEXTUAL-CONVENTION, TruthValue, RowStatus
|
||||
FROM SNMPv2-TC
|
||||
InetAddressType, InetAddress, InetPortNumber
|
||||
FROM INET-ADDRESS-MIB
|
||||
begemot
|
||||
FROM BEGEMOT-MIB;
|
||||
|
||||
begemotSnmpd MODULE-IDENTITY
|
||||
LAST-UPDATED "201808080000Z"
|
||||
ORGANIZATION "Fraunhofer FOKUS, CATS"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: Fraunhofer Institute for Open Communication Systems
|
||||
Kaiserin-Augusta-Allee 31
|
||||
10589 Berlin
|
||||
Germany
|
||||
|
||||
Fax: +49 30 3463 7352
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The MIB module for the Begemot SNMP daemon."
|
||||
REVISION "201808080000Z"
|
||||
DESCRIPTION
|
||||
"Add the begemotSnmpdTransInetTable."
|
||||
::= { begemot 1 }
|
||||
|
||||
begemotSnmpdObjects OBJECT IDENTIFIER ::= { begemotSnmpd 1 }
|
||||
begemotSnmpdDefs OBJECT IDENTIFIER ::= { begemotSnmpd 2 }
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
|
||||
SectionName ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "14a"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Name of a loadable module. Should consist of alphanumeric characers
|
||||
only, the first character must be a letter."
|
||||
SYNTAX OCTET STRING (SIZE(1..14))
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
--
|
||||
-- Agent types
|
||||
--
|
||||
begemotSnmpdAgent OBJECT IDENTIFIER ::= { begemotSnmpdDefs 1 }
|
||||
|
||||
begemotSnmpdAgentFreeBSD OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Identifies the agent as running on FreeBSD."
|
||||
::= { begemotSnmpdAgent 1 }
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
--
|
||||
-- The Config Group
|
||||
--
|
||||
begemotSnmpdConfig OBJECT IDENTIFIER ::= { begemotSnmpdObjects 1 }
|
||||
|
||||
begemotSnmpdTransmitBuffer OBJECT-TYPE
|
||||
SYNTAX Integer32 (484..65535)
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The size of the receive buffer in bytes. Larger messages
|
||||
are dropped by SNMPd."
|
||||
DEFVAL { 2048 }
|
||||
::= { begemotSnmpdConfig 1 }
|
||||
|
||||
begemotSnmpdReceiveBuffer OBJECT-TYPE
|
||||
SYNTAX Integer32 (484..65535)
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The size of the transmit buffer in bytes. Larger messages
|
||||
cannot be sent by the SNMPd."
|
||||
DEFVAL { 2048 }
|
||||
::= { begemotSnmpdConfig 2 }
|
||||
|
||||
begemotSnmpdCommunityDisable OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Disables all access to the CommunityTable from SNMP. Once
|
||||
set it cannot be cleared."
|
||||
DEFVAL { false }
|
||||
::= { begemotSnmpdConfig 3 }
|
||||
|
||||
begemotSnmpdTrap1Addr OBJECT-TYPE
|
||||
SYNTAX IpAddress
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The trap sink for v1 traps."
|
||||
::= { begemotSnmpdConfig 4 }
|
||||
|
||||
begemotSnmpdVersionEnable OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The SNMP versions that the agent processes. The following
|
||||
bits are defined:
|
||||
|
||||
0x00000001 - SNMPv1
|
||||
0x00000002 - SNMPv2c
|
||||
0x00000004 - SNMPv3"
|
||||
DEFVAL { 3 }
|
||||
::= { begemotSnmpdConfig 5 }
|
||||
|
||||
--
|
||||
-- Trap destinations
|
||||
--
|
||||
begemotTrapSinkTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotTrapSinkEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table with destinations for standard traps."
|
||||
INDEX { begemotTrapSinkAddr, begemotTrapSinkPort }
|
||||
::= { begemotSnmpdObjects 2 }
|
||||
|
||||
begemotTrapSinkEntry OBJECT-TYPE
|
||||
SYNTAX BegemotTrapSinkEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Entry describes one trap destination."
|
||||
INDEX { begemotTrapSinkAddr, begemotTrapSinkPort }
|
||||
::= { begemotTrapSinkTable 1 }
|
||||
|
||||
BegemotTrapSinkEntry ::= SEQUENCE {
|
||||
begemotTrapSinkAddr IpAddress,
|
||||
begemotTrapSinkPort INTEGER,
|
||||
begemotTrapSinkStatus RowStatus
|
||||
}
|
||||
|
||||
begemotTrapSinkAddr OBJECT-TYPE
|
||||
SYNTAX IpAddress
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Destination IP address of the manager station where to send
|
||||
traps."
|
||||
::= { begemotTrapSinkEntry 1 }
|
||||
|
||||
begemotTrapSinkPort OBJECT-TYPE
|
||||
SYNTAX Integer32 (1..65535)
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Destination UDP port of the manager station where to send
|
||||
traps."
|
||||
::= { begemotTrapSinkEntry 2 }
|
||||
|
||||
begemotTrapSinkStatus OBJECT-TYPE
|
||||
SYNTAX RowStatus
|
||||
MAX-ACCESS read-create
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Used to create/activate/destroy the entry."
|
||||
::= { begemotTrapSinkEntry 3 }
|
||||
|
||||
--
|
||||
-- SNMP port table
|
||||
--
|
||||
begemotSnmpdPortTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotSnmpdPortEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS deprecated
|
||||
DESCRIPTION
|
||||
"A table with descriptions of UDP ports to listen on
|
||||
for SNMP messages."
|
||||
::= { begemotSnmpdObjects 4 }
|
||||
|
||||
begemotSnmpdPortEntry OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdPortEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS deprecated
|
||||
DESCRIPTION
|
||||
"An entry in the table with descriptions of UDP ports to
|
||||
listen on for SNMP messages."
|
||||
INDEX { begemotSnmpdPortAddress, begemotSnmpdPortPort }
|
||||
::= { begemotSnmpdPortTable 1 }
|
||||
|
||||
BegemotSnmpdPortEntry ::= SEQUENCE {
|
||||
begemotSnmpdPortAddress IpAddress,
|
||||
begemotSnmpdPortPort INTEGER,
|
||||
begemotSnmpdPortStatus INTEGER
|
||||
}
|
||||
|
||||
begemotSnmpdPortAddress OBJECT-TYPE
|
||||
SYNTAX IpAddress
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS deprecated
|
||||
DESCRIPTION
|
||||
"The IP address to bind to."
|
||||
::= { begemotSnmpdPortEntry 1 }
|
||||
|
||||
begemotSnmpdPortPort OBJECT-TYPE
|
||||
SYNTAX Integer32 (1..65535)
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS deprecated
|
||||
DESCRIPTION
|
||||
"The UDP port to listen on for SNMP messages."
|
||||
::= { begemotSnmpdPortEntry 2 }
|
||||
|
||||
begemotSnmpdPortStatus OBJECT-TYPE
|
||||
SYNTAX INTEGER { valid(1), invalid(2) }
|
||||
MAX-ACCESS read-create
|
||||
STATUS deprecated
|
||||
DESCRIPTION
|
||||
"Set status to 1 to create entry, set it to 2 to delete it."
|
||||
::= { begemotSnmpdPortEntry 3 }
|
||||
|
||||
---
|
||||
--- Community table
|
||||
---
|
||||
begemotSnmpdCommunityTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotSnmpdCommunityEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table with the community strings for access control."
|
||||
::= { begemotSnmpdObjects 5 }
|
||||
|
||||
begemotSnmpdCommunityEntry OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdCommunityEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table with the community strings for access control.
|
||||
When begemotSnmpdCommDisable is true, this table disappears."
|
||||
INDEX { begemotSnmpdCommunityModule, begemotSnmpdCommunityIndex }
|
||||
::= { begemotSnmpdCommunityTable 1 }
|
||||
|
||||
BegemotSnmpdCommunityEntry ::= SEQUENCE {
|
||||
begemotSnmpdCommunityModule SectionName,
|
||||
begemotSnmpdCommunityIndex Unsigned32,
|
||||
begemotSnmpdCommunityString OCTET STRING,
|
||||
begemotSnmpdCommunityDescr OCTET STRING,
|
||||
begemotSnmpdCommunityPermission Unsigned32
|
||||
}
|
||||
|
||||
begemotSnmpdCommunityModule OBJECT-TYPE
|
||||
SYNTAX SectionName
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Index of the module that has registered this community.
|
||||
For global communities this is the empty string."
|
||||
::= { begemotSnmpdCommunityEntry 1 }
|
||||
|
||||
begemotSnmpdCommunityIndex OBJECT-TYPE
|
||||
SYNTAX Unsigned32 (1..4294967295)
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The numerical index of the community (private to the module)."
|
||||
::= { begemotSnmpdCommunityEntry 2 }
|
||||
|
||||
begemotSnmpdCommunityString OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The string for access to SNMPd."
|
||||
::= { begemotSnmpdCommunityEntry 3 }
|
||||
|
||||
begemotSnmpdCommunityDescr OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A description what this community is good for."
|
||||
::= { begemotSnmpdCommunityEntry 4 }
|
||||
|
||||
begemotSnmpdCommunityPermission OBJECT-TYPE
|
||||
SYNTAX Unsigned32 (1..4294967295)
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The numerical value of access rights granted to the community."
|
||||
::= { begemotSnmpdCommunityEntry 5 }
|
||||
|
||||
--
|
||||
-- Module table
|
||||
--
|
||||
begemotSnmpdModuleTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotSnmpdModuleEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table describing all the currently loaded dynamic modules.
|
||||
Writing to this table loads and unloads modules."
|
||||
::= { begemotSnmpdObjects 6 }
|
||||
|
||||
begemotSnmpdModuleEntry OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdModuleEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table entry describing a loadable module."
|
||||
INDEX { begemotSnmpdModuleSection }
|
||||
::= { begemotSnmpdModuleTable 1 }
|
||||
|
||||
BegemotSnmpdModuleEntry ::= SEQUENCE {
|
||||
begemotSnmpdModuleSection SectionName,
|
||||
begemotSnmpdModulePath OCTET STRING,
|
||||
begemotSnmpdModuleComment OCTET STRING
|
||||
}
|
||||
|
||||
begemotSnmpdModuleSection OBJECT-TYPE
|
||||
SYNTAX SectionName
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The string used for matching configuration file sections
|
||||
and indexes the module table."
|
||||
::= { begemotSnmpdModuleEntry 1 }
|
||||
|
||||
|
||||
begemotSnmpdModulePath OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-create
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The path name of the module. Set to empty string
|
||||
to unload a module. The path of an existing module
|
||||
may not be changed."
|
||||
::= { begemotSnmpdModuleEntry 2 }
|
||||
|
||||
begemotSnmpdModuleComment OBJECT-TYPE
|
||||
SYNTAX OCTET STRING
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A comment describing this module."
|
||||
::= { begemotSnmpdModuleEntry 3 }
|
||||
|
||||
|
||||
-- --------------------------------------------------------------------------
|
||||
--
|
||||
-- The STATISTICS Group
|
||||
--
|
||||
begemotSnmpdStats OBJECT IDENTIFIER ::= { begemotSnmpdObjects 7 }
|
||||
|
||||
begemotSnmpdStatsNoRxBufs OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times a receive buffer could not be allocated
|
||||
for a packet."
|
||||
::= { begemotSnmpdStats 1 }
|
||||
|
||||
begemotSnmpdStatsNoTxBufs OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of times a transmit buffer could not be allocated
|
||||
for a packet."
|
||||
::= { begemotSnmpdStats 2 }
|
||||
|
||||
begemotSnmpdStatsInTooLongPkts OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of packets received that were longer than the
|
||||
receive buffer. These packets are dropped."
|
||||
::= { begemotSnmpdStats 3 }
|
||||
|
||||
begemotSnmpdStatsInBadPduTypes OBJECT-TYPE
|
||||
SYNTAX Counter32
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Number of packets received with a bad type field."
|
||||
::= { begemotSnmpdStats 4 }
|
||||
|
||||
--
|
||||
-- The Debug Group
|
||||
--
|
||||
begemotSnmpdDebug OBJECT IDENTIFIER ::= { begemotSnmpdObjects 8 }
|
||||
|
||||
begemotSnmpdDebugDumpPdus OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Dump PDUs to log file if true."
|
||||
DEFVAL { false }
|
||||
::= { begemotSnmpdDebug 1 }
|
||||
|
||||
begemotSnmpdDebugSnmpTrace OBJECT-TYPE
|
||||
SYNTAX Unsigned32
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Tracing flags for the SNMP library. These flags have the
|
||||
following meaning:
|
||||
0x00000001 trace GET operator
|
||||
0x00000002 trace GETNEXT operator
|
||||
0x00000004 trace SET operator
|
||||
0x00000008 trace dependency processing
|
||||
0x00000010 trace node finding
|
||||
0x10000000 log ASN1 errors
|
||||
0x20000000 log SNMP errors
|
||||
Individual values can be or-ed together."
|
||||
DEFVAL { 0 }
|
||||
::= { begemotSnmpdDebug 2 }
|
||||
|
||||
begemotSnmpdDebugSyslogPri OBJECT-TYPE
|
||||
SYNTAX Integer32 (0..8)
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Events with this or higher priority should not be logged."
|
||||
DEFVAL { 7 } -- don't log debug messages
|
||||
::= { begemotSnmpdDebug 3 }
|
||||
|
||||
--
|
||||
-- Local port table
|
||||
--
|
||||
begemotSnmpdLocalPortTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotSnmpdLocalPortEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table with descriptions of local (unix domain) ports to listen
|
||||
on for SNMP messages."
|
||||
::= { begemotSnmpdObjects 9 }
|
||||
|
||||
begemotSnmpdLocalPortEntry OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdLocalPortEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"An entry in the table with descriptions of local ports to
|
||||
listen on for SNMP messages."
|
||||
INDEX { begemotSnmpdLocalPortPath }
|
||||
::= { begemotSnmpdLocalPortTable 1 }
|
||||
|
||||
BegemotSnmpdLocalPortEntry ::= SEQUENCE {
|
||||
begemotSnmpdLocalPortPath OCTET STRING,
|
||||
begemotSnmpdLocalPortStatus INTEGER,
|
||||
begemotSnmpdLocalPortType INTEGER
|
||||
}
|
||||
|
||||
begemotSnmpdLocalPortPath OBJECT-TYPE
|
||||
SYNTAX OCTET STRING (SIZE(1..104))
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The path name to create and listen on."
|
||||
::= { begemotSnmpdLocalPortEntry 1 }
|
||||
|
||||
begemotSnmpdLocalPortStatus OBJECT-TYPE
|
||||
SYNTAX INTEGER { valid(1), invalid(2) }
|
||||
MAX-ACCESS read-create
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Set status to 1 to create entry, set it to 2 to delete it."
|
||||
::= { begemotSnmpdLocalPortEntry 2 }
|
||||
|
||||
begemotSnmpdLocalPortType OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
dgram-unpriv(1),
|
||||
dgram-priv(2),
|
||||
stream-unpriv(3),
|
||||
stream-priv(4)
|
||||
}
|
||||
MAX-ACCESS read-create
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Type of the port. If the type is unpriv SET operations
|
||||
are allowed from all clients if the community matches. For
|
||||
priv SET operations are allowed only from peers with uid
|
||||
zero. If the daemon cannot determine the peer uid it disallows
|
||||
the SET operation for -priv ports."
|
||||
::= { begemotSnmpdLocalPortEntry 3 }
|
||||
|
||||
--
|
||||
-- Transport mapping table
|
||||
--
|
||||
begemotSnmpdTransportMappings OBJECT IDENTIFIER ::= { begemotSnmpdObjects 10 }
|
||||
|
||||
begemotSnmpdTransportTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotSnmpdTransportEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table containing all the currently loaded transport mappings."
|
||||
::= { begemotSnmpdTransportMappings 1 }
|
||||
|
||||
begemotSnmpdTransportEntry OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdTransportEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"An entry in the table with the transport mappings."
|
||||
INDEX { begemotSnmpdTransportName }
|
||||
::= { begemotSnmpdTransportTable 1 }
|
||||
|
||||
BegemotSnmpdTransportEntry ::= SEQUENCE {
|
||||
begemotSnmpdTransportName OCTET STRING,
|
||||
begemotSnmpdTransportStatus INTEGER,
|
||||
begemotSnmpdTransportOid OBJECT IDENTIFIER
|
||||
}
|
||||
|
||||
begemotSnmpdTransportName OBJECT-TYPE
|
||||
SYNTAX OCTET STRING (SIZE(1..256))
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The name of the mapping."
|
||||
::= { begemotSnmpdTransportEntry 1 }
|
||||
|
||||
begemotSnmpdTransportStatus OBJECT-TYPE
|
||||
SYNTAX RowStatus
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Used to create/activate/destroy the entry."
|
||||
::= { begemotSnmpdTransportEntry 2 }
|
||||
|
||||
begemotSnmpdTransportOid OBJECT-TYPE
|
||||
SYNTAX OBJECT IDENTIFIER
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A pointer to the group with the transport-dependend stuff."
|
||||
::= { begemotSnmpdTransportEntry 3 }
|
||||
|
||||
-- ----------------------------------------------------------------------
|
||||
--
|
||||
-- Internet port table.
|
||||
--
|
||||
BegemotSnmpdTransportProto ::= TEXTUAL-CONVENTION
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A value that represents the type of protocol to be used for
|
||||
listening on a socket. The following protocols are currently
|
||||
used:
|
||||
|
||||
udp(1) Use UDP for IPv4 and IPv6 sockets."
|
||||
SYNTAX INTEGER {
|
||||
udp(1)
|
||||
}
|
||||
|
||||
begemotSnmpdTransInetTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF BegemotSnmpdTransInetEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"This table contains all the ports the daemon should listen on.
|
||||
Entries can be created at initialization time via the config
|
||||
file or at run time via a SET. One row can map to several open
|
||||
sockets in the case of InetAddressType::dns rows. These rows
|
||||
open one socket for each address returned by getaddrinfo(3).
|
||||
for SNMP messages."
|
||||
::= { begemotSnmpdObjects 11 }
|
||||
|
||||
begemotSnmpdTransInetEntry OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdTransInetEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A row of the internet port table. Each row may map to one or
|
||||
more listening sockets."
|
||||
INDEX {
|
||||
begemotSnmpdTransInetAddressType,
|
||||
begemotSnmpdTransInetAddress,
|
||||
begemotSnmpdTransInetPort,
|
||||
begemotSnmpdTransInetProto
|
||||
}
|
||||
::= { begemotSnmpdTransInetTable 1 }
|
||||
|
||||
BegemotSnmpdTransInetEntry ::= SEQUENCE {
|
||||
begemotSnmpdTransInetAddressType InetAddressType,
|
||||
begemotSnmpdTransInetAddress InetAddress,
|
||||
begemotSnmpdTransInetPort InetPortNumber,
|
||||
begemotSnmpdTransInetProto BegemotSnmpdTransportProto,
|
||||
begemotSnmpdTransInetStatus RowStatus
|
||||
}
|
||||
|
||||
begemotSnmpdTransInetAddressType OBJECT-TYPE
|
||||
SYNTAX InetAddressType
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The type of the address. Only ipv4, ipv6, ipv6z and dns are
|
||||
supported."
|
||||
::= { begemotSnmpdTransInetEntry 1 }
|
||||
|
||||
begemotSnmpdTransInetAddress OBJECT-TYPE
|
||||
SYNTAX InetAddress (SIZE (0..64))
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The address. For ipv4 addresses the length must be 4, ipv6
|
||||
addresses have a length of 16 and ipv6z addresses a length of
|
||||
20 where the last four bytes are the interface index in big
|
||||
endian format. dns addresses may be of zero-length in which case
|
||||
getaddrinfo() generates INADDR_ANY and its IPv6 equivalent. dns
|
||||
addresses will open a socket for all addresses returned by
|
||||
getaddrinfo()."
|
||||
::= { begemotSnmpdTransInetEntry 2 }
|
||||
|
||||
begemotSnmpdTransInetPort OBJECT-TYPE
|
||||
SYNTAX InetPortNumber (1..65535)
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The port to listen on for SNMP messages."
|
||||
::= { begemotSnmpdTransInetEntry 3 }
|
||||
|
||||
begemotSnmpdTransInetProto OBJECT-TYPE
|
||||
SYNTAX BegemotSnmpdTransportProto
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The protocol to use. Currently only the value udp(1) is supported."
|
||||
::= { begemotSnmpdTransInetEntry 4 }
|
||||
|
||||
begemotSnmpdTransInetStatus OBJECT-TYPE
|
||||
SYNTAX RowStatus
|
||||
MAX-ACCESS read-create
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The status of the conceptual row. A row may be created using
|
||||
createAndGo(4) or createAndWait(5). An inactive row can be
|
||||
activated writing active(1) and an active row can be inactivated
|
||||
by writing notInService(2). Finally active or inactive rows can be
|
||||
deleted by writing the value destroy(6). The value of this field
|
||||
will never read as notReady(3)."
|
||||
::= { begemotSnmpdTransInetEntry 5 }
|
||||
|
||||
--
|
||||
-- XXX These should go into their own MIB
|
||||
--
|
||||
begemotSnmpdTransUdp OBJECT IDENTIFIER ::= { begemotSnmpdTransportMappings 2 }
|
||||
begemotSnmpdTransLsock OBJECT IDENTIFIER ::= { begemotSnmpdTransportMappings 3 }
|
||||
begemotSnmpdTransInet OBJECT IDENTIFIER ::= { begemotSnmpdTransportMappings 4 }
|
||||
|
||||
END
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,60 @@
|
|||
--
|
||||
-- Copyright (c) 2001-2003
|
||||
-- Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Author: Harti Brandt <harti@freebsd.org>
|
||||
--
|
||||
-- Redistribution and use in source and binary forms, with or without
|
||||
-- modification, are permitted provided that the following conditions
|
||||
-- are met:
|
||||
-- 1. Redistributions of source code must retain the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer.
|
||||
-- 2. Redistributions in binary form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
-- ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
-- SUCH DAMAGE.
|
||||
--
|
||||
-- $Begemot: bsnmp/snmpd/FOKUS-MIB.txt,v 1.5 2004/08/06 08:47:08 brandt Exp $
|
||||
--
|
||||
-- Begemot private definitions and fokus root.
|
||||
--
|
||||
FOKUS-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, enterprises
|
||||
FROM SNMPv2-SMI;
|
||||
|
||||
fokus MODULE-IDENTITY
|
||||
LAST-UPDATED "200202050000Z"
|
||||
ORGANIZATION "Fraunhofer FOKUS, CATS"
|
||||
CONTACT-INFO
|
||||
" Hartmut Brandt
|
||||
|
||||
Postal: Fraunhofer Institute for Open Communication Systems
|
||||
Kaiserin-Augusta-Allee 31
|
||||
10589 Berlin
|
||||
Germany
|
||||
|
||||
Fax: +49 30 3463 7352
|
||||
|
||||
E-mail: harti@freebsd.org"
|
||||
DESCRIPTION
|
||||
"The root of the Fokus enterprises tree."
|
||||
REVISION "200202050000Z"
|
||||
DESCRIPTION
|
||||
"Initial revision."
|
||||
::= { enterprises 12325 }
|
||||
|
||||
END
|
|
@ -0,0 +1,97 @@
|
|||
-- *****************************************************************
|
||||
-- This file is in the public domain.
|
||||
--
|
||||
-- FreeBSD SMI { enterprises 2238 }
|
||||
--
|
||||
-- $FreeBSD$
|
||||
--
|
||||
-- *****************************************************************
|
||||
|
||||
FREEBSD-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY,
|
||||
OBJECT-IDENTITY,
|
||||
enterprises
|
||||
FROM SNMPv2-SMI;
|
||||
|
||||
freeBSD MODULE-IDENTITY
|
||||
LAST-UPDATED "202009032030Z"
|
||||
ORGANIZATION "The FreeBSD Project."
|
||||
CONTACT-INFO
|
||||
"phk@FreeBSD.org is contact person for this file.
|
||||
core@FreeBSD.org is the final authority."
|
||||
DESCRIPTION
|
||||
"The Structure of Management Information for the
|
||||
FreeBSD Project enterprise MIB subtree."
|
||||
REVISION "202009031900Z"
|
||||
DESCRIPTION
|
||||
"Added entries for the otherName component of a X.509 cert"
|
||||
REVISION "200610310800Z"
|
||||
DESCRIPTION
|
||||
"Initial version of this MIB module."
|
||||
::= { enterprises 2238 } -- assigned by IANA
|
||||
|
||||
|
||||
freeBSDsrc OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Subtree for things which lives in the src tree."
|
||||
::= { freeBSD 1 }
|
||||
|
||||
freeBSDsrcCertOtherName OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Subtree for X.509 Certificate otherName entries"
|
||||
::= { freeBSDsrc 1 }
|
||||
|
||||
--
|
||||
-- For NFS over TLS, a user@domain can optionally be handled by rpc.tlsservd
|
||||
--
|
||||
freeBSDsrcCertNFSuser OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Entry for X.509 Certificate for NFS user@domain name"
|
||||
::= { freeBSDsrcCertOtherName 1 }
|
||||
|
||||
freeBSDports OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Subtree for things which lives in the ports tree."
|
||||
::= { freeBSD 2 }
|
||||
|
||||
freeBSDpeople OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Subtree for FreeBSD people.
|
||||
Under this branch any FreeBSD committer may claim
|
||||
a subtree. Grab the next sequential oid in the list.
|
||||
These assignments are not revoked when committers leave
|
||||
the FreeBSD project.
|
||||
"
|
||||
::= { freeBSD 3 }
|
||||
|
||||
freeBSDpeoplePhk OBJECT-IDENTITY
|
||||
STATUS current DESCRIPTION
|
||||
"Subtree for phk@FreeBSD.org"
|
||||
::= {freeBSDpeople 1}
|
||||
|
||||
freeBSDVersion OBJECT-IDENTITY
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Subtree to register FreeBSD versions. The OID for a FreeBSD
|
||||
version is formed by appending the dot delimited numbers
|
||||
from the release number to this base OID. Examples:
|
||||
|
||||
5.2.1-STABLE: freeBSDVersion.5.2.1
|
||||
6.1-STABLE: freeBSDVersion.6.1
|
||||
7.0-CURRENT: freeBSDVersion.7.0
|
||||
|
||||
There is no indication whether this is STABLE or CURRENT.
|
||||
|
||||
The sysObjectId is automatically set to the value indicated
|
||||
by the uname(3) release field by bsnmpd(1). This initial
|
||||
value can be overwritten in the configuration file."
|
||||
::= { freeBSD 4 }
|
||||
|
||||
END
|
|
@ -0,0 +1,325 @@
|
|||
--
|
||||
-- Copyright (C) The Internet Society (2005).
|
||||
--
|
||||
-- This document is subject to the rights, licenses and restrictions
|
||||
-- contained in BCP 78, and except as set forth therein, the authors
|
||||
-- retain all their rights.
|
||||
--
|
||||
-- This document and the information contained herein are provided on an
|
||||
-- "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
|
||||
-- OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
|
||||
-- ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
|
||||
-- INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
|
||||
-- INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
|
||||
-- WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
--
|
||||
-- $FreeBSD$
|
||||
--
|
||||
|
||||
RSTP-MIB DEFINITIONS ::= BEGIN
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
-- MIB for IEEE 802.1w Rapid Spanning Tree Protocol
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, OBJECT-TYPE, Integer32, mib-2
|
||||
FROM SNMPv2-SMI
|
||||
TruthValue
|
||||
FROM SNMPv2-TC
|
||||
MODULE-COMPLIANCE, OBJECT-GROUP
|
||||
FROM SNMPv2-CONF
|
||||
dot1dStp, dot1dStpPortEntry
|
||||
FROM BRIDGE-MIB;
|
||||
|
||||
rstpMIB MODULE-IDENTITY
|
||||
LAST-UPDATED "200512070000Z"
|
||||
ORGANIZATION "IETF Bridge MIB Working Group"
|
||||
CONTACT-INFO
|
||||
"Email: Bridge-mib@ietf.org"
|
||||
DESCRIPTION
|
||||
"The Bridge MIB Extension module for managing devices
|
||||
that support the Rapid Spanning Tree Protocol defined
|
||||
by IEEE 802.1w.
|
||||
|
||||
Copyright (C) The Internet Society (2005). This version of
|
||||
this MIB module is part of RFC 4318; See the RFC itself for
|
||||
full legal notices."
|
||||
|
||||
REVISION "200512070000Z"
|
||||
DESCRIPTION
|
||||
"The initial version of this MIB module as published in
|
||||
RFC 4318."
|
||||
::= { mib-2 134 }
|
||||
|
||||
-- ---------------------------------------------------------- --
|
||||
-- subtrees in the RSTP-MIB
|
||||
-- ---------------------------------------------------------- --
|
||||
|
||||
rstpNotifications OBJECT IDENTIFIER ::= { rstpMIB 0 }
|
||||
rstpObjects OBJECT IDENTIFIER ::= { rstpMIB 1 }
|
||||
rstpConformance OBJECT IDENTIFIER ::= { rstpMIB 2 }
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
-- Addition to the dot1dStp group
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
dot1dStpVersion OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
stpCompatible(0),
|
||||
rstp(2)
|
||||
}
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The version of Spanning Tree Protocol the bridge is
|
||||
currently running. The value 'stpCompatible(0)'
|
||||
indicates the Spanning Tree Protocol specified in
|
||||
IEEE 802.1D-1998 and 'rstp(2)' indicates the Rapid
|
||||
Spanning Tree Protocol specified in IEEE 802.1w and
|
||||
clause 17 of 802.1D-2004. The values are directly from
|
||||
the IEEE standard. New values may be defined as future
|
||||
versions of the protocol become available.
|
||||
|
||||
The value of this object MUST be retained across
|
||||
reinitializations of the management system."
|
||||
REFERENCE
|
||||
"IEEE 802.1w clause 14.8.1, 17.12, 17.16.1"
|
||||
DEFVAL { rstp }
|
||||
::= { dot1dStp 16 }
|
||||
|
||||
dot1dStpTxHoldCount OBJECT-TYPE
|
||||
SYNTAX Integer32 (1..10)
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The value used by the Port Transmit state machine to limit
|
||||
the maximum transmission rate.
|
||||
|
||||
The value of this object MUST be retained across
|
||||
reinitializations of the management system."
|
||||
|
||||
REFERENCE
|
||||
"IEEE 802.1w clause 17.16.6"
|
||||
DEFVAL { 3 }
|
||||
::= { dot1dStp 17 }
|
||||
|
||||
--
|
||||
-- { dot1dStp 18 } was used to represent dot1dStpPathCostDefault
|
||||
-- in an earlier version of this MIB. It has since been
|
||||
-- obsoleted, and should not be used.
|
||||
--
|
||||
|
||||
dot1dStpExtPortTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF Dot1dStpExtPortEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A table that contains port-specific Rapid Spanning Tree
|
||||
information."
|
||||
::= { dot1dStp 19 }
|
||||
|
||||
dot1dStpExtPortEntry OBJECT-TYPE
|
||||
SYNTAX Dot1dStpExtPortEntry
|
||||
MAX-ACCESS not-accessible
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"A list of Rapid Spanning Tree information maintained by
|
||||
each port."
|
||||
AUGMENTS { dot1dStpPortEntry }
|
||||
::= { dot1dStpExtPortTable 1 }
|
||||
|
||||
Dot1dStpExtPortEntry ::=
|
||||
SEQUENCE {
|
||||
dot1dStpPortProtocolMigration
|
||||
TruthValue,
|
||||
dot1dStpPortAdminEdgePort
|
||||
TruthValue,
|
||||
dot1dStpPortOperEdgePort
|
||||
TruthValue,
|
||||
dot1dStpPortAdminPointToPoint
|
||||
INTEGER,
|
||||
dot1dStpPortOperPointToPoint
|
||||
TruthValue,
|
||||
dot1dStpPortAdminPathCost
|
||||
Integer32
|
||||
}
|
||||
|
||||
dot1dStpPortProtocolMigration OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"When operating in RSTP (version 2) mode, writing true(1)
|
||||
to this object forces this port to transmit RSTP BPDUs.
|
||||
Any other operation on this object has no effect and
|
||||
it always returns false(2) when read."
|
||||
REFERENCE
|
||||
"IEEE 802.1w clause 14.8.2.4, 17.18.10, 17.26"
|
||||
::= { dot1dStpExtPortEntry 1 }
|
||||
|
||||
dot1dStpPortAdminEdgePort OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The administrative value of the Edge Port parameter. A
|
||||
value of true(1) indicates that this port should be
|
||||
assumed as an edge-port, and a value of false(2) indicates
|
||||
that this port should be assumed as a non-edge-port.
|
||||
Setting this object will also cause the corresponding
|
||||
instance of dot1dStpPortOperEdgePort to change to the
|
||||
same value. Note that even when this object's value
|
||||
is true, the value of the corresponding instance of
|
||||
dot1dStpPortOperEdgePort can be false if a BPDU has
|
||||
been received.
|
||||
|
||||
The value of this object MUST be retained across
|
||||
reinitializations of the management system."
|
||||
|
||||
REFERENCE
|
||||
"IEEE 802.1t clause 14.8.2, 18.3.3"
|
||||
::= { dot1dStpExtPortEntry 2 }
|
||||
|
||||
dot1dStpPortOperEdgePort OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The operational value of the Edge Port parameter. The
|
||||
object is initialized to the value of the corresponding
|
||||
instance of dot1dStpPortAdminEdgePort. When the
|
||||
corresponding instance of dot1dStpPortAdminEdgePort is
|
||||
set, this object will be changed as well. This object
|
||||
will also be changed to false on reception of a BPDU."
|
||||
|
||||
REFERENCE
|
||||
"IEEE 802.1t clause 14.8.2, 18.3.4"
|
||||
::= { dot1dStpExtPortEntry 3 }
|
||||
|
||||
dot1dStpPortAdminPointToPoint OBJECT-TYPE
|
||||
SYNTAX INTEGER {
|
||||
forceTrue(0),
|
||||
forceFalse(1),
|
||||
auto(2)
|
||||
}
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The administrative point-to-point status of the LAN segment
|
||||
attached to this port, using the enumeration values of the
|
||||
IEEE 802.1w clause. A value of forceTrue(0) indicates
|
||||
that this port should always be treated as if it is
|
||||
connected to a point-to-point link. A value of
|
||||
forceFalse(1) indicates that this port should be treated as
|
||||
having a shared media connection. A value of auto(2)
|
||||
indicates that this port is considered to have a
|
||||
point-to-point link if it is an Aggregator and all of its
|
||||
members are aggregatable, or if the MAC entity
|
||||
is configured for full duplex operation, either through
|
||||
auto-negotiation or by management means. Manipulating this
|
||||
object changes the underlying adminPortToPortMAC.
|
||||
|
||||
The value of this object MUST be retained across
|
||||
reinitializations of the management system."
|
||||
|
||||
REFERENCE
|
||||
"IEEE 802.1w clause 6.4.3, 6.5, 14.8.2"
|
||||
::= { dot1dStpExtPortEntry 4 }
|
||||
|
||||
dot1dStpPortOperPointToPoint OBJECT-TYPE
|
||||
SYNTAX TruthValue
|
||||
MAX-ACCESS read-only
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The operational point-to-point status of the LAN segment
|
||||
attached to this port. It indicates whether a port is
|
||||
considered to have a point-to-point connection.
|
||||
If adminPointToPointMAC is set to auto(2), then the value
|
||||
of operPointToPointMAC is determined in accordance with the
|
||||
specific procedures defined for the MAC entity concerned,
|
||||
as defined in IEEE 802.1w, clause 6.5. The value is
|
||||
determined dynamically; that is, it is re-evaluated whenever
|
||||
the value of adminPointToPointMAC changes, and whenever
|
||||
the specific procedures defined for the MAC entity evaluate
|
||||
a change in its point-to-point status."
|
||||
REFERENCE
|
||||
"IEEE 802.1w clause 6.4.3, 6.5, 14.8.2"
|
||||
::= { dot1dStpExtPortEntry 5 }
|
||||
|
||||
dot1dStpPortAdminPathCost OBJECT-TYPE
|
||||
SYNTAX Integer32 (0..200000000)
|
||||
MAX-ACCESS read-write
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The administratively assigned value for the contribution
|
||||
of this port to the path cost of paths toward the spanning
|
||||
tree root.
|
||||
|
||||
Writing a value of '0' assigns the automatically calculated
|
||||
default Path Cost value to the port. If the default Path
|
||||
Cost is being used, this object returns '0' when read.
|
||||
|
||||
This complements the object dot1dStpPortPathCost or
|
||||
dot1dStpPortPathCost32, which returns the operational value
|
||||
of the path cost.
|
||||
|
||||
The value of this object MUST be retained across
|
||||
reinitializations of the management system."
|
||||
REFERENCE
|
||||
"IEEE 802.1D-1998: Section 8.5.5.3"
|
||||
::= { dot1dStpExtPortEntry 6 }
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
-- rstpMIB - Conformance Information
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
rstpGroups OBJECT IDENTIFIER ::= { rstpConformance 1 }
|
||||
|
||||
rstpCompliances OBJECT IDENTIFIER ::= { rstpConformance 2 }
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
-- Units of conformance
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
rstpBridgeGroup OBJECT-GROUP
|
||||
OBJECTS {
|
||||
dot1dStpVersion,
|
||||
dot1dStpTxHoldCount
|
||||
}
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Rapid Spanning Tree information for the bridge."
|
||||
::= { rstpGroups 1 }
|
||||
|
||||
rstpPortGroup OBJECT-GROUP
|
||||
OBJECTS {
|
||||
dot1dStpPortProtocolMigration,
|
||||
dot1dStpPortAdminEdgePort,
|
||||
dot1dStpPortOperEdgePort,
|
||||
dot1dStpPortAdminPointToPoint,
|
||||
dot1dStpPortOperPointToPoint,
|
||||
dot1dStpPortAdminPathCost
|
||||
}
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"Rapid Spanning Tree information for individual ports."
|
||||
::= { rstpGroups 2 }
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
-- Compliance statements
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
rstpCompliance MODULE-COMPLIANCE
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"The compliance statement for device support of Rapid
|
||||
Spanning Tree Protocol (RSTP) bridging services."
|
||||
MODULE
|
||||
MANDATORY-GROUPS {
|
||||
rstpBridgeGroup,
|
||||
rstpPortGroup
|
||||
}
|
||||
::= { rstpCompliances 1 }
|
||||
|
||||
END
|
|
@ -0,0 +1,48 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: snmp-exporter
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: snmp-exporter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: snmp-exporter
|
||||
spec:
|
||||
containers:
|
||||
- name: snmp-exporter
|
||||
image: prom/snmp-exporter
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 128Mi
|
||||
cpu: 100m
|
||||
ports:
|
||||
- containerPort: 9116
|
||||
name: http-metrics
|
||||
volumeMounts:
|
||||
- name: exporter-config
|
||||
mountPath: /etc/snmp_exporter/snmp.yml
|
||||
subPath: snmp.yml
|
||||
volumes:
|
||||
- name: exporter-config
|
||||
configMap:
|
||||
name: exporter-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: snmp-exporter
|
||||
labels:
|
||||
app.kubernetes.io/name: snmp-exporter
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: snmp-exporter
|
||||
ports:
|
||||
- name: http-metrics
|
||||
port: 9116
|
||||
targetPort: http-metrics
|
|
@ -10,6 +10,7 @@ resources:
|
|||
- ../../overlays/home-assistant
|
||||
- ../../overlays/jellyfin
|
||||
- ../../overlays/deluge
|
||||
- probes/snmp-exporter.yaml
|
||||
|
||||
# resources:
|
||||
# - probes/external-services-bobcat-miner.yaml
|
||||
|
@ -38,7 +39,7 @@ images:
|
|||
- name: nextcloud/aio-imaginary
|
||||
newTag: 20230613_120442-latest-arm64
|
||||
- name: homeassistant/home-assistant
|
||||
newTag: 2023.9.2
|
||||
newTag: 2023.10.2
|
||||
- name: jellyfin/jellyfin
|
||||
newTag: 10.8.10
|
||||
- name: lscr.io/linuxserver/deluge
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: Probe
|
||||
metadata:
|
||||
name: blackbox-exporter-bobcat-miner
|
||||
labels:
|
||||
app.kubernetes.io/name: blackbox-exporter
|
||||
monitor: prometheus
|
||||
namespace: monitoring
|
||||
spec:
|
||||
module: icmp
|
||||
prober:
|
||||
url: blackbox-exporter.monitoring.svc:9115
|
||||
targets:
|
||||
staticConfig:
|
||||
static:
|
||||
- 192.168.40.30
|
||||
labels:
|
||||
service: bobcat-miner
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: Probe
|
||||
metadata:
|
||||
name: snmp-exporter-pfsense
|
||||
labels:
|
||||
app.kubernetes.io/name: snmp-exporter
|
||||
monitor: prometheus
|
||||
namespace: monitoring
|
||||
spec:
|
||||
module: pfsense
|
||||
prober:
|
||||
url: snmp-exporter.monitoring.svc:9116
|
||||
path: snmp
|
||||
targets:
|
||||
staticConfig:
|
||||
static:
|
||||
- 192.168.20.1
|
||||
metricRelabelings:
|
||||
- sourceLabels: [__name__]
|
||||
replacement: pfsense_$1
|
||||
targetLabel: __name__
|
||||
|
|
@ -4,6 +4,7 @@ resources:
|
|||
- ../../bases/prometheus
|
||||
# - ../../bases/node-exporter
|
||||
- ../../bases/blackbox-exporter
|
||||
- ../../bases/snmp-exporter
|
||||
# - ../../bases/ecommerce-exporter
|
||||
- ../../bases/kube-state-metrics
|
||||
- ../../bases/grafana-agent
|
||||
|
|
Loading…
Reference in New Issue