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 support for Orvaldi UPS #10021

Merged
merged 7 commits into from Mar 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added html/images/os/orvaldi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions includes/definitions/discovery/orvaldi-ups.yaml
@@ -0,0 +1,29 @@
mib: companyMIB
modules:
sensors:
state:
data:
-
oid: upsIdUPSType
num_oid: '.1.3.6.1.4.1.21111.1.1.1.7.{{ $index }}'
descr: 'UPS Type'
state_name: upsIdUPSType
states:
- { descr: 'standby', graph: 1, value: 0, generic: 0 }
- { descr: 'line-interactive', graph: 1, value: 1, generic: 1 }
- { descr: 'on-line', graph: 1, value: 2, generic: 0 }
count:
data:
-
oid: upsBatNumberInSeries
num_oid: '.1.3.6.1.4.1.21111.1.1.3.14.{{ $index }}'
descr: 'Nb. of Batteries in Series'
group: Battery
index: 'series-{{ $index }}'

-
oid: upsBatNumberInParallel
num_oid: '.1.3.6.1.4.1.21111.1.1.3.15.{{ $index }}'
descr: 'Nb. of Batteries in Parallel'
group: Battery
index: 'parallel-{{ $index }}'
17 changes: 17 additions & 0 deletions includes/definitions/orvaldi-ups.yaml
@@ -0,0 +1,17 @@
os: orvaldi-ups
text: Orvaldi UPS
type: power
icon: orvaldi
rfc1628_compat: true
mib_dir:
- orvaldi
over:
- { graph: device_load, text: Load }
- { graph: device_power, text: Power }
- { graph: device_charge, text: Charge }
discovery:
-
snmpget:
oid: .1.3.6.1.4.1.21111.1.1.1.6.0
op: starts
value: VER
5 changes: 5 additions & 0 deletions includes/polling/os/orvaldi-ups.inc.php
@@ -0,0 +1,5 @@
<?php
$orvaldi_data = snmp_get_multi_oid($device, ['upsIdSerialNumber.0', 'upsIdFWVersion.0', 'upsIdModelName.0'], '-OUQs', 'companyMIB');
$version = $orvaldi_data['upsIdFWVersion.0'];
$serial = $orvaldi_data['upsIdSerialNumber.0'];
$hardware = $orvaldi_data['upsIdModelName.0'];