Skip to content

Commit

Permalink
Add support for Fiberstore branded Centec switches (librenms#16175)
Browse files Browse the repository at this point in the history
  • Loading branch information
freddy36 committed Jul 4, 2024
1 parent 3aedfb4 commit 05277cd
Show file tree
Hide file tree
Showing 6 changed files with 80,194 additions and 0 deletions.
80 changes: 80 additions & 0 deletions includes/definitions/discovery/fs-centec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
mib: SWITCH:IF-MIB
modules:
os:
version:
- SWITCH::version.0
serial:
- SWITCH::lswSlotSerialNo.1.1
sysDescr_regex: '/FSOS software, (?<hardware_series>[\d\w]+) software \((?<hardware>[\w\d ]+)\), Version (?<version>[\d\w\.]+)\s*\nCopyright \(C\) \d+ by FS\.COM\. All rights reserved\. \nCompiled (?<compiled>[\w\d \:]+).*/'
processors:
data:
-
oid: SWITCH::oneMinute
num_oid: '.1.3.6.1.4.1.52642.1.1.9.2.{{ $index }}'
type: oneMinute
mempools:
data:
-
oid: SWITCH::memory
total: SWITCH::memTotalReal
used: SWITCH::memTotalUsed
free: SWITCH::memTotalFree
descr: 'Memory {{ $index }}'
precision: 1024
sensors:
data:
-
oid:
- ifName
temperature:
data:
-
oid: devMSlotEnvironmentTable
value: devMSlotEnvironmentValue
num_oid: '.1.3.6.1.4.1.52642.1.37.1.3.1.4.{{ $index }}'
index: 'devMSltEnvironmentValue.{{ $index }}'
descr: 'System temperature {{ $subindex2 }}'
group: 'System'
low_limit: devMSlotEnvironmentLowerLimit
warn_limit: devMSlotEnvironmentUpperLimit
high_limit: devMSlotEnvironmentCriticalLimit
snmp_flags: ['-OteQUsab'] # make sure the index is numberic only
percent:
data:
-
oid: devMFanStatusTable
value: devMFanSpeed
num_oid: '.1.3.6.1.4.1.52642.1.37.1.1.1.1.5.{{ $index }}'
index: 'devMFanSpeed.{{ index }}'
descr: 'Fan {{ $subindex2 }} speed'
group: 'Fans'
state_name: FanSpeed
snmp_flags: ['-OteQUsab'] # make sure the index is numberic only
state:
data:
-
oid: devMFanStatusTable
value: devMFanStatus
num_oid: '.1.3.6.1.4.1.52642.1.37.1.1.1.1.4.{{ $index }}'
index: 'devMFanStatus.{{ index }}'
descr: 'Fan {{ $subindex2 }} status'
state_name: FanStatus
group: 'Fans'
snmp_flags: ['-OteQUsab']
states:
- { descr: active, graph: 1, value: 1, generic: 0 }
- { descr: deactive, graph: 2, value: 2, generic: 2 }
- { descr: notInstall, graph: 3, value: 3, generic: 2 }
- { descr: unsupport, graph: 4, value: 4, generic: 3 }
-
oid: devMPowerStatusTable
value: devMPowerAlertStatus
num_oid: '.1.3.6.1.4.1.52642.1.37.1.2.1.7.{{ $index }}'
descr: 'PSU {{ $index }} alarm'
index: 'devMPowerAlertStatus.{{ $index }}'
group: 'PSU'
states:
- { descr: noAlert, graph: 1, value: 1, generic: 0 }
- { descr: alert, graph: 2, value: 2, generic: 2 }
- { descr: unsupported, graph: 3, value: 3, generic: 3 }

16 changes: 16 additions & 0 deletions includes/definitions/fs-centec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
os: fs-centec
text: 'Fiberstore (Centec CNOS)'
type: network
icon: fs
group: fs-centec
mib_dir: fs/centec
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
-
sysObjectID:
- .1.3.6.1.4.1.52642.1.99
#- .1.3.6.1.4.1.52642.1.99.5638 # S5850-48B8C
#- .1.3.6.1.4.1.52642.1.99.5802 # S5850-48S2Q4C
1 change: 1 addition & 0 deletions includes/definitions/fs-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ discovery:
sysObjectID_except:
- .1.3.6.1.4.1.52642.1.1.10.1.805
- .1.3.6.1.4.1.52642.1.1.10.1.514
- .1.3.6.1.4.1.52642.1.99 # S5800/S5850 Series (fs-centec)
Loading

0 comments on commit 05277cd

Please sign in to comment.