Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions snmp/changelog.d/24107.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Cisco ASAv memory coverage in cisco-firepower-asa SNMP profile by replacing hardcoded single-pool scalar OIDs with a full table walk of cempMemPoolTable tagged by pool name.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@ metrics:
tag: cpu
- MIB: CISCO-ENHANCED-MEMPOOL-MIB
metric_type: gauge
symbol:
name: memory.used
OID: 1.3.6.1.4.1.9.9.221.1.1.1.1.18.1.1 # cempMemPoolHCUsed.1.1
- MIB: CISCO-ENHANCED-MEMPOOL-MIB
metric_type: gauge
symbol:
name: memory.free
OID: 1.3.6.1.4.1.9.9.221.1.1.1.1.20.1.1 # cempMemPoolHCFree.1.1
table:
OID: 1.3.6.1.4.1.9.9.221.1.1.1
name: cempMemPoolTable
symbols:
- OID: 1.3.6.1.4.1.9.9.221.1.1.1.1.18
name: memory.used
- OID: 1.3.6.1.4.1.9.9.221.1.1.1.1.20
name: memory.free
metric_tags:
- tag: mem_pool_name
symbol:
OID: 1.3.6.1.4.1.9.9.221.1.1.1.1.3
name: cempMemPoolName
Comment thread
ian28223 marked this conversation as resolved.
- tag: mem_pool_index
index: 1
- MIB: CISCO-REMOTE-ACCESS-MONITOR-MIB
symbol:
OID: 1.3.6.1.4.1.9.9.392.1.4.1.2.0
Expand Down
2 changes: 1 addition & 1 deletion snmp/tests/compose/data/cisco-firepower-asa.snmprec
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
1.3.6.1.4.1.9.9.109.1.4.1.1.13.33481.29654.61594|70|4963720931156138597
1.3.6.1.4.1.9.9.221.1.1.1.1.1.1.1|2|22
1.3.6.1.4.1.9.9.221.1.1.1.1.2.1.1|2|12
1.3.6.1.4.1.9.9.221.1.1.1.1.3.1.1|4x|717561696e746c79206275742062757420717561696e746c79207a6f6d626965732074686569722074686569722064726976696e67
1.3.6.1.4.1.9.9.221.1.1.1.1.3.1.1|4x|53797374656d206d656d6f7279
1.3.6.1.4.1.9.9.221.1.1.1.1.4.1.1|6|1.3.6.1.3.101.206.92
1.3.6.1.4.1.9.9.221.1.1.1.1.5.1.1|2|7
1.3.6.1.4.1.9.9.221.1.1.1.1.6.1.1|2|1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ def test_e2e_profile_cisco_firepower_asa(dd_agent_check):
aggregator.assert_metric('snmp.crasNumSessions', metric_type=aggregator.GAUGE, tags=common_tags)
aggregator.assert_metric('snmp.crasNumSetupFailInsufResources', metric_type=aggregator.COUNT, tags=common_tags)
aggregator.assert_metric('snmp.crasNumUsers', metric_type=aggregator.GAUGE, tags=common_tags)
aggregator.assert_metric('snmp.memory.free', metric_type=aggregator.GAUGE, tags=common_tags)
aggregator.assert_metric('snmp.memory.usage', metric_type=aggregator.GAUGE, tags=common_tags)
aggregator.assert_metric('snmp.memory.used', metric_type=aggregator.GAUGE, tags=common_tags)
mem_tag_rows = [
['mem_pool_index:1', 'mem_pool_name:System memory'],
]
for tag_row in mem_tag_rows:
aggregator.assert_metric('snmp.memory.free', metric_type=aggregator.GAUGE, tags=common_tags + tag_row)
aggregator.assert_metric('snmp.memory.used', metric_type=aggregator.GAUGE, tags=common_tags + tag_row)
aggregator.assert_metric('snmp.memory.usage', metric_type=aggregator.GAUGE, tags=common_tags + tag_row)
tag_rows = [
['cpu:34646'],
['cpu:7885'],
Expand Down
Loading