mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Eaton Basics
This commit is contained in:
@@ -1436,6 +1436,14 @@ $config['os'][$os]['icon'] = 'generic';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Traffic';
|
||||
|
||||
// EATON PDU
|
||||
$os = 'eatonpdu';
|
||||
$config['os'][$os]['text'] = 'Eaton PDU';
|
||||
$config['os'][$os]['type'] = 'power';
|
||||
$config['os'][$os]['icon'] = 'eaton';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_current';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Current';
|
||||
|
||||
// Appliances
|
||||
$os = 'fortios';
|
||||
$config['os'][$os]['text'] = 'FortiOS';
|
||||
|
||||
17
includes/discovery/os/eatonpdu.inc.php
Normal file
17
includes/discovery/os/eatonpdu.inc.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.534.6.6.7')) {
|
||||
$os = 'eatonpdu';
|
||||
}
|
||||
}
|
||||
23
includes/discovery/sensors/current/eatonpdu.inc.php
Normal file
23
includes/discovery/sensors/current/eatonpdu.inc.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
if ($device['os'] == 'eatonpdu') {
|
||||
$data = snmpwalk_cache_multi_oid($device, 'outletCurrent', array(), 'EATON-EPDU-MIB');
|
||||
$descr = snmpwalk_cache_multi_oid($device, 'outletName', array(), 'EATON-EPDU-MIB');
|
||||
if (is_array($data)) {
|
||||
$cur_oid = '.1.3.6.1.4.1.534.6.6.7.6.4.1.3.';
|
||||
foreach ($data as $index => $entry) {
|
||||
$i++;
|
||||
discover_sensor($valid['sensor'], 'current', $device, $cur_oid.$index, $i, 'eatonpdu', $descr[$index]['outletName'], '1000', '1', null, null, null, null, $data[$index]['outletCurrent'], 'snmp', $index);
|
||||
}
|
||||
}
|
||||
}
|
||||
15
includes/polling/os/eatonpdu.inc.php
Normal file
15
includes/polling/os/eatonpdu.inc.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
$hardware = trim(snmp_get($device, 'partNumber.0', '-Ovq', 'EATON-EPDU-MIB'), '"');
|
||||
$version = trim(snmp_get($device, 'firmwareVersion.0', '-Ovq', 'EATON-EPDU-MIB'), '"');
|
||||
$serial = trim(snmp_get($device, 'serialNumber.0', '-Ovq', 'EATON-EPDU-MIB'), '"');
|
||||
3013
mibs/EATON-EPDU-MIB
Executable file
3013
mibs/EATON-EPDU-MIB
Executable file
File diff suppressed because it is too large
Load Diff
171
mibs/EATON-OIDS
Executable file
171
mibs/EATON-OIDS
Executable file
@@ -0,0 +1,171 @@
|
||||
EATON-OIDS DEFINITIONS ::= BEGIN
|
||||
|
||||
IMPORTS
|
||||
MODULE-IDENTITY, enterprises FROM SNMPv2-SMI
|
||||
Integer32 FROM SNMPv2-SMI
|
||||
TEXTUAL-CONVENTION FROM SNMPv2-TC;
|
||||
|
||||
eaton MODULE-IDENTITY
|
||||
LAST-UPDATED "201001240000Z"
|
||||
ORGANIZATION "Eaton Corporation"
|
||||
CONTACT-INFO
|
||||
"Eaton Power Quality Technical Support (PQTS) group
|
||||
www.eaton.com/powerxpert
|
||||
Technical Resource Center phone numbers
|
||||
United States: 1.800.843.9433 or 919.870.3028
|
||||
Canada: 1.800.461.9166 ext. 260
|
||||
All other countries: Call your local service representative."
|
||||
DESCRIPTION
|
||||
"Assigns major branches from the root of
|
||||
Eaton's OID tree (534).
|
||||
|
||||
Copyright (C) Exide Electronics 1992-98
|
||||
Copyright (C) Powerware Corporation 1999-2004
|
||||
Copyright (C) Eaton Corporation (2005-)."
|
||||
|
||||
REVISION "201001240000Z"
|
||||
DESCRIPTION
|
||||
"Added assignments for eatonEpdu and eatonEpduMa."
|
||||
|
||||
REVISION "200906180000Z"
|
||||
DESCRIPTION
|
||||
"Added assignments for powerCmnd and OSDCIIMIB."
|
||||
|
||||
|
||||
REVISION "200708060000Z"
|
||||
DESCRIPTION
|
||||
"Added assignments for pcdMIB and pxmMIB.
|
||||
Added common Textual Conventions for Integers."
|
||||
|
||||
REVISION "200707050000Z"
|
||||
DESCRIPTION
|
||||
"Added assignment for eatonEpduMIB.
|
||||
Cleaned up file for public consumption."
|
||||
|
||||
REVISION "200610150000Z"
|
||||
DESCRIPTION
|
||||
"Added assignments for powerChain and pxgMIB."
|
||||
|
||||
REVISION "200605250000Z"
|
||||
DESCRIPTION
|
||||
"Revised from the original assignments in XUPS-MIB.txt.
|
||||
Note that enterprises.534. was originally assigned to Exide
|
||||
Electronics before Powerware was acquired by Eaton."
|
||||
|
||||
::= { enterprises 534 }
|
||||
|
||||
-- EATON-OIDS { iso org(3) dod(6) internet(1) private(4)
|
||||
-- enterprises(1) eaton(534) }
|
||||
|
||||
|
||||
-- The Powerware "PowerMIB" for UPSs
|
||||
xupsMIB OBJECT IDENTIFIER ::= {eaton 1}
|
||||
-- Define the Environment group here since it is used in the Eaton-EMP-MIB as well
|
||||
xupsEnvironment OBJECT IDENTIFIER ::= {xupsMIB 6}
|
||||
|
||||
--
|
||||
-- The root of the list of Object Identifiers that are used to
|
||||
-- distinguish Eaton's SNMP agents (for use in sysObjId):
|
||||
xupsObjectId OBJECT IDENTIFIER ::= {eaton 2}
|
||||
powerwareEthernetSnmpAdapter OBJECT IDENTIFIER ::= {xupsObjectId 1}
|
||||
powerwareNetworkSnmpAdapterEther OBJECT IDENTIFIER ::= {xupsObjectId 2}
|
||||
powerwareNetworkSnmpAdapterToken OBJECT IDENTIFIER ::= {xupsObjectId 3}
|
||||
onlinetDaemon OBJECT IDENTIFIER ::= {xupsObjectId 4}
|
||||
connectUPSAdapterEthernet OBJECT IDENTIFIER ::= {xupsObjectId 5}
|
||||
powerwareNetworkDigitalIOEther OBJECT IDENTIFIER ::= {xupsObjectId 6}
|
||||
connectUPSAdapterTokenRing OBJECT IDENTIFIER ::= {xupsObjectId 7}
|
||||
simpleSnmpAdapter OBJECT IDENTIFIER ::= {xupsObjectId 8}
|
||||
powerwareEliSnmpAdapter OBJECT IDENTIFIER ::= {xupsObjectId 9}
|
||||
powerwareBasicEmbeddedEthernet OBJECT IDENTIFIER ::= {xupsObjectId 10}
|
||||
eatonPowerChainGateway OBJECT IDENTIFIER ::= {xupsObjectId 11}
|
||||
eatonPowerChainDevice OBJECT IDENTIFIER ::= {xupsObjectId 12}
|
||||
eatonPowerXpertMeter OBJECT IDENTIFIER ::= {xupsObjectId 13}
|
||||
|
||||
|
||||
-- Digital IO MIB (deprecated)
|
||||
-- File XUPSIOV1.MIB
|
||||
xupsIoMIB OBJECT IDENTIFIER ::= {eaton 3}
|
||||
|
||||
-- DataTrax Forseer and Powervision branch
|
||||
powerVision OBJECT IDENTIFIER ::= {eaton 4}
|
||||
|
||||
-- orphaned: BEEP (Basic Embedded Ethernet Product)
|
||||
-- File XUPS-BASIC-MIB.txt
|
||||
--xupsBasic OBJECT IDENTIFIER ::= {eaton 5}
|
||||
|
||||
-- A branch for Powerware Product MIBs
|
||||
products OBJECT IDENTIFIER ::= {eaton 6}
|
||||
-- Product assignments
|
||||
|
||||
pduAgent OBJECT IDENTIFIER ::= {products 6}
|
||||
-- pduAgent product assignments
|
||||
-- File MIB_hdpdu.mib for HD PDU
|
||||
hdpdu OBJECT IDENTIFIER ::= {pduAgent 2}
|
||||
|
||||
-- MIB for Eaton PDU, first for 9315's 3-phase PDU
|
||||
-- Defined in EATON-PDU-MIB.txt
|
||||
eatonPdu OBJECT IDENTIFIER ::= {pduAgent 4}
|
||||
|
||||
-- MIB for Eaton Powerware first-generation Managed ePDUs
|
||||
-- Defined in EATON-EPDU-MA-MIB.txt
|
||||
-- eatonEpduMa OBJECT IDENTIFIER ::= {pduAgent 6}
|
||||
|
||||
-- MIB for Eaton Powerware ePDUs
|
||||
-- Defined in EATON-EPDU-MIB.txt
|
||||
-- eatonEpdu OBJECT IDENTIFIER ::= {pduAgent 7}
|
||||
|
||||
|
||||
dataCenter OBJECT IDENTIFIER ::= {products 7}
|
||||
-- dataCenter product assignments
|
||||
environmentalMonitor OBJECT IDENTIFIER ::= {dataCenter 1}
|
||||
|
||||
|
||||
-- A branch for Eaton IT Department
|
||||
itProjects OBJECT IDENTIFIER ::= {eaton 7}
|
||||
pki OBJECT IDENTIFIER ::= {itProjects 1}
|
||||
|
||||
-- A branch for PowerChain Product MIBs
|
||||
powerChain OBJECT IDENTIFIER ::= {eaton 8}
|
||||
-- Product assignments
|
||||
|
||||
-- MIB to support Alarms and Events in PowerXpert toolkit-enabled
|
||||
-- Devices, Gateways, PXMeters
|
||||
-- Defined in file EATON-PXG-MIB.txt
|
||||
-- pxgMIB OBJECT IDENTIFIER ::= {powerChain 1}
|
||||
|
||||
-- MIB to support common measures in Power Chain Devices
|
||||
-- Defined in file EATON-PCD-MIB.txt
|
||||
-- pcdMIB OBJECT IDENTIFIER ::= {powerChain 2}
|
||||
|
||||
-- MIB to support power measures in Power Meters
|
||||
-- Defined in file EATON-PWR-MTR-MIB.txt
|
||||
-- pxmMIB OBJECT IDENTIFIER ::= {powerChain 3}
|
||||
|
||||
-- A branch for powercomand commercial control Product MIBs
|
||||
powerCmnd OBJECT IDENTIFIER ::= {eaton 9}
|
||||
|
||||
-- Product assignments
|
||||
-- MIB to support the OSDCII controller
|
||||
-- Defined in file EATON-OSDCII-MIB.txt
|
||||
-- osdcMIB OBJECT IDENTIFIER ::= {powerCmnd 1}
|
||||
|
||||
-- Define some common Textual Conventions
|
||||
-- PositiveInteger and NonNegativeInteger are borrowed from RFC1628
|
||||
PositiveInteger ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "d"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"This data type is a non-zero and non-negative value."
|
||||
SYNTAX Integer32 (1..2147483647)
|
||||
|
||||
NonNegativeInteger ::= TEXTUAL-CONVENTION
|
||||
DISPLAY-HINT "d"
|
||||
STATUS current
|
||||
DESCRIPTION
|
||||
"This data type is a non-negative value."
|
||||
SYNTAX Integer32 (0..2147483647)
|
||||
|
||||
|
||||
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user