Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added basic support for VMware ESXi, HP ProCurve and Clavister Firewalls #31

Merged
merged 12 commits into from
Apr 26, 2021
Merged
45 changes: 45 additions & 0 deletions config/device-classes/generic/clavister.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: clavister

config:
components:
cpu: true
memory: true

match:
logical_operator: "OR"
conditions:
- type: SysObjectID
match_mode: startsWith
values:
- ".1.3.6.1.4.1.5089.1"

identify:
properties:
vendor:
- detection: constant
value: "Clavister AB"
model:
- detection: SysDescription
operators:
- type: modify
modify_method: regexSubmatch
regex: '^([\D]+)'
TheFireMike marked this conversation as resolved.
Show resolved Hide resolved
format: "$1"
os_version:
- detection: SysDescription
operators:
- type: modify
modify_method: regexSubmatch
regex: 'Core ([-\d\.]+)'
format: "$1"

components:
cpu:
load:
- detection: snmpget
oid: .1.3.6.1.4.1.5089.1.2.1.1.0
memory:
usage:
- detection: snmpget
oid: .1.3.6.1.4.1.5089.1.2.1.12.0

47 changes: 47 additions & 0 deletions config/device-classes/generic/procurve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: procurve

config:
components:
cpu: true
memory: true

match:
logical_operator: "OR"
conditions:
- type: SysObjectID
match_mode: startsWith
values:
- ".1.3.6.1.4.1.11.2.3.7.11"

identify:
properties:
vendor:
- detection: constant
value: "HP ProCurve"
model:
- detection: SysObjectID
operators:
- type: modify
modify_method: map
mappings: sysObjectID.yaml
TheFireMike marked this conversation as resolved.
Show resolved Hide resolved
serial_number:
- detection: snmpget
oid: .1.3.6.1.2.1.47.1.1.1.1.11.1001
os_version:
- detection: SysDescription
operators:
- type: modify
modify_method: regexSubmatch
regex: 'revision ([^,]+),'
format: "$1"

components:
cpu:
load:
- detection: snmpget
oid: .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0
memory:
usage:
- detection: snmpget
oid: .1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1
TheFireMike marked this conversation as resolved.
Show resolved Hide resolved

80 changes: 80 additions & 0 deletions config/device-classes/generic/vmware-esxi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: "vmware-esxi"

config:
components:
cpu: true
memory: true
disk: true
studost marked this conversation as resolved.
Show resolved Hide resolved
server: true

match:
logical_operator: OR
conditions:
- type: SysObjectID
match_mode: startsWith
values:
- ".1.3.6.1.4.1.6876.4.1"
- type: SysDescription
match_mode: regex
values:
- '^VMware ESXi'

identify:
properties:
vendor:
- detection: constant
value: "VMware"
model:
- detection: SysDescription
TheFireMike marked this conversation as resolved.
Show resolved Hide resolved
serial_number:
- detection: snmpget
oid: .1.3.6.1.2.1.47.1.1.1.1.11.1
os_version:
- detection: snmpget
oid: .1.3.6.1.4.1.6876.1.2.0

components:
cpu:
load:
- detection: snmpget
oid: ".1.3.6.1.2.1.25.3.3.1.2.1"
memory:
usage:
- detection: snmpget
oid: ".1.3.6.1.2.1.25.2.3.1.6.6"
operators:
- type: modify
modify_method: divide
value:
detection: snmpget
oid: ".1.3.6.1.2.1.25.2.3.1.5.6"
operators:
- type: modify
modify_method: divide
value:
detection: constant
value: 100
disk:
storages:
detection: snmpwalk
values:
type:
oid: ".1.3.6.1.2.1.25.2.3.1.2"
operators:
- type: modify
modify_method: map
mappings: hrStorageType.yaml
description:
oid: ".1.3.6.1.2.1.25.2.3.1.3"
available:
oid: ".1.3.6.1.2.1.25.2.3.1.5"
used:
oid: ".1.3.6.1.2.1.25.2.3.1.6"
server:
procs:
- detection: snmpget
oid: ".1.3.6.1.2.1.25.1.6.0"
users:
- detection: snmpget
oid: "1.3.6.1.2.1.25.1.5.0"

5 changes: 4 additions & 1 deletion config/mappings/sysObjectID.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2638,4 +2638,7 @@
.1.3.6.1.4.1.9148.1.3.1: "Acme Packet 3800"
.1.3.6.1.4.1.9148.1.3.2: "Acme Packet 3820"
.1.3.6.1.4.1.9148.1.5: "Acme Packet 6000"
.1.3.6.1.4.1.9148.1.5.1: "Acme Packet 6300"
.1.3.6.1.4.1.9148.1.5.1: "Acme Packet 6300"
# procurve
.1.3.6.1.4.1.11.2.3.7.11.154: "HP J9728A 2920-48G"

TheFireMike marked this conversation as resolved.
Show resolved Hide resolved