Fiberhome updates (#8561)

* Added new Fan and Power state

* Update test cases

* Low voltage si warning level

* Update test
This commit is contained in:
Alan Gregory 2018-04-13 23:57:34 -03:00 committed by Tony Murray
parent 1c94cddd70
commit d08e1e6bb9
3 changed files with 176 additions and 1 deletions

View File

@ -24,3 +24,22 @@ modules:
high_limit: 100
low_warn_limit: 15
warn_limit: 55
state:
data:
-
oid: fanAlarmStatus
num_oid: .1.3.6.1.4.1.5875.800.3.60.2.1.1.
descr: "Fan slot {{ $index }} Status"
state_name: fanState
states:
- { descr: Normal, graph: 0, value: 1, generic: 0 }
- { descr: Failed, graph: 0, value: 2, generic: 2 }
-
oid: powerAlarmStatus
num_oid: .1.3.6.1.4.1.5875.800.3.60.1.1.2.
descr: "Power slot {{ $index }} Status"
state_name: powerState
states:
- { descr: Normal, graph: 0, value: 1, generic: 0 }
- { descr: Logw Voltage, graph: 0, value: 2, generic: 1 }
- { descr: PowerFault, graph: 0, value: 3, generic: 2 }

View File

@ -143,6 +143,121 @@
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.5875.800.3.60.2.1.1.21",
"sensor_index": "21",
"sensor_type": "fanState",
"sensor_descr": "Fan slot 21 Status",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "1",
"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": "FanState"
},
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.5875.800.3.60.2.1.1.22",
"sensor_index": "22",
"sensor_type": "fanState",
"sensor_descr": "Fan slot 22 Status",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "1",
"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": "FanState"
},
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.5875.800.3.60.2.1.1.23",
"sensor_index": "23",
"sensor_type": "fanState",
"sensor_descr": "Fan slot 23 Status",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "1",
"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": "FanState"
},
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.5875.800.3.60.1.1.2.1",
"sensor_index": "1",
"sensor_type": "powerState",
"sensor_descr": "Power slot 1 Status",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "1",
"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": "powerState"
},
{
"sensor_deleted": "0",
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.5875.800.3.60.1.1.2.2",
"sensor_index": "2",
"sensor_type": "powerState",
"sensor_descr": "Power slot 2 Status",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_current": "3",
"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": "powerState"
},
{
"sensor_deleted": "0",
"sensor_class": "temperature",
@ -167,7 +282,43 @@
"state_name": null
}
],
"state_indexes": []
"state_indexes": [
{
"state_name": "FanState",
"state_descr": "Normal",
"state_draw_graph": "0",
"state_value": "1",
"state_generic_value": "0"
},
{
"state_name": "FanState",
"state_descr": "Failed",
"state_draw_graph": "0",
"state_value": "2",
"state_generic_value": "2"
},
{
"state_name": "powerState",
"state_descr": "Normal",
"state_draw_graph": "0",
"state_value": "1",
"state_generic_value": "0"
},
{
"state_name": "powerState",
"state_descr": "Logw Voltage",
"state_draw_graph": "0",
"state_value": "2",
"state_generic_value": "1"
},
{
"state_name": "powerState",
"state_descr": "PowerFault",
"state_draw_graph": "0",
"state_value": "3",
"state_generic_value": "2"
}
]
},
"poller": "matches discovery"
}

View File

@ -83,3 +83,8 @@
1.3.6.1.4.1.5875.800.3.9.8.1.1.5.10|2|104
1.3.6.1.4.1.5875.800.3.9.8.1.1.6.9|2|5945
1.3.6.1.4.1.5875.800.3.9.8.1.1.6.10|2|5907
1.3.6.1.4.1.5875.800.3.60.1.1.2.1|2|1
1.3.6.1.4.1.5875.800.3.60.1.1.2.2|2|3
1.3.6.1.4.1.5875.800.3.60.2.1.1.21|2|1
1.3.6.1.4.1.5875.800.3.60.2.1.1.22|2|1
1.3.6.1.4.1.5875.800.3.60.2.1.1.23|2|1