InfraTeam bc14b9137e newdevice: Added detection for Hirschmann Railswitch #6161 (#6207)
* Added detection for Hirschmann Railswitch

* Update AUTHORS.md

I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes (old states and temperatures directories removal)

* fix for PR 6207 : state fileupdated
2017-03-23 14:36:25 -05:00

13 lines
400 B
PHP

<?php
if ($device['os'] == 'hirschmann') {
echo 'Hirschmann : ';
$descr = 'Processor';
$usage = snmp_get($device, 'HMPRIV-MGMT-SNMP-MIB::hmCpuUtilization.0', '-OvqU');
if (is_numeric($usage)) {
discover_processor($valid['processor'], $device, 'HMPRIV-MGMT-SNMP-MIB::hmCpuUtilization.0', '0', 'hirschmann', $descr, '1', $usage, null, null);
}
}
unset($processors_array);