Lorenzo Zafra bd3fd64f3e newdevice: Support - ICT Digital Power Supply (#6369)
* Basic support for ICT PSU, no sensors yet.

* Added current and voltage sensors

* Fixed coding style issues

* Fixed indexes
2017-04-12 15:00:54 -05:00

8 lines
304 B
PHP

<?php
//SNMPv2-SMI::enterprises.39145.11.1.0 = STRING: "ICT600-48"
//SNMPv2-SMI::enterprises.39145.11.4.0 = STRING: "1.08"
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.39145.11.1.0', '-OQv', '', ''), '" ');
$version = 'v' . trim(snmp_get($device, '1.3.6.1.4.1.39145.11.4.0', '-OQv', '', ''), '" ');