Fixed whitespace bug in ceraos temperature sensor (#8948)

* Fixed whitespace bug in ceraos temperature sensor

* Update ceraos.json

* Update ceraos.json
This commit is contained in:
Neil Lathwood
2018-07-27 00:34:47 +01:00
committed by Tony Murray
parent ac3fa28f7e
commit cf01c3a8d1
2 changed files with 4 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
<?php
$mib = 'genEquipUnitIduTemperature.0';
$oid = ' .1.3.6.1.4.1.2281.10.1.1.9.0';
$oid = '.1.3.6.1.4.1.2281.10.1.1.9.0';
$oids = snmp_get($device, $mib, '-OsqnU', 'MWRM-UNIT-MIB');
d_echo($oids."\n");

View File

@@ -1314,8 +1314,8 @@
"sensor_deleted": "0",
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": " .1.3.6.1.4.1.2281.10.1.1.9.0",
"sensor_index": " .1.3.6.1.4.1.2281.10.1.1.9.0",
"sensor_oid": ".1.3.6.1.4.1.2281.10.1.1.9.0",
"sensor_index": ".1.3.6.1.4.1.2281.10.1.1.9.0",
"sensor_type": "ceraos",
"sensor_descr": "System Temp",
"sensor_divisor": "1",
@@ -1359,57 +1359,7 @@
],
"state_indexes": []
},
"poller": {
"sensors": [
{
"sensor_deleted": "0",
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": " .1.3.6.1.4.1.2281.10.1.1.9.0",
"sensor_index": " .1.3.6.1.4.1.2281.10.1.1.9.0",
"sensor_type": "ceraos",
"sensor_descr": "System Temp",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "0",
"sensor_limit": "55",
"sensor_limit_warn": null,
"sensor_limit_low": "25",
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": "35",
"user_func": null,
"state_name": null
},
{
"sensor_deleted": "0",
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.2281.10.1.1.10.0",
"sensor_index": ".1.3.6.1.4.1.2281.10.1.1.10.0",
"sensor_type": "ceraos",
"sensor_descr": "System voltage",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "47",
"sensor_limit": "54.05",
"sensor_limit_warn": null,
"sensor_limit_low": "39.95",
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
}
],
"state_indexes": []
}
"poller": "matches discovery"
},
"wireless": {
"discovery": {