Files
librenms-librenms/tests/data/linux_portactivity-v1.json
VVelox c5bb60907c add app for getting status of TCP connections for specified services (#8090)
* add the poller for portactivity

* add the ability to get monitor ports for portactivity

* add the graphs for displaying stuff for the portactivity app

* add the portactivity app page

* update the docs for Portactivity

* remove extra line

* minor doc update for Portactivity

* add update_application line

* convert to use json_app_get

* convert curly brackets to square

* style fix

* remote error, errorString, and version after they stop being important so they are not processed

* add alert rule examples

* add the poller for portactivity

* add the ability to get monitor ports for portactivity

* add the graphs for displaying stuff for the portactivity app

* add the portactivity app page

* update the docs for Portactivity

* remove extra line

* minor doc update for Portactivity

* add update_application line

* convert to use json_app_get

* convert curly brackets to square

* style fix

* remote error, errorString, and version after they stop being important so they are not processed

* add alert rule examples

* remove dump of get_portactivity_ports function added during rebase

* update to the current json_app_get

* add portactivity snmprec

* add the portactivity test data

* whoops bad merge when rebasing... fix

* minor formatting cleanup and add a missing comma

* fix some odditities with what one of the tests is doing

* whoops... include the use for the exception

* set the response to okay

* attempt to make snmpsim array check happy again

* the json now lints

* more making metric testing happy

* one more update to make travis-ci happy

* now flattens arrays also add array_flatten

* rename array_flatten to data_flatten as pre-commit chokes on it as laravel has something similarly named

* go through and properly add all the metrics

* tested with the newest one and it works

* whoops, clean up json and remove prototype that was used when putting it together

* doh! make it happy with laravel now

* see if a minor changing in formatting for the numbers makes the polling unit test happy

* order them properly

* remove a comma

* a few more minor fixes
2018-11-22 09:05:38 -06:00

284 lines
9.4 KiB
JSON

{
"applications": {
"discovery": {
"applications": [
{
"app_type": "portactivity",
"app_state": "UNKNOWN",
"discovered": "1",
"app_state_prev": null,
"app_status": "",
"app_instance": ""
}
],
"application_metrics": []
},
"poller": {
"applications": [
{
"app_type": "portactivity",
"app_state": "OK",
"discovered": "1",
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": ""
}
],
"application_metrics": [
{
"metric": "ssh_from_CLOSE_WAIT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_CLOSED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_CLOSING",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_ESTABLISHED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_FIN_WAIT_1",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_FIN_WAIT_2",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_LAST_ACK",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_LISTEN",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_other",
"value": 0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_SYN_RECEIVED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_SYN_SENT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_TIME_WAIT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_from_UNKNOWN",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_CLOSE_WAIT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_CLOSED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_CLOSING",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_ESTABLISHED",
"value": 1.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_FIN_WAIT_1",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_FIN_WAIT_2",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_LAST_ACK",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_LISTEN",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_other",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_SYN_RECEIVED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_SYN_SENT",
"value": "0.0",
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_TIME_WAIT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_to_UNKNOWN",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_CLOSE_WAIT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_CLOSED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_CLOSING",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_conns",
"value": 1.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_ESTABLISHED",
"value": 1.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_FIN_WAIT_1",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_FIN_WAIT_2",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_from",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_LAST_ACK",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_LISTEN",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_other",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_SYN_RECEIVED",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_SYN_SENT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_TIME_WAIT",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_to",
"value": 1.0,
"value_prev": null,
"app_type": "portactivity"
},
{
"metric": "ssh_total_UNKNOWN",
"value": 0.0,
"value_prev": null,
"app_type": "portactivity"
}
]
}
}
}