Module: check_mk
Branch: master
Commit: 90e0e6c4b968c50fd2d92d9491e44a9f2f02f083
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=90e0e6c4b968c5…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Dec 17 13:19:06 2018 +0100
6991 FIX genua_carp, genua_fan, genua_pfstate, genua_state_correlation, genua_vpn: Also discover Genubox and Genuscript devices
Change-Id: If5e8ad975331803d5f09d6af5f704a30964f1406
---
.werks/6991 | 11 +++++++++++
checkman/genua_carp | 4 ++--
checkman/genua_fan | 6 +++---
checkman/genua_pfstate | 8 ++++----
checkman/genua_state_correlation | 6 +++---
checkman/genua_vpn | 5 ++++-
checks/genua.include | 37 +++++++++++++++++++++++++++++++++++++
checks/genua_carp | 3 ++-
checks/genua_fan | 4 ++--
checks/genua_pfstate | 3 ++-
checks/genua_state_correlation | 4 ++--
checks/genua_vpn | 3 ++-
12 files changed, 74 insertions(+), 20 deletions(-)
diff --git a/.werks/6991 b/.werks/6991
new file mode 100644
index 0000000..0f61217
--- /dev/null
+++ b/.werks/6991
@@ -0,0 +1,11 @@
+Title: genua_carp, genua_fan, genua_pfstate, genua_state_correlation, genua_vpn: Also discover Genubox and Genuscript devices
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1545047502
+
+
diff --git a/checkman/genua_carp b/checkman/genua_carp
index 7b78fad..2014f2a 100644
--- a/checkman/genua_carp
+++ b/checkman/genua_carp
@@ -1,4 +1,4 @@
-title: Genuscreen: State of Carp Interfaces on Carp Clusters and Nodes
+title: Genua: State of Carp Interfaces on Carp Clusters and Nodes
agents: snmp
catalog: hw/network/genua
license: GPL
@@ -20,7 +20,7 @@ description:
inventory:
The inventory process checks if the device has a system description OIDs (.1.3.6.1.2.1.1.2.0)
- and if the name of this OID contains "genuscreen" (case insensitive).
+ and if the name of this OID contains "genuscreen", "genuscript" or "genubox" (case insensitive).
If this is true the system is inventorized.
item:
diff --git a/checkman/genua_fan b/checkman/genua_fan
index 1c26cf5..f447534 100644
--- a/checkman/genua_fan
+++ b/checkman/genua_fan
@@ -1,4 +1,4 @@
-title: Genuscreen: Fan State and RPM
+title: Genua: Fan State and RPM
agents: snmp
catalog: hw/network/genua
license: GPL
@@ -13,8 +13,8 @@ description:
inventory:
The inventory process checks if the device has a system description OID
- of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen"
- (case insensitive).
+ of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen",
+ "genuscript" or "genubox" (case insensitive).
If this is true and a fan is found, then the it is inventorized.
item:
diff --git a/checkman/genua_pfstate b/checkman/genua_pfstate
index 979961a..b634cf0 100644
--- a/checkman/genua_pfstate
+++ b/checkman/genua_pfstate
@@ -1,4 +1,4 @@
-title: Genuscreen: State of Packetfilter Engine
+title: Genua: State of Packetfilter Engine
agents: snmp
catalog: hw/network/genua
license: GPL
@@ -17,7 +17,7 @@ description:
inventory:
The inventory process checks if the device has a system description OID
- of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen"
- (case insensitive). If it also contains valid pf state output, the device is
- inventorized.
+ of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen",
+ "genuscript" or "genubox" (case insensitive). If it also contains valid
+ pf state output, the device is inventorized.
diff --git a/checkman/genua_state_correlation b/checkman/genua_state_correlation
index d910ec0..ff2f18c 100644
--- a/checkman/genua_state_correlation
+++ b/checkman/genua_state_correlation
@@ -1,4 +1,4 @@
-title: Genuscreen: Correlation of the State of Carp Interfaces
+title: Genua: Correlation of the State of Carp Interfaces
agents: snmp
catalog: hw/network/genua
license: GPL
@@ -13,7 +13,7 @@ description:
inventory:
The inventory process checks if the device has a system description OID
- of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen"
- (case insensitive).
+ of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen",
+ "genuscript" or "genubox" (case insensitive).
If this is true and at least two carp interfaces are found, then the system
is inventorized.
diff --git a/checkman/genua_vpn b/checkman/genua_vpn
index ba35bc7..dc13777 100644
--- a/checkman/genua_vpn
+++ b/checkman/genua_vpn
@@ -1,4 +1,4 @@
-title: Genuscreen: VPN state
+title: Genua: VPN state
agents: snmp
catalog: hw/network/genua
license: GPL
@@ -10,4 +10,7 @@ item:
The VPN id.
inventory:
+ The inventory process checks if the device has a system description OID
+ of .1.3.6.1.2.1.1.2.0 and if the name of this OID contains "genuscreen",
+ "genuscript" or "genubox" (case insensitive).
One service per VPN is created.
diff --git a/checks/genua.include b/checks/genua.include
new file mode 100644
index 0000000..ac5473b
--- /dev/null
+++ b/checks/genua.include
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2018 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk 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 in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+def scan_genua(oid):
+ sys_descr = oid(".1.3.6.1.2.1.1.1.0").lower()
+ for type_ in [
+ "genuscreen",
+ "genubox",
+ "genucrypt",
+ ]:
+ if type_ in sys_descr:
+ return True
+ return False
diff --git a/checks/genua_carp b/checks/genua_carp
index 57a9863..27efb1a 100644
--- a/checks/genua_carp
+++ b/checks/genua_carp
@@ -151,5 +151,6 @@ check_info['genua_carp'] = {
"1.7", # "ifCarpState"
]),
],
- "snmp_scan_function": lambda oid: "genuscreen" in oid(".1.3.6.1.2.1.1.1.0").lower()
+ "snmp_scan_function": scan_genua,
+ "includes": ["genua.include"],
}
diff --git a/checks/genua_fan b/checks/genua_fan
index 6a64e44..7604fc2 100644
--- a/checks/genua_fan
+++ b/checks/genua_fan
@@ -89,7 +89,7 @@ check_info['genua_fan'] = {
"4" # "fanState"
])
],
- "snmp_scan_function": lambda oid: "genuscreen" in oid(".1.3.6.1.2.1.1.1.0").lower(),
+ "snmp_scan_function": scan_genua,
+ "includes": ["genua.include", "fan.include"],
"default_levels_variable": "genua_fan_default_levels",
- "includes": ["fan.include"],
}
diff --git a/checks/genua_pfstate b/checks/genua_pfstate
index f397453..61dd672 100644
--- a/checks/genua_pfstate
+++ b/checks/genua_pfstate
@@ -112,5 +112,6 @@ check_info['genua_pfstate'] = {
3, # "pfstateStatus"
])
],
- "snmp_scan_function": lambda oid: "genuscreen" in oid(".1.3.6.1.2.1.1.1.0").lower()
+ "snmp_scan_function": scan_genua,
+ "includes": ["genua.include"],
}
diff --git a/checks/genua_state_correlation b/checks/genua_state_correlation
index 3ffee08..baf9d5a 100644
--- a/checks/genua_state_correlation
+++ b/checks/genua_state_correlation
@@ -115,6 +115,6 @@ check_info['genua_state_correlation'] = {
"1.7", # "ifCarpState"
])
],
- "snmp_scan_function": lambda oid: "genuscreen" in oid(".1.3.6.1.2.1.1.1.0").lower()
- #"snmp_scan_function" : lambda oid: oid(".1.3.6.1.4.1.3717.2.1.2.1.7") is not None
+ "snmp_scan_function": scan_genua,
+ "includes": ["genua.include"],
}
diff --git a/checks/genua_vpn b/checks/genua_vpn
index be3f516..99c7bd5 100644
--- a/checks/genua_vpn
+++ b/checks/genua_vpn
@@ -83,5 +83,6 @@ check_info['genua_vpn'] = {
"5", # vpn remote
"6", # vpn status (2:OK, 1:FAULT)
]),
- 'snmp_scan_function': lambda oid: "genuscreen" in oid(".1.3.6.1.2.1.1.1.0").lower(),
+ "snmp_scan_function": scan_genua,
+ "includes": ["genua.include"],
}
Module: check_mk
Branch: master
Commit: 1bcc5293c621308145989344944217f1ce21799f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1bcc5293c62130…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Dec 17 13:02:18 2018 +0100
aws_ebs_health: Adapted man page
Change-Id: Ia8b42437c79fce49f10f34d0ac05fd1c94e888b9
---
checkman/aws_ebs_health | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checkman/aws_ebs_health b/checkman/aws_ebs_health
index 39069cc..eda447e 100644
--- a/checkman/aws_ebs_health
+++ b/checkman/aws_ebs_health
@@ -11,4 +11,4 @@ description:
Details of the single status checks are also reported.
inventory:
- One service will be created.
+ One service per volume will be created.
Module: check_mk
Branch: master
Commit: 6b9405952aa1eaeb0eb382aaf20deb9d96033254
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6b9405952aa1ea…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Dec 14 12:59:59 2018 +0100
6828 aws_ebs_health, aws_ebs_summary: New checks for AWS/EBS
Change-Id: Iab5da0b339be49ed26be31462d3c69a600042a96
---
.werks/6828 | 10 +++++++
checkman/aws_ebs_health | 14 +++++++++
checkman/aws_ebs_summary | 13 +++++++++
checks/aws_ebs_health | 46 +++++++++++++++++++++++++++++
checks/aws_ebs_summary | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 159 insertions(+)
diff --git a/.werks/6828 b/.werks/6828
new file mode 100644
index 0000000..f06b900
--- /dev/null
+++ b/.werks/6828
@@ -0,0 +1,10 @@
+Title: aws_ebs_health, aws_ebs_summary: New checks for AWS/EBS
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1544788776
+Class: feature
+
+
diff --git a/checkman/aws_ebs_health b/checkman/aws_ebs_health
new file mode 100644
index 0000000..39069cc
--- /dev/null
+++ b/checkman/aws_ebs_health
@@ -0,0 +1,14 @@
+title: AWS EBS Health
+agents: aws
+catalog: cloud/aws
+license: GPL
+distribution: check_mk
+description:
+ This check monitors health of AWS elastic block storages.
+ To make this check work you have to configure the related
+ special agent {{Amazon Web Services (AWS)}}.
+ If the EBS status is OK the check returns OK otherwise CRIT.
+ Details of the single status checks are also reported.
+
+inventory:
+ One service will be created.
diff --git a/checkman/aws_ebs_summary b/checkman/aws_ebs_summary
new file mode 100644
index 0000000..156dd99
--- /dev/null
+++ b/checkman/aws_ebs_summary
@@ -0,0 +1,13 @@
+title: AWS EBS Summary
+agents: aws
+catalog: cloud/aws
+license: GPL
+distribution: check_mk
+description:
+ This check monitors all AWS EBS and reports
+ a summary of their states.
+ To make this check work you have to configure the related
+ special agent {{Amazon Web Services (AWS)}}.
+
+inventory:
+ One summary service is created.
diff --git a/checks/aws_ebs_health b/checks/aws_ebs_health
new file mode 100644
index 0000000..37d2a0d
--- /dev/null
+++ b/checks/aws_ebs_health
@@ -0,0 +1,46 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2018 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk 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 in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+def parse_aws_health(info):
+ return {k: v for row in parse_aws(info) for k, v in row.iteritems()}
+
+
+@get_parsed_item_data
+def check_aws_ebs_health(item, params, metrics):
+ ebs_status = metrics["Status"]
+ yield 0 if ebs_status.lower() == 'ok' else 2, "Status: %s" % ebs_status
+ for row in metrics['Details']:
+ yield 0, "%s: %s" % (row['Name'], row['Status'])
+
+
+check_info['aws_ebs_health'] = {
+ 'parse_function': parse_aws_health,
+ 'inventory_function': discover(),
+ 'check_function': check_aws_ebs_health,
+ 'service_description': 'AWS/EBS Health %s',
+ 'includes': ['aws.include'],
+}
diff --git a/checks/aws_ebs_summary b/checks/aws_ebs_summary
new file mode 100644
index 0000000..ea818e4
--- /dev/null
+++ b/checks/aws_ebs_summary
@@ -0,0 +1,76 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2018 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk 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 in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+AWSEBSStorageTypes = {
+ "gp2": "General Purpose SSD",
+ "io1": "Provisioned IOPS SSD",
+ "st1": "Throughput Optimized HDD",
+ "sc1": "Cold HDD",
+}
+
+
+def parse_aws_summary(info):
+ parsed = {}
+ for row in parse_aws(info):
+ inst = parsed.setdefault(row['VolumeId'], row)
+ type_ = row['VolumeType']
+ inst.setdefault('type_readable', AWSEBSStorageTypes.get(type_, "unknown[%s]" % type_))
+ return parsed
+
+
+def inventory_aws_ebs_summary(parsed):
+ if parsed:
+ return [(None, {})]
+
+
+def check_aws_ebs_summary(item, params, parsed):
+ stores_by_state = {}
+ stores_by_type = {}
+ long_output = []
+ for volume_id, row in parsed.iteritems():
+ stores_by_state.setdefault(row['State'], []).append(volume_id)
+ stores_by_type.setdefault(row['VolumeType'], []).append(volume_id)
+ long_output.append(
+ "Volume: %s, Status: %s, Type: %s, Encrypted: %s, Creation time: %s"\
+ % (volume_id, row['State'], row['VolumeType'], row['Encrypted'], row['CreateTime'])
+ )
+
+ yield 0, 'Stores: %s' % len(parsed)
+ for state, stores in stores_by_state.iteritems():
+ yield 0, '%s: %s' % (state, len(stores))
+ for type_, stores in stores_by_type.iteritems():
+ yield 0, '%s: %s' % (AWSEBSStorageTypes.get(type_, "unknown[%s]" % type_), len(stores))
+ if long_output:
+ yield 0, '\n%s' % '\n'.join(long_output)
+
+
+check_info['aws_ebs_summary'] = {
+ 'parse_function': parse_aws_summary,
+ 'inventory_function': inventory_aws_ebs_summary,
+ 'check_function': check_aws_ebs_summary,
+ 'service_description': 'AWS/EBS Summary',
+ 'includes': ['aws.include'],
+}
Module: check_mk
Branch: master
Commit: adff40229fd5975994c88edb91a72274884b77ce
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=adff40229fd597…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Mon Dec 17 11:00:32 2018 +0100
alcatel_power: refactor
CMK-1188
Change-Id: Ib22d41a41d04f5c16ce5d3dc70486ab1335b2c80
---
checks/alcatel.include | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++
checks/alcatel_power | 35 ++++++--------------------------
2 files changed, 60 insertions(+), 29 deletions(-)
diff --git a/checks/alcatel.include b/checks/alcatel.include
new file mode 100644
index 0000000..d000cda
--- /dev/null
+++ b/checks/alcatel.include
@@ -0,0 +1,54 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2018 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk 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 in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+def alcatel_networking_products_scan_function(oid):
+ sys_object_id = ".1.3.6.1.2.1.1.2.0" # MIB object "sysObjectID"
+ alcatel_ind_1_base_mib = ".1.3.6.1.4.1.6486.800" # MIB object "alcatelIND1BaseMIB"
+ return oid(sys_object_id).startswith(alcatel_ind_1_base_mib)
+
+
+def inventory_alcatel_power(info):
+ for line in info:
+ oid_end, _, device_type, power_type = line
+ if (power_type and power_type != '0' or device_type in [
+ '0x35000001', '0x45000002', '0x45000004', '0x45000008', '0x45000009'
+ ]):
+ yield oid_end, None
+
+
+def check_alcatel_power(item, _no_params, info):
+ for line in info:
+ oid_end, status, device_type, power_type = line
+ if item == oid_end:
+ if (power_type and power_type == '0' or device_type not in [
+ '0x35000001', '0x45000004', '0x45000002', '0x45000008', '0x45000009'
+ ]):
+ return 3, "No Power supply connected to this port"
+ if status != '1':
+ return 2, "Supply in error condition (%s)" % status
+ return 0, "Supply status OK"
+ return 3, "Supply not found"
diff --git a/checks/alcatel_power b/checks/alcatel_power
index f25d6ea..e5c2ac2 100644
--- a/checks/alcatel_power
+++ b/checks/alcatel_power
@@ -24,41 +24,18 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-
-def inventory_alcatel_power(info):
- for line in info:
- oid_end, _, device_type, power_type = line
- if (power_type and power_type != '0' or device_type in [
- '0x35000001', '0x45000002', '0x45000004', '0x45000008', '0x45000009'
- ]):
- yield oid_end, None
-
-
-def check_alcatel_power(item, _no_params, info):
- for line in info:
- oid_end, status, device_type, power_type = line
- if item == oid_end:
- if (power_type and power_type == '0' or device_type not in [
- '0x35000001', '0x45000004', '0x45000002', '0x45000008', '0x45000009'
- ]):
- return 3, "No Power supply connected to this port"
- if status != '1':
- return 2, "Supply in error condition (%s)" % status
- return 0, "Supply status OK"
- return 3, "Supply not found"
-
-
check_info["alcatel_power"] = {
"check_function": check_alcatel_power,
"inventory_function": inventory_alcatel_power,
"service_description": "Power Supply %s",
- "snmp_scan_function": lambda oid: oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.6486.800"),
+ "snmp_scan_function": alcatel_networking_products_scan_function,
"snmp_info": (
- ".1.3.6.1.4.1.6486.800.1.1.1.1.1.1.1",
+ ".1.3.6.1.4.1.6486.800.1.1.1.1.1.1.1", # MIB object "chasEntPhysicalEntry"
[
OID_END,
- 2, # Error Status
- 5, # Device Type (0x35000001 == Power Supply)
- 36, # chasEntPhysPowerType: 0 no power supply, 1 ac, 2 dc (not available on old devices)
+ 2, # MIB object "chasEntPhysOperStatus": up(1), down(2), testing(3), unknown(4), secondary(5), notPresent(6), unpowered(7), master(9)
+ 5, # MIB object "chasEntPhysModuleType": Device Type (0x35000001 == Power Supply)
+ 36, # MIB object "chasEntPhysPowerType": 0 no power supply, 1 ac, 2 dc (not available on old devices)
]),
+ "includes": ["alcatel.include"],
}