mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* add test data for the ups-apcups app * add ups-apcups SNMP test data * update for both legacy and JSON * update the docs for the new extend * add a comment so git sees this file as updated * add missing "applications": { * regen the json version * properly regen the test json * test fix * fix the v1 tests json for ups-apcups * regen post fixing json-app-tool * regen the json again after more tweaks to the json-app-tool * see if it does not like .0 for numbers that would otherwise be integers * data is not a constant * ...wow... missed that $json_return was mis-spelled twice :( * re-add the .0s to some test data
74 lines
2.2 KiB
JSON
74 lines
2.2 KiB
JSON
{
|
|
"applications": {
|
|
"discovery": {
|
|
"applications": [
|
|
{
|
|
"app_type": "ups-apcups",
|
|
"app_state": "UNKNOWN",
|
|
"discovered": "1",
|
|
"app_state_prev": null,
|
|
"app_status": "",
|
|
"app_instance": ""
|
|
}
|
|
],
|
|
"application_metrics": []
|
|
},
|
|
"poller": {
|
|
"applications": [
|
|
{
|
|
"app_type": "ups-apcups",
|
|
"app_state": "OK",
|
|
"discovered": "1",
|
|
"app_state_prev": "UNKNOWN",
|
|
"app_status": "",
|
|
"app_instance": ""
|
|
}
|
|
],
|
|
"application_metrics": [
|
|
{
|
|
"metric": "battery_nominal",
|
|
"value": "24.0",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
},
|
|
{
|
|
"metric": "battery_voltage",
|
|
"value": "27.0",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
},
|
|
{
|
|
"metric": "charge",
|
|
"value": "100.0",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
},
|
|
{
|
|
"metric": "input_voltage",
|
|
"value": "117.0",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
},
|
|
{
|
|
"metric": "load",
|
|
"value": "37.0",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
},
|
|
{
|
|
"metric": "nominal_voltage",
|
|
"value": "120",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
},
|
|
{
|
|
"metric": "time_remaining",
|
|
"value": "8.1",
|
|
"value_prev": null,
|
|
"app_type": "ups-apcups"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|