WIP: Add support for memory monitoring on Firebrick platform (#15021)

* Add support for Firebrick memory monitoring.

* Add mempool testing for Firebrick.
This commit is contained in:
cjsoftuk 2023-05-02 13:12:09 +01:00 committed by GitHub
parent 7e8e11f097
commit bc310cffec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 173 additions and 2 deletions

View File

@ -1,5 +1,11 @@
mib: FIREBRICK-CPU-MIB:FIREBRICK-MONITORING:FIREBRICK-L2TP-MIB:FIREBRICK-VOIP-MIB
modules:
mempools:
data:
-
free: FIREBRICK-GLOBAL::fbFreeMem
total: FIREBRICK-GLOBAL::fbTotalMem
index: 0
os:
sysDescr_regex: '/^(?<hardware>FB[0-9]{4}).*\((?<version>[^ ]+)/m'
sensors:

View File

@ -0,0 +1,61 @@
-- *------------------------------------------------
-- * Firebrick System Global Info MIB
-- *
-- * Feb 2023, David Honour
-- *
-- * Copyright (c) 2023 by Andrews & Arnold
-- *------------------------------------------------
FIREBRICK-GLOBAL DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
OBJECT-TYPE,
NOTIFICATION-TYPE,
Gauge32,
MODULE-COMPLIANCE,
OBJECT-GROUP,
NOTIFICATION-GROUP
FROM SNMPv2-CONF
TEXTUAL-CONVENTION,
enterprises
FROM RFC1155-SMI
DisplayString
FROM SNMPv2-TC
firebrickNewStyle
FROM FIREBRICK-MIB
;
fbGlobalMib MODULE-IDENTITY
LAST-UPDATED "202302170000Z"
ORGANIZATION "Andrews & Arnold Limited"
CONTACT-INFO
"Andrews & Arnold
Unit 1&2, Enterprise Court
Bracknell, Berkshire, RG12 1QS
United Kingdom
Tel: +44 3333 400 999
Email: support@aa.net.uk"
DESCRIPTION "System wide status"
REVISION "202302170000Z"
DESCRIPTION "Add memory usage"
::= { firebrickNewStyle 4 }
fbGlobalMemory OBJECT IDENTIFIER ::= { fbGlobalMib 1 }
fbTotalMem OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Total RAM (KiB)"
::= { fbGlobalMemory 1 }
fbFreeMem OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Free RAM (KiB)"
::= { fbGlobalMemory 2 }
END

View File

@ -2186,5 +2186,55 @@
]
},
"poller": "matches discovery"
},
"mempools": {
"discovery": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"mempool_type": "firebrick",
"mempool_class": "system",
"mempool_precision": 1,
"mempool_descr": "Memory",
"mempool_perc": 18,
"mempool_perc_oid": null,
"mempool_used": 95232,
"mempool_used_oid": null,
"mempool_free": 429056,
"mempool_free_oid": ".1.3.6.1.4.1.24693.100.4.1.2.",
"mempool_total": 524288,
"mempool_total_oid": null,
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": 0,
"mempool_perc_warn": 90
}
]
},
"poller": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"mempool_type": "firebrick",
"mempool_class": "system",
"mempool_precision": 1,
"mempool_descr": "Memory",
"mempool_perc": 0,
"mempool_perc_oid": null,
"mempool_used": 0,
"mempool_used_oid": null,
"mempool_free": 524288,
"mempool_free_oid": ".1.3.6.1.4.1.24693.100.4.1.2.",
"mempool_total": 524288,
"mempool_total_oid": null,
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": 0,
"mempool_perc_warn": 90
}
]
}
}
}

View File

@ -1968,5 +1968,55 @@
}
]
}
},
"mempools": {
"discovery": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"mempool_type": "firebrick",
"mempool_class": "system",
"mempool_precision": 1,
"mempool_descr": "Memory",
"mempool_perc": 15,
"mempool_perc_oid": null,
"mempool_used": 316416,
"mempool_used_oid": null,
"mempool_free": 1780736,
"mempool_free_oid": ".1.3.6.1.4.1.24693.100.4.1.2.",
"mempool_total": 2097152,
"mempool_total_oid": null,
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": 0,
"mempool_perc_warn": 90
}
]
},
"poller": {
"mempools": [
{
"mempool_index": "0",
"entPhysicalIndex": null,
"mempool_type": "firebrick",
"mempool_class": "system",
"mempool_precision": 1,
"mempool_descr": "Memory",
"mempool_perc": 0,
"mempool_perc_oid": null,
"mempool_used": 0,
"mempool_used_oid": null,
"mempool_free": 2097152,
"mempool_free_oid": ".1.3.6.1.4.1.24693.100.4.1.2.",
"mempool_total": 2097152,
"mempool_total_oid": null,
"mempool_largestfree": null,
"mempool_lowestfree": null,
"mempool_deleted": 0,
"mempool_perc_warn": 90
}
]
}
}
}

View File

@ -298,11 +298,13 @@
1.3.6.1.4.1.24693.100.1.1.1.4.6|2|11933
1.3.6.1.4.1.24693.100.1.1.1.4.7|2|10515
1.3.6.1.4.1.24693.100.1.1.1.4.8|2|35500
1.3.6.1.4.1.24693.100.4.1.1|66|524288
1.3.6.1.4.1.24693.100.4.1.2|66|429056
1.3.6.1.4.1.24693.100.5060.1.0|2|3
1.3.6.1.4.1.24693.100.5060.2.0|2|4
1.3.6.1.4.1.24693.100.5060.3.1.1.0|4|Verizon
1.3.6.1.4.1.24693.100.5060.3.1.2.0|2|7
1.3.6.1.4.1.24693.100.5060.3.1.3.0|2|8
1.3.6.1.4.1.24693.100.5060.3.1.1.1|4|T-Mobile
1.3.6.1.4.1.24693.100.5060.3.1.2.0|2|7
1.3.6.1.4.1.24693.100.5060.3.1.2.1|2|9
1.3.6.1.4.1.24693.100.5060.3.1.3.0|2|8
1.3.6.1.4.1.24693.100.5060.3.1.3.1|2|10

View File

@ -190,6 +190,8 @@
1.3.6.1.4.1.24693.100.1.1.1.4.10|2|0
1.3.6.1.4.1.24693.100.1.1.1.4.11|2|0
1.3.6.1.4.1.24693.100.1.1.1.4.12|2|36750
1.3.6.1.4.1.24693.100.4.1.1|66|2097152
1.3.6.1.4.1.24693.100.4.1.2|66|1780736
1.3.6.1.4.1.24693.100.179.1.1.1.1.4.10.2.3.4|2|1
1.3.6.1.4.1.24693.100.179.1.1.1.1.4.10.2.3.5|2|1
1.3.6.1.4.1.24693.100.179.1.1.1.2.16.253.1.8.176.0.0.0.251.0.0.0.0.0.0.0.1|2|2