airos processor and sensor fixes (#8227)

This commit is contained in:
Tony Murray
2018-02-07 23:24:20 -06:00
committed by GitHub
parent f6cc671bb0
commit f6ad067af4
3 changed files with 106 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ modules:
-
oid: ubntHostCpuLoad
num_oid: '.1.3.6.1.4.1.41112.1.4.8.3.{{ $index }}'
precision: 100
sensors:
state:
data:
@@ -12,7 +13,6 @@ modules:
oid: ubntGpsFix
num_oid: .1.3.6.1.4.1.41112.1.4.9.2.
descr: GPS Fix
index: 'ubntGpsFix.{{ $index }}'
state_name: ubntGpsFix
states:
- { value: 0, generic: 3, graph: 1, descr: unknown }
@@ -27,4 +27,4 @@ modules:
divisor: 1
num_oid: .1.3.6.1.4.1.41112.1.4.8.4.
descr: Temperature
index: 'ubntHostTemperature.{{ $index }}'

View File

@@ -596,5 +596,106 @@
}
]
}
},
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": "0",
"hrDeviceIndex": "0",
"processor_oid": ".1.3.6.1.4.1.41112.1.4.8.3.0",
"processor_index": "0",
"processor_type": "airos",
"processor_usage": "4",
"processor_descr": "Processor",
"processor_precision": "100",
"processor_perc_warn": "75"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41112.1.4.9.2.0",
"sensor_index": "0",
"sensor_type": "ubntGpsFix",
"sensor_descr": "GPS Fix",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "0",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": "ubntGpsFix"
},
{
"sensor_deleted": "0",
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.41112.1.4.8.4.0",
"sensor_index": "0",
"sensor_type": "airos",
"sensor_descr": "Temperature",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "66",
"sensor_limit": "86",
"sensor_limit_warn": null,
"sensor_limit_low": "56",
"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": [
{
"state_name": "ubntGpsFix",
"state_descr": "unknown",
"state_draw_graph": "1",
"state_value": "0",
"state_generic_value": "3"
},
{
"state_name": "ubntGpsFix",
"state_descr": "nofix",
"state_draw_graph": "1",
"state_value": "1",
"state_generic_value": "2"
},
{
"state_name": "ubntGpsFix",
"state_descr": "fix2d",
"state_draw_graph": "1",
"state_value": "2",
"state_generic_value": "0"
},
{
"state_name": "ubntGpsFix",
"state_descr": "fix3d",
"state_draw_graph": "1",
"state_value": "3",
"state_generic_value": "0"
}
]
},
"poller": "matches discovery"
}
}

View File

@@ -18,3 +18,6 @@
1.3.6.1.4.1.41112.1.4.5.1.15.1|66|22
1.3.6.1.4.1.41112.1.4.6.1.3.1|2|53
1.3.6.1.4.1.41112.1.4.6.1.4.1|2|50
1.3.6.1.4.1.41112.1.4.8.3.0|2|400
1.3.6.1.4.1.41112.1.4.8.4.0|2|66
1.3.6.1.4.1.41112.1.4.9.2.0|2|0