Skip to content

Commit

Permalink
[SNMP] Add profile for IBM Lenovo servers (#15377)
Browse files Browse the repository at this point in the history
* Add profile for IBM Lenovo servers

* Fix metadata.csv conflict

* More specific prefix
  • Loading branch information
TCheruy authored Jul 26, 2023
1 parent 8f77eda commit cbe645a
Show file tree
Hide file tree
Showing 4 changed files with 1,636 additions and 0 deletions.
155 changes: 155 additions & 0 deletions snmp/datadog_checks/snmp/data/default_profiles/ibm-lenovo-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
extends:
- _generic-host-resources-base.yaml
- _generic-if.yaml
- _generic-ucd.yaml
- ibm.yaml
sysobjectid:
- 1.3.6.1.4.1.2.3.51.3
metrics:
# - MIB: IMM-MIB
# symbol:
# name: ibm.imm.systemHealthStat
# OID: 1.3.6.1.4.1.2.3.51.3.1.4.1.0
# enum:
# onRecoverable: 0
# critical: 2
# nonCritical: 4
# normal: 255
# TODO: enum in scalar metric is not supported yet (keep this metric and this
# comment in profile until it's fixed)
- MIB: IMM-MIB
table:
name: tempTable
OID: 1.3.6.1.4.1.2.3.51.3.1.1.2
symbols:
- name: ibm.imm.tempReading
OID: 1.3.6.1.4.1.2.3.51.3.1.1.2.1.3
metric_tags:
- column:
name: ibm.imm.tempDescr
OID: 1.3.6.1.4.1.2.3.51.3.1.1.2.1.2
tag: ibm_imm_temp_descr
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.1.2.1.11
name: ibm.imm.tempHealthStatus
tag: ibm_imm_temp_health_status
- MIB: IMM-MIB
table:
name: voltTable
OID: 1.3.6.1.4.1.2.3.51.3.1.2.2
symbols:
- name: ibm.imm.voltReading
OID: 1.3.6.1.4.1.2.3.51.3.1.2.2.1.3
metric_tags:
- column:
name: ibm.imm.voltDescr
OID: 1.3.6.1.4.1.2.3.51.3.1.2.2.1.2
tag: ibm_imm_volt_descr
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.2.2.1.11
name: ibm.imm.voltHealthStatus
tag: ibm_imm_volt_health_status
- MIB: IMM-MIB
table:
name: fanTable
OID: 1.3.6.1.4.1.2.3.51.3.1.3.2
symbols:
- name: ibm.imm.fanSpeed
OID: 1.3.6.1.4.1.2.3.51.3.1.3.2.1.3
extract_value: '(\d+)%' # Example value : '74% of maximum'
metric_tags:
- column:
name: ibm.imm.fanDescr
OID: 1.3.6.1.4.1.2.3.51.3.1.3.2.1.2
tag: ibm_imm_fan_descr
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.3.2.1.10
name: ibm.imm.fanHealthStatus
tag: ibm_imm_fan_health_status
- MIB: IMM-MIB
table:
name: systemHealthSummaryTable
OID: 1.3.6.1.4.1.2.3.51.3.1.4.2
symbols:
- name: ibm.imm.systemHealthSummary
constant_value_one: true
metric_tags:
- column:
name: ibm.imm.systemHealthSummaryDescription
OID: 1.3.6.1.4.1.2.3.51.3.1.4.2.1.3
tag: ibm_imm_system_health_summary_description
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.4.2.1.2
name: ibm.imm.systemHealthSummarySeverity
tag: ibm_imm_system_health_summary_severity
- MIB: IMM-MIB
table:
name: systemCPUVpdTable
OID: 1.3.6.1.4.1.2.3.51.3.1.5.20
symbols:
- name: ibm.imm.systemCPUVpd
constant_value_one: true
metric_tags:
- column:
name: ibm.imm.cpuVpdDescription
OID: 1.3.6.1.4.1.2.3.51.3.1.5.20.1.2
tag: ibm_imm_cpu_vpd_description
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.5.20.1.11
name: ibm.imm.cpuVpdHealthStatus
tag: ibm_imm_cpu_vpd_health_status
- MIB: IMM-MIB
table:
name: systemMemoryVpdTable
OID: 1.3.6.1.4.1.2.3.51.3.1.5.21
symbols:
- name: ibm.imm.systemMemoryVpd
constant_value_one: true
metric_tags:
- column:
name: ibm.imm.memoryVpdDescription
OID: 1.3.6.1.4.1.2.3.51.3.1.5.21.1.2
tag: ibm_imm_memory_vpd_description
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.5.21.1.8
name: ibm.imm.memoryHealthStatus
tag: ibm_imm_memory_health_status
- MIB: IMM-MIB
table:
name: powerTable
OID: 1.3.6.1.4.1.2.3.51.3.1.11.2
symbols:
- name: ibm.imm.power
constant_value_one: true
metric_tags:
- column:
name: ibm.imm.powerFruName
OID: 1.3.6.1.4.1.2.3.51.3.1.11.2.1.2
tag: ibm_imm_power_fru_name
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.11.2.1.6
name: ibm.imm.powerHealthStatus
tag: ibm_imm_power_health_status
- MIB: IMM-MIB
table:
name: diskTable
OID: 1.3.6.1.4.1.2.3.51.3.1.12.2
symbols:
- name: ibm.imm.disk
constant_value_one: true
metric_tags:
- column:
name: ibm.imm.diskFruName
OID: 1.3.6.1.4.1.2.3.51.3.1.12.2.1.2
tag: ibm_imm_disk_fru_name
- column:
OID: 1.3.6.1.4.1.2.3.51.3.1.12.2.1.3
name: ibm.imm.diskHealthStatus
tag: ibm_imm_disk_health_status
metric_tags:
- tag: ibm_imm_machine_level_serial_number
OID: 1.3.6.1.4.1.2.3.51.3.1.5.2.1.3.0
symbol: machineLevelSerialNumber
- OID: 1.3.6.1.4.1.2.3.51.3.1.5.2.1.5.0
symbol: machineLevelProductName
tag: ibm_imm_machine_level_product_name
8 changes: 8 additions & 0 deletions snmp/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,14 @@ snmp.ibm.dpStatusTCPSummarylisten,gauge,,,,"[DATAPOWER-STATUS-MIB] The number of
snmp.ibm.dpStatusTCPSummarysynreceived,gauge,,,,"[DATAPOWER-STATUS-MIB] The number of TCP connections in the syn-received state. Connections in this state are waiting for a confirming connection request acknowledgment after both receiving and sending a connection request.",0,snmp,,
snmp.ibm.dpStatusTCPSummarysynsent,gauge,,,,"[DATAPOWER-STATUS-MIB] The number of TCP connections in the syn-sent state. Connections in this state are waiting for a matching connection request after sending a connection request.",0,snmp,,
snmp.ibm.dpStatusTCPSummarytimewait,gauge,,,,"[DATAPOWER-STATUS-MIB] The number of TCP connections in the time-wait state. Connections in this state are waiting for enough time to pass to be sure that the remote TCP received the acknowledgment of its connection termination request.",0,snmp,,
snmp.ibm.imm.disk,gauge,,,,"[IMM-MIB] This table contains disk inventory information. (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,,
snmp.ibm.imm.fanSpeed,gauge,,,,"[IMM-MIB] Fan speed expressed in percent(%) of maximum RPM. An octet string expressed as 'ddd% of maximum' where: d is a decimal digit or blank space for a leading zero. If the fan is determined not to be running or the fan speed cannot be determined, the string will indicate 'Offline'.",0,snmp,,
snmp.ibm.imm.power,gauge,,,,"[IMM-MIB] This table contains power inventory information. (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,,
snmp.ibm.imm.systemCPUVpd,gauge,,,,"[IMM-MIB] Table of the system CPU VPD information. View as a table and not as individual entries for consistent results. (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,,
snmp.ibm.imm.systemHealthSummary,gauge,,,,"[IMM-MIB] Table of System Health summary. Contains more detailed information about the reasons for the overall system health status. (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,,
snmp.ibm.imm.systemMemoryVpd,gauge,,,,"[IMM-MIB] Table of the system Memory VPD information. View as a table and not as individual entries for consistent results. (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,,
snmp.ibm.imm.tempReading,gauge,,,,"[IMM-MIB] The measured temperature.",0,snmp,,
snmp.ibm.imm.voltReading,gauge,,,,"[IMM-MIB] The measured voltage.",0,snmp,,
snmp.ifAdminStatus,gauge,,,,[Generic router] [F5 BIG-IP] [Cisco c3850] [Cisco Nexus] [Cisco ASA 5525] The desired state of the interface.,0,snmp,,
snmp.ifBandwidthInUsage.rate,gauge,,percent,,"[Generic router] The percent rate of used received bandwidth.",0,snmp,,
snmp.ifBandwidthOutUsage.rate,gauge,,percent,,"[Generic router] The percent rate of used sent bandwidth.",0,snmp,,
Expand Down
Loading

0 comments on commit cbe645a

Please sign in to comment.