Rosiak bceb6e1dfa Adjust code to Best Practice
- More adjustments. Done after the big cleanup PR
I’ve gone through discovery and polling folders.
2015-07-15 13:11:40 +02:00

12 lines
502 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];