mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
BIN
html/images/os/hwg-poseidon.png
Normal file
BIN
html/images/os/hwg-poseidon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
html/images/os/hwg.png
Normal file
BIN
html/images/os/hwg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 712 B |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
@@ -1634,10 +1634,18 @@ $config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Traffic';
|
||||
|
||||
// HWGroup Poseidon
|
||||
$os = 'poseidon';
|
||||
$config['os'][$os]['text'] = 'Poseidon';
|
||||
$os = 'hwg-poseidon';
|
||||
$config['os'][$os]['text'] = 'HWg Poseidon';
|
||||
$config['os'][$os]['type'] = 'environment';
|
||||
$config['os'][$os]['icon'] = 'poseidon';
|
||||
$config['os'][$os]['icon'] = 'hwg-poseidon';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Traffic';
|
||||
|
||||
// HWGroup STE
|
||||
$os = 'hwg-ste';
|
||||
$config['os'][$os]['text'] = 'HWg STE';
|
||||
$config['os'][$os]['type'] = 'environment';
|
||||
$config['os'][$os]['icon'] = 'hwg';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Traffic';
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.21796.3.3')) {
|
||||
$os = 'poseidon';
|
||||
$os = 'hwg-poseidon';
|
||||
}
|
||||
}
|
||||
}
|
||||
17
includes/discovery/os/hwg-ste.inc.php
Normal file
17
includes/discovery/os/hwg-ste.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.21796.4.1')) {
|
||||
$os = 'hwg-ste';
|
||||
}
|
||||
}
|
||||
160
mibs/STE-MIB
Normal file
160
mibs/STE-MIB
Normal file
@@ -0,0 +1,160 @@
|
||||
-- HWg-STE MIB 1.02
|
||||
-- History:
|
||||
--
|
||||
-- 1.00 08.12.2008 Marek Hummel - Created
|
||||
-- 1.01 03.08.2009 Marek Hummel - Add SensorID, Change SensorState values
|
||||
-- 1.02 14.05.2010 Marek Hummel - Fix Syntax
|
||||
--
|
||||
|
||||
STE-MIB DEFINITIONS ::= BEGIN
|
||||
IMPORTS
|
||||
OBJECT-TYPE FROM RFC-1212
|
||||
enterprises FROM RFC1155-SMI
|
||||
DisplayString,sysName FROM RFC1213-MIB
|
||||
TRAP-TYPE FROM RFC-1215;
|
||||
|
||||
--
|
||||
-- Type Definitions
|
||||
--
|
||||
PositiveInteger ::= INTEGER (1..2147483647) -- 0x7FFF FFFF
|
||||
|
||||
UnitType ::= INTEGER {
|
||||
none (0),
|
||||
celsius (1),
|
||||
fahrenheit (2),
|
||||
kelvin (3),
|
||||
percent(4)
|
||||
}
|
||||
|
||||
SensorState ::= INTEGER {
|
||||
invalid (0),
|
||||
normal (1),
|
||||
outofrangelo (2),
|
||||
outofrangehi (3),
|
||||
alarmlo (4),
|
||||
alarmhi (5)
|
||||
}
|
||||
|
||||
SensorSN ::= DisplayString (SIZE (0..16))
|
||||
SensorName ::= DisplayString (SIZE (0..16))
|
||||
SensorValue ::= INTEGER
|
||||
SensorID ::= INTEGER
|
||||
SensorString ::= DisplayString (SIZE (0..10))
|
||||
|
||||
--
|
||||
-- Node Definitions
|
||||
--
|
||||
|
||||
hwgroup OBJECT IDENTIFIER ::= { enterprises 21796 }
|
||||
x390 OBJECT IDENTIFIER ::= { hwgroup 4 }
|
||||
ste OBJECT IDENTIFIER ::= { x390 1 }
|
||||
|
||||
-- Application Info
|
||||
info OBJECT IDENTIFIER ::= { ste 70 }
|
||||
|
||||
infoAddressMAC OBJECT-TYPE
|
||||
SYNTAX DisplayString (SIZE (0..17))
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"MAC address in text form.
|
||||
It is here to distinguish devices in trap messages."
|
||||
::= { info 1 }
|
||||
|
||||
-- Table has to be last in a branch to satisfy snmp walk engine implementation
|
||||
sensTable OBJECT-TYPE
|
||||
SYNTAX SEQUENCE OF SensEntry
|
||||
ACCESS not-accessible
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"A list of sensor table entries. The number
|
||||
of entries corresponds with number of detected sensors."
|
||||
::= { ste 3 }
|
||||
|
||||
sensEntry OBJECT-TYPE
|
||||
SYNTAX SensEntry
|
||||
ACCESS not-accessible
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"An entry containing information applicable to a
|
||||
particular sensor."
|
||||
INDEX { sensIndex }
|
||||
::= { sensTable 1 }
|
||||
|
||||
SensEntry ::= SEQUENCE {
|
||||
sensIndex PositiveInteger,
|
||||
sensName SensorName,
|
||||
sensState SensorState,
|
||||
sensString SensorString,
|
||||
sensValue SensorValue,
|
||||
sensSN SensorSN,
|
||||
sensUnit UnitType,
|
||||
sensID SensorID
|
||||
}
|
||||
|
||||
sensIndex OBJECT-TYPE
|
||||
SYNTAX PositiveInteger
|
||||
ACCESS not-accessible
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The sensor index."
|
||||
::= { sensEntry 1 }
|
||||
|
||||
sensName OBJECT-TYPE
|
||||
SYNTAX SensorName
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The sensor name."
|
||||
::= { sensEntry 2 }
|
||||
|
||||
sensState OBJECT-TYPE
|
||||
SYNTAX SensorState
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The sensor state."
|
||||
::= { sensEntry 3 }
|
||||
|
||||
sensString OBJECT-TYPE
|
||||
SYNTAX SensorString
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The string representation of sensor value."
|
||||
::= { sensEntry 4 }
|
||||
|
||||
sensValue OBJECT-TYPE
|
||||
SYNTAX SensorValue
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The integer (decimal * 10) representation
|
||||
of sensor value."
|
||||
::= { sensEntry 5 }
|
||||
|
||||
sensSN OBJECT-TYPE
|
||||
SYNTAX SensorSN
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The sensor Serial number."
|
||||
::= { sensEntry 6 }
|
||||
|
||||
sensUnit OBJECT-TYPE
|
||||
SYNTAX UnitType
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The sensor unit."
|
||||
::= { sensEntry 7 }
|
||||
|
||||
sensID OBJECT-TYPE
|
||||
SYNTAX UnitType
|
||||
ACCESS read-only
|
||||
STATUS mandatory
|
||||
DESCRIPTION
|
||||
"The sensor ID."
|
||||
::= { sensEntry 8 }
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user