Files
librenms-librenms/tests/data/junos_ex.json
Tony Murray 2bcc76625c Module tests update: per module output, only store modules data that are run (#8355)
* Test data: don't save data for modules that were not run

* Sometimes mibs are prefixed with +

* Save output for each module and only output the errored module.
Also makes it easier to identify modules that were ran.

* Clean up json files.
Message when no module data exists.

* verbose output when phpunit --debug is used
order by for ports
avoid graphite output in tests
only load module_tables.yaml once

* use explode and strpos instead of regex since it is failing...

* Fix some warnings

* Fix whitespace
2018-03-14 22:28:01 +00:00

150 lines
5.9 KiB
JSON

{
"bgp-peers": {
"discovery": {
"devices": [
{
"bgpLocalAs": "65501"
}
],
"bgpPeers": [
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.4",
"bgpPeerRemoteAs": "65502",
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpLocalAddr": "0.0.0.0",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": "0",
"bgpPeerOutUpdates": "0",
"bgpPeerInTotalMessages": "0",
"bgpPeerOutTotalMessages": "0",
"bgpPeerFsmEstablishedTime": "0",
"bgpPeerInUpdateElapsedTime": "0",
"context_name": ""
},
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.186",
"bgpPeerRemoteAs": "65503",
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpLocalAddr": "0.0.0.0",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": "0",
"bgpPeerOutUpdates": "0",
"bgpPeerInTotalMessages": "0",
"bgpPeerOutTotalMessages": "0",
"bgpPeerFsmEstablishedTime": "0",
"bgpPeerInUpdateElapsedTime": "0",
"context_name": ""
},
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.226",
"bgpPeerRemoteAs": "65504",
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpLocalAddr": "0.0.0.0",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": "0",
"bgpPeerOutUpdates": "0",
"bgpPeerInTotalMessages": "0",
"bgpPeerOutTotalMessages": "0",
"bgpPeerFsmEstablishedTime": "0",
"bgpPeerInUpdateElapsedTime": "0",
"context_name": ""
}
],
"bgpPeers_cbgp": []
},
"poller": {
"devices": [
{
"bgpLocalAs": "65501"
}
],
"bgpPeers": [
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.4",
"bgpPeerRemoteAs": "65502",
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpLocalAddr": "192.168.1.43",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": "10526",
"bgpPeerOutUpdates": "531",
"bgpPeerInTotalMessages": "824076",
"bgpPeerOutTotalMessages": "871063",
"bgpPeerFsmEstablishedTime": "23675506",
"bgpPeerInUpdateElapsedTime": "21748",
"context_name": ""
},
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.186",
"bgpPeerRemoteAs": "65503",
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpLocalAddr": "192.168.1.185",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": "1",
"bgpPeerOutUpdates": "1",
"bgpPeerInTotalMessages": "29928",
"bgpPeerOutTotalMessages": "28798",
"bgpPeerFsmEstablishedTime": "785386",
"bgpPeerInUpdateElapsedTime": "785386",
"context_name": ""
},
{
"astext": "",
"bgpPeerIdentifier": "192.168.1.226",
"bgpPeerRemoteAs": "65504",
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpLocalAddr": "192.168.1.225",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerInUpdates": "3",
"bgpPeerOutUpdates": "1",
"bgpPeerInTotalMessages": "25802",
"bgpPeerOutTotalMessages": "28382",
"bgpPeerFsmEstablishedTime": "774041",
"bgpPeerInUpdateElapsedTime": "774040",
"context_name": ""
}
],
"bgpPeers_cbgp": []
}
},
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": "0",
"hrDeviceIndex": "0",
"processor_oid": ".1.3.6.1.4.1.2636.3.1.13.1.8.7.1.0.0",
"processor_index": "7.1.0.0",
"processor_type": "junos",
"processor_usage": "94",
"processor_descr": "FPC: EX4200-48PX,48 POE+ @ 0/*/*",
"processor_precision": "1",
"processor_perc_warn": "75"
},
{
"entPhysicalIndex": "0",
"hrDeviceIndex": "0",
"processor_oid": ".1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0",
"processor_index": "9.1.0.0",
"processor_type": "junos",
"processor_usage": "94",
"processor_descr": "Routing Engine 0",
"processor_precision": "1",
"processor_perc_warn": "75"
}
]
},
"poller": "matches discovery"
}
}