Skip to content

Commit

Permalink
Added linux device class
Browse files Browse the repository at this point in the history
  • Loading branch information
toberd committed Mar 1, 2021
1 parent ffa1e29 commit 3f23cef
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions config/device-classes/generic/linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "linux"

config:
components:
cpu: true
memory: true

match:
logical_operator: OR
conditions:
- type: SysObjectID
match_mode: startsWith
values:
- ".1.3.6.1.4.1.8072.3.2.10"
- type: SysDescription
match_mode: regex
values:
- '/^Linux/'

components:
cpu:
load:
- detection: snmpget
oid: ".1.3.6.1.4.1.2021.10.1.3.2"
memory:
usage:
- detection: snmpget
oid: ".1.3.6.1.4.1.2021.4.6.0"

0 comments on commit 3f23cef

Please sign in to comment.