Skip to content

Commit

Permalink
newdevice: Added support for Rittal LCP Liquid Cooling Package (#6626)
Browse files Browse the repository at this point in the history
* newdevice: Rittal LCP

* Add snmpsim file

* Change state sensor to YAML

* Clean old file

* Add state_name
  • Loading branch information
0-skill authored and laf committed Jul 5, 2017
1 parent 8b627bf commit 39d3639
Show file tree
Hide file tree
Showing 10 changed files with 5,247 additions and 0 deletions.
1 change: 1 addition & 0 deletions html/images/logos/rittal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions html/images/os/rittal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions includes/definitions/discovery/rittal-lcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
mib: RITTAL-CMC-III-MIB
modules:
sensors:
state:
-
oid: cmcIIIUnitStatus
value: cmcIIIUnitStatus
state_name: cmcIIIUnitStatus
num_oid: .1.3.6.1.4.1.2606.7.2.1.
index: 'cmcIIIUnitStatus.{{ $index }}'
descr: Unit Status
states:
- { descr: OK, graph: 1, value: 1, generic: 0 }
- { descr: Failed, graph: 1, value: 2, generic: 2 }
- { descr: Overload, graph: 1, value: 3, generic: 1 }
17 changes: 17 additions & 0 deletions includes/definitions/rittal-lcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
os: rittal-lcp
text: 'Rittal LCP'
type: environment
icon: rittal
mib_dir:
- rittal
over:
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_ucd_memory, text: 'Memory Usage' }
- { graph: device_storage, text: 'Storage Usage' }
discovery:
-
sysObjectId:
- .1.3.6.1.4.1.2606.7
- sysDescr:
- 'Rittal LCP'

10 changes: 10 additions & 0 deletions includes/polling/os/rittal-lcp.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

$oids = 'cmcIIIUnitFWRev.0 cmcIIIDevName.1 cmcIIIUnitSerial.0';

$data = snmp_get_multi($device, $oids, '-OQUs', 'RITTAL-CMC-III-MIB');
d_echo($data);

$version = $data[0]['cmcIIIUnitFWRev'];
$hardware = $data[1]['cmcIIIDevName'];
$serial = $data[0]['cmcIIIUnitSerial'];
Loading

0 comments on commit 39d3639

Please sign in to comment.