librenms/tests/data/bats.json
Janno Schouwenburg 7b3a6250f0
Bats support (#14108)
* BATS support

* Removed disabled discovery modules

* Style change, more test data, removed unused rows

* Style correction LibreNMS/OS/Bats.php

* Removed old reference

* Another style correction add LibreNMS/OS/Bats.php

* Changed location info and temperature

* Style, again

* Style, again

* New testdata needed

* Fix wrong state color in discovery/bats.yaml

* New test data

* Update bats_bats.json

* Saved the test data in a different way

* More test data

* Manually changed test data

* New test data

* New test data

* Update bats_bats.json

* Saved the test data in a different way

* More test data

* Manually changed test data

* New test data

* New test data

* Delete bats_bats.snmprec

* Update bats.json

* Update bats.json

Co-authored-by: Maikel de Boer <mdb@tampnet.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-08-10 09:07:31 -05:00

616 lines
25 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.37069",
"sysDescr": "AATS",
"sysContact": "<private>",
"version": null,
"hardware": null,
"features": null,
"os": "bats",
"type": "wireless",
"serial": null,
"icon": "bats.png",
"location": "At 57.0268, 1.9663. Scanning Target G17DAP ENB 01 (344.4 km)"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.3.1.5.5.0",
"sensor_index": "antennaHeading360ScaleFloat.0",
"sensor_type": "bats",
"sensor_descr": "Antenna heading",
"group": "Positioner",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 168.98,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.3.1.3.5.0",
"sensor_index": "azimuth360ScaleFloat.0",
"sensor_type": "bats",
"sensor_descr": "Azimuth",
"group": "Positioner",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 354.4,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.6.3.0",
"sensor_index": "currentGPSAltitudeFloat.0",
"sensor_type": "bats",
"sensor_descr": "GPS height (m)",
"group": "Currently used GPS / Heading",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 23.6,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.7.2.5.0",
"sensor_index": "currentHeading360ScaleFloat.0",
"sensor_type": "bats",
"sensor_descr": "GPS Heading",
"group": "Currently used GPS / Heading",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 168.98,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.7.2.4.0",
"sensor_index": "currentHeading360ScaleInt.0",
"sensor_type": "bats",
"sensor_descr": "GPS Heading / 100",
"group": "Currently used GPS / Heading",
"sensor_divisor": 100,
"sensor_multiplier": 1,
"sensor_current": 168.98,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.8.1.3.0",
"sensor_index": "currentPitchFloat.0",
"sensor_type": "bats",
"sensor_descr": "Pitch",
"group": "Currently used GPS / Heading",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 3.67,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.8.2.3.0",
"sensor_index": "currentRollFloat.0",
"sensor_type": "bats",
"sensor_descr": "Roll",
"group": "Currently used GPS / Heading",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1.34,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "count",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.1.1.0",
"sensor_index": "status.0",
"sensor_type": "bats",
"sensor_descr": "Link distance (km)",
"group": "Positioner",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 17,
"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": null
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.2.2.0",
"sensor_index": "currentGPSStatusInt.0",
"sensor_type": "GPSLinkStatus",
"sensor_descr": "Overall GPS status",
"group": "Currently used GPS / Heading",
"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": "GPSLinkStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.2.3.2.0",
"sensor_index": "linkStatusInt.0",
"sensor_type": "linkStatus",
"sensor_descr": "Link status",
"group": "Radio",
"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": "linkStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.5.2.2.0",
"sensor_index": "localGPSStatusInt.0",
"sensor_type": "LocalGPSLinkStatus",
"sensor_descr": "Local GPS status",
"group": "Local GPS",
"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": "LocalGPSLinkStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.6.2.2.0",
"sensor_index": "networkGPSStatusInt.0",
"sensor_type": "NetworkGPSLinkStatus",
"sensor_descr": "Network GPS status",
"group": "Network GPS",
"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": "NetworkGPSLinkStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.3.1.1.0",
"sensor_index": "positionerConnected.0",
"sensor_type": "PositionerConnection",
"sensor_descr": "Positioner Connection",
"group": "Positioner",
"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": "PositionerConnection"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.4.7.1.2.0",
"sensor_index": "currentHeadingStatusInt.0",
"sensor_type": "PositionerHeadingState",
"sensor_descr": "Heading status",
"group": "Currently used GPS / Heading",
"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": "PositionerHeadingState"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.3.1.2.0",
"sensor_index": "positionerMoving.0",
"sensor_type": "PositionerMovement",
"sensor_descr": "Positioner Movement",
"group": "Positioner",
"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": "PositionerMovement"
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.37069.1.1.4.0",
"sensor_index": "cpuTemp.0",
"sensor_type": "bats",
"sensor_descr": "System CPU",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 22,
"sensor_limit": 42,
"sensor_limit_warn": null,
"sensor_limit_low": 12,
"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": "GPSLinkStatus",
"state_descr": "Invalid",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "GPSLinkStatus",
"state_descr": "Valid",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "linkStatus",
"state_descr": "Disconnected",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "linkStatus",
"state_descr": "Marginal",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 1
},
{
"state_name": "linkStatus",
"state_descr": "Connected",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "LocalGPSLinkStatus",
"state_descr": "Invalid",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "LocalGPSLinkStatus",
"state_descr": "Valid",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "NetworkGPSLinkStatus",
"state_descr": "Invalid",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "NetworkGPSLinkStatus",
"state_descr": "Valid",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "PositionerConnection",
"state_descr": "Disconnected",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "PositionerConnection",
"state_descr": "Connected",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "PositionerHeadingState",
"state_descr": "Invalid",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "PositionerHeadingState",
"state_descr": "Valid",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "PositionerMovement",
"state_descr": "Stopped",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "PositionerMovement",
"state_descr": "Moving",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
}
]
},
"poller": "matches discovery"
},
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "snr",
"sensor_index": "0",
"sensor_type": "bats",
"sensor_descr": "SNR",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -130,
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.37069.1.2.5.3.0\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "bats",
"sensor_descr": "RSSI",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -160,
"sensor_prev": null,
"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_oids": "[\".1.3.6.1.4.1.37069.1.2.4.3.0\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": 0,
"sensor_class": "snr",
"sensor_index": "0",
"sensor_type": "bats",
"sensor_descr": "SNR",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -130,
"sensor_prev": -130,
"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_oids": "[\".1.3.6.1.4.1.37069.1.2.5.3.0\"]"
},
{
"sensor_deleted": 0,
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "bats",
"sensor_descr": "RSSI",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_aggregator": "sum",
"sensor_current": -160,
"sensor_prev": -160,
"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_oids": "[\".1.3.6.1.4.1.37069.1.2.4.3.0\"]"
}
]
}
}
}