mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Add servertech sentry3 pdu support, by falz
git-svn-id: http://www.observium.org/svn/observer/trunk@1887 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^Sentry\ Switched /", $sysDescr)) { $os = "sentry3"; }
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
#Sentry3-MIB::towerModelNumber "CW-24V2-L30M"
|
||||
#Sentry3-MIB::systemVersion "Sentry Switched CDU Version 6.0g"
|
||||
#Sentry3-MIB::towerProductSN "ABEF0001561"
|
||||
|
||||
$hardware = snmp_get($device, "towerModelNumber.1", "-Ovq", "Sentry3-MIB");
|
||||
$serial = snmp_get($device, "towerProductSN.1", "-Ovq", "Sentry3-MIB");
|
||||
$version = snmp_get($device, "systemVersion.0", "-Ovq", "Sentry3-MIB");
|
||||
$version = preg_split('/Sentry\ Switched\ CDU\ Version/', $version);
|
||||
$version = $version[1];
|
||||
|
||||
?>
|
||||
@@ -604,6 +604,13 @@ $config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||
$config['os'][$os]['over'][0]['text'] = "Traffic";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
|
||||
$os = "sentry3";
|
||||
$config['os'][$os]['text'] = "ServerTech Sentry3";
|
||||
$config['os'][$os]['type'] = "power";
|
||||
$config['os'][$os]['over'][0]['graph'] = "device_current";
|
||||
$config['os'][$os]['over'][0]['text'] = "Current";
|
||||
$config['os'][$os]['icon'] = "servertech";
|
||||
|
||||
$device_types = array('server', 'network', 'firewall', 'workstation', 'printer', 'power', 'environment');
|
||||
|
||||
### Graph Types
|
||||
|
||||
Reference in New Issue
Block a user