mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added discovery for state of serverscheck flooding sensors. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
201 lines
7.4 KiB
JSON
201 lines
7.4 KiB
JSON
{
|
|
"os": {
|
|
"discovery": {
|
|
"devices": [
|
|
{
|
|
"sysName": "<private>",
|
|
"sysObjectID": ".1.3.6.1.4.1.17095",
|
|
"sysDescr": "Temperature & Sensor Gateway",
|
|
"sysContact": null,
|
|
"version": null,
|
|
"hardware": "",
|
|
"features": null,
|
|
"location": null,
|
|
"os": "serverscheck",
|
|
"type": "network",
|
|
"serial": null,
|
|
"icon": "generic.svg"
|
|
}
|
|
]
|
|
},
|
|
"poller": {
|
|
"devices": [
|
|
{
|
|
"sysName": "<private>",
|
|
"sysObjectID": ".1.3.6.1.4.1.17095",
|
|
"sysDescr": "Temperature & Sensor Gateway",
|
|
"sysContact": "<private>",
|
|
"version": null,
|
|
"hardware": "",
|
|
"features": null,
|
|
"location": "<private>",
|
|
"os": "serverscheck",
|
|
"type": "network",
|
|
"serial": null,
|
|
"icon": "generic.svg"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sensors": {
|
|
"discovery": {
|
|
"sensors": [
|
|
{
|
|
"sensor_deleted": "0",
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.17095.3.10.0",
|
|
"sensor_index": "sensor3name",
|
|
"sensor_type": "Serverscheck_FloodSensor",
|
|
"sensor_descr": "Flooding",
|
|
"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": "Serverscheck_FloodSensor"
|
|
},
|
|
{
|
|
"sensor_deleted": "0",
|
|
"sensor_class": "temperature",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.17095.3.2.0",
|
|
"sensor_index": "sensor1name",
|
|
"sensor_type": "serverscheck",
|
|
"sensor_descr": "Temperature",
|
|
"sensor_divisor": "1",
|
|
"sensor_multiplier": "1",
|
|
"sensor_current": "27.53",
|
|
"sensor_limit": "47.53",
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": "17.53",
|
|
"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": "Serverscheck_FloodSensor",
|
|
"state_descr": "-",
|
|
"state_draw_graph": "1",
|
|
"state_value": "1",
|
|
"state_generic_value": "1"
|
|
},
|
|
{
|
|
"state_name": "Serverscheck_FloodSensor",
|
|
"state_descr": "DRY",
|
|
"state_draw_graph": "1",
|
|
"state_value": "2",
|
|
"state_generic_value": "0"
|
|
},
|
|
{
|
|
"state_name": "Serverscheck_FloodSensor",
|
|
"state_descr": "WET",
|
|
"state_draw_graph": "1",
|
|
"state_value": "4",
|
|
"state_generic_value": "2"
|
|
}
|
|
]
|
|
},
|
|
"poller": {
|
|
"sensors": [
|
|
{
|
|
"sensor_deleted": "0",
|
|
"sensor_class": "state",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.17095.3.10.0",
|
|
"sensor_index": "sensor3name",
|
|
"sensor_type": "Serverscheck_FloodSensor",
|
|
"sensor_descr": "Flooding",
|
|
"sensor_divisor": "1",
|
|
"sensor_multiplier": "1",
|
|
"sensor_current": "2",
|
|
"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": "1",
|
|
"user_func": null,
|
|
"state_name": "Serverscheck_FloodSensor"
|
|
},
|
|
{
|
|
"sensor_deleted": "0",
|
|
"sensor_class": "temperature",
|
|
"poller_type": "snmp",
|
|
"sensor_oid": ".1.3.6.1.4.1.17095.3.2.0",
|
|
"sensor_index": "sensor1name",
|
|
"sensor_type": "serverscheck",
|
|
"sensor_descr": "Temperature",
|
|
"sensor_divisor": "1",
|
|
"sensor_multiplier": "1",
|
|
"sensor_current": "27.53",
|
|
"sensor_limit": "47.53",
|
|
"sensor_limit_warn": null,
|
|
"sensor_limit_low": "17.53",
|
|
"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": "Serverscheck_FloodSensor",
|
|
"state_descr": "-",
|
|
"state_draw_graph": "1",
|
|
"state_value": "1",
|
|
"state_generic_value": "1"
|
|
},
|
|
{
|
|
"state_name": "Serverscheck_FloodSensor",
|
|
"state_descr": "DRY",
|
|
"state_draw_graph": "1",
|
|
"state_value": "2",
|
|
"state_generic_value": "0"
|
|
},
|
|
{
|
|
"state_name": "Serverscheck_FloodSensor",
|
|
"state_descr": "WET",
|
|
"state_draw_graph": "1",
|
|
"state_value": "4",
|
|
"state_generic_value": "2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"bgp-peers": {
|
|
"discovery": {
|
|
"devices": [
|
|
{
|
|
"bgpLocalAs": null
|
|
}
|
|
],
|
|
"bgpPeers": [],
|
|
"bgpPeers_cbgp": []
|
|
},
|
|
"poller": "matches discovery"
|
|
}
|
|
}
|