Skip to content

Commit

Permalink
Add hardware metrics for Chatsworth (power supplies) (#15471)
Browse files Browse the repository at this point in the history
* Add mapping & generate test

* Fix tests & typos

* Separate constant_value_one & regenerate snmprec & fix tests

* Add additional tags & fix tests

* Revert MIBs

* Change expected_total_count
  • Loading branch information
lizaerem authored Aug 8, 2023
1 parent 357fe17 commit 9187959
Show file tree
Hide file tree
Showing 6 changed files with 1,275 additions and 877 deletions.
40 changes: 40 additions & 0 deletions snmp/datadog_checks/snmp/data/default_profiles/chatsworth_pdu.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
extends:
- _base.yaml

metadata:
device:
fields:
vendor:
value: "chatsworth"

device:
vendor: "chatsworth"

Expand Down Expand Up @@ -497,6 +503,40 @@ metrics:
column:
OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.2
name: cpiPduLockId
- MIB: CPI-UNITY-MIB
table:
OID: 1.3.6.1.4.1.30932.1.10.1.7.100
name: cpiPduOutletTable
symbols:
- name: cpiPduEas
constant_value_one: true
metric_tags:
- tag: lock_id
column:
OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.2
name: cpiPduLockId
- tag: eas_status
column:
OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.3
name: cpiPduEasStatus
mapping:
0: inactive
1: ready
2: error
- tag: door_status
column:
OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.4
name: cpiPduDoorStatus
mapping:
0: closed
1: open
- tag: lock_status
column:
OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.5
name: cpiPduLockStatus
mapping:
0: closed
1: open

### Sensor

Expand Down
1 change: 1 addition & 0 deletions snmp/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ snmp.cpiPduBranchStatus,gauge,,,,[Chatsworth] Get the alarm status of the branch
snmp.cpiPduBranchVoltage,gauge,,,,[Chatsworth] The voltage in 1/10 volts of the branch on the PDU.,0,snmp,,
snmp.cpiPduChainRole,gauge,,,,[Chatsworth] Get the role of the PDU in a daisy chain.,0,snmp,,
snmp.cpiPduDoorStatus,gauge,,,,[Chatsworth] Indicates if the door sensor is closed or open.,0,snmp,,
snmp.cpiPduEas,gauge,,,,"[Chatsworth] Constant metric equal to 1.",0,snmp,,
snmp.cpiPduEasStatus,gauge,,,,"[Chatsworth] Indicates if the Electronic Access Control system is ready, inactive, or error state.",0,snmp,,
snmp.cpiPduLineCurrent,gauge,,,,[Chatsworth] The current draw in 1/100 amp of the line on the PDU.,0,snmp,,
snmp.cpiPduLockStatus,gauge,,,,[Chatsworth] Indicates if the lock is closed or open.,0,snmp,,
Expand Down
Loading

0 comments on commit 9187959

Please sign in to comment.