librenms/includes/polling/os/sentry3.inc.php
Filippo Giunchedi fe1be15286 sentry3: add Sentry Smart CDU detection
The polled SNMP OIDs are the same as Switched CDU, thus match both.
2015-05-08 14:05:34 +02:00

14 lines
506 B
PHP

<?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|Smart)\ CDU\ Version/', $version);
$version = $version[1];
?>