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:
Tom Laermans
2011-03-16 20:13:50 +00:00
parent a6e575b577
commit 1078803644
3 changed files with 28 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<?php
if (!$os)
{
if (preg_match("/^Sentry\ Switched /", $sysDescr)) { $os = "sentry3"; }
}
?>
+13
View File
@@ -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];
?>
+7
View File
@@ -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