librenms/tests/data/vmware-vcsa.json
Tony Murray d74bb37971
Show port speed on port graphs, optionally set scale (#11858)
* Show ifSpeed on Graph
Drop ifHighSpeed, we really don't want to store that value.

* safer truth check

* Allow global setting and per-graph variable

* match surrounding case

* Style fixes

* Remove old function usage

* update schema

* remove some old usages

* cleanup more ifHighSpeed references

* update test data to remove ifHighSpeed

* fix down migration

* Add button on graph page
Change default
tweak wording
2021-08-23 06:47:44 -05:00

803 lines
33 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.6876.4.6",
"sysDescr": "VMware-vCenter-Server-Appliance 7.0.0.10100 generic build 16386292 VMware, Inc. x86_64",
"sysContact": "<private>",
"version": "7.0.0.10100",
"hardware": null,
"features": "build 16386292",
"os": "vmware-vcsa",
"type": "server",
"serial": null,
"icon": "vmware.svg",
"location": "<private>"
}
]
},
"poller": "matches discovery"
},
"ports": {
"discovery": {
"ports": [
{
"port_descr_type": null,
"port_descr_descr": null,
"port_descr_circuit": null,
"port_descr_speed": null,
"port_descr_notes": null,
"ifDescr": "Device eth0 at 03:00.0 VMware - VMXNET3 Ethernet Controller",
"ifName": "Device eth0 at 03:00.0 VMware - VMXNET3 Ethernet Controller",
"portName": null,
"ifIndex": 2,
"ifSpeed": null,
"ifSpeed_prev": null,
"ifConnectorPresent": null,
"ifPromiscuousMode": null,
"ifOperStatus": "up",
"ifOperStatus_prev": null,
"ifAdminStatus": null,
"ifAdminStatus_prev": null,
"ifDuplex": null,
"ifMtu": null,
"ifType": "ethernetCsmacd",
"ifAlias": "Device eth0 at 03:00.0 VMware - VMXNET3 Ethernet Controller",
"ifPhysAddress": null,
"ifHardType": null,
"ifLastChange": 0,
"ifVlan": "",
"ifTrunk": null,
"counter_in": null,
"counter_out": null,
"ignore": 0,
"disabled": 0,
"detailed": 0,
"deleted": 0,
"pagpOperationMode": null,
"pagpPortState": null,
"pagpPartnerDeviceId": null,
"pagpPartnerLearnMethod": null,
"pagpPartnerIfIndex": null,
"pagpPartnerGroupIfIndex": null,
"pagpPartnerDeviceName": null,
"pagpEthcOperationMode": null,
"pagpDeviceId": null,
"pagpGroupIfIndex": null,
"ifInUcastPkts": null,
"ifInUcastPkts_prev": null,
"ifInUcastPkts_delta": null,
"ifInUcastPkts_rate": null,
"ifOutUcastPkts": null,
"ifOutUcastPkts_prev": null,
"ifOutUcastPkts_delta": null,
"ifOutUcastPkts_rate": null,
"ifInErrors": null,
"ifInErrors_prev": null,
"ifInErrors_delta": null,
"ifInErrors_rate": null,
"ifOutErrors": null,
"ifOutErrors_prev": null,
"ifOutErrors_delta": null,
"ifOutErrors_rate": null,
"ifInOctets": null,
"ifInOctets_prev": null,
"ifInOctets_delta": null,
"ifInOctets_rate": null,
"ifOutOctets": null,
"ifOutOctets_prev": null,
"ifOutOctets_delta": null,
"ifOutOctets_rate": null,
"poll_prev": null,
"ifInNUcastPkts": null,
"ifInNUcastPkts_prev": null,
"ifInNUcastPkts_delta": null,
"ifInNUcastPkts_rate": null,
"ifOutNUcastPkts": null,
"ifOutNUcastPkts_prev": null,
"ifOutNUcastPkts_delta": null,
"ifOutNUcastPkts_rate": null,
"ifInDiscards": null,
"ifInDiscards_prev": null,
"ifInDiscards_delta": null,
"ifInDiscards_rate": null,
"ifOutDiscards": null,
"ifOutDiscards_prev": null,
"ifOutDiscards_delta": null,
"ifOutDiscards_rate": null,
"ifInUnknownProtos": null,
"ifInUnknownProtos_prev": null,
"ifInUnknownProtos_delta": null,
"ifInUnknownProtos_rate": null,
"ifInBroadcastPkts": null,
"ifInBroadcastPkts_prev": null,
"ifInBroadcastPkts_delta": null,
"ifInBroadcastPkts_rate": null,
"ifOutBroadcastPkts": null,
"ifOutBroadcastPkts_prev": null,
"ifOutBroadcastPkts_delta": null,
"ifOutBroadcastPkts_rate": null,
"ifInMulticastPkts": null,
"ifInMulticastPkts_prev": null,
"ifInMulticastPkts_delta": null,
"ifInMulticastPkts_rate": null,
"ifOutMulticastPkts": null,
"ifOutMulticastPkts_prev": null,
"ifOutMulticastPkts_delta": null,
"ifOutMulticastPkts_rate": null
}
]
},
"poller": {
"ports": [
{
"port_descr_type": null,
"port_descr_descr": null,
"port_descr_circuit": null,
"port_descr_speed": null,
"port_descr_notes": null,
"ifDescr": "eth0",
"ifName": "eth0",
"portName": null,
"ifIndex": 2,
"ifSpeed": 1000000000,
"ifSpeed_prev": null,
"ifConnectorPresent": null,
"ifPromiscuousMode": null,
"ifOperStatus": "up",
"ifOperStatus_prev": "up",
"ifAdminStatus": "up",
"ifAdminStatus_prev": null,
"ifDuplex": null,
"ifMtu": 1500,
"ifType": "ethernetCsmacd",
"ifAlias": "eth0",
"ifPhysAddress": "0050568b3265",
"ifHardType": null,
"ifLastChange": 0,
"ifVlan": "",
"ifTrunk": null,
"counter_in": null,
"counter_out": null,
"ignore": 0,
"disabled": 0,
"detailed": 0,
"deleted": 0,
"pagpOperationMode": null,
"pagpPortState": null,
"pagpPartnerDeviceId": null,
"pagpPartnerLearnMethod": null,
"pagpPartnerIfIndex": null,
"pagpPartnerGroupIfIndex": null,
"pagpPartnerDeviceName": null,
"pagpEthcOperationMode": null,
"pagpDeviceId": null,
"pagpGroupIfIndex": null,
"ifInUcastPkts": 78262625,
"ifInUcastPkts_prev": 0,
"ifInUcastPkts_delta": null,
"ifInUcastPkts_rate": null,
"ifOutUcastPkts": 90086228,
"ifOutUcastPkts_prev": 0,
"ifOutUcastPkts_delta": null,
"ifOutUcastPkts_rate": null,
"ifInErrors": 0,
"ifInErrors_prev": 0,
"ifInErrors_delta": null,
"ifInErrors_rate": null,
"ifOutErrors": 0,
"ifOutErrors_prev": 0,
"ifOutErrors_delta": null,
"ifOutErrors_rate": null,
"ifInOctets": 1952111926,
"ifInOctets_prev": 0,
"ifInOctets_delta": null,
"ifInOctets_rate": null,
"ifOutOctets": 3510549083,
"ifOutOctets_prev": 0,
"ifOutOctets_delta": null,
"ifOutOctets_rate": null,
"poll_prev": null,
"ifInNUcastPkts": 130629,
"ifInNUcastPkts_prev": 0,
"ifInNUcastPkts_delta": null,
"ifInNUcastPkts_rate": null,
"ifOutNUcastPkts": 2,
"ifOutNUcastPkts_prev": 0,
"ifOutNUcastPkts_delta": null,
"ifOutNUcastPkts_rate": null,
"ifInDiscards": 0,
"ifInDiscards_prev": 0,
"ifInDiscards_delta": null,
"ifInDiscards_rate": null,
"ifOutDiscards": 0,
"ifOutDiscards_prev": 0,
"ifOutDiscards_delta": null,
"ifOutDiscards_rate": null,
"ifInUnknownProtos": 0,
"ifInUnknownProtos_prev": 0,
"ifInUnknownProtos_delta": null,
"ifInUnknownProtos_rate": null,
"ifInBroadcastPkts": 0,
"ifInBroadcastPkts_prev": 0,
"ifInBroadcastPkts_delta": null,
"ifInBroadcastPkts_rate": null,
"ifOutBroadcastPkts": 0,
"ifOutBroadcastPkts_prev": 0,
"ifOutBroadcastPkts_delta": null,
"ifOutBroadcastPkts_rate": null,
"ifInMulticastPkts": 0,
"ifInMulticastPkts_prev": 0,
"ifInMulticastPkts_delta": null,
"ifInMulticastPkts_rate": null,
"ifOutMulticastPkts": 0,
"ifOutMulticastPkts_prev": 0,
"ifOutMulticastPkts_delta": null,
"ifOutMulticastPkts_rate": null
}
]
}
},
"processors": {
"discovery": {
"processors": [
{
"entPhysicalIndex": 0,
"hrDeviceIndex": 1,
"processor_oid": ".1.3.6.1.2.1.25.3.3.1.2.1",
"processor_index": "1",
"processor_type": "hr",
"processor_usage": 7,
"processor_descr": "Pkg/ID/Node: 0/0/0 Intel Xeon E5-2650 0 @ 2.00GHz",
"processor_precision": 1,
"processor_perc_warn": 75
},
{
"entPhysicalIndex": 0,
"hrDeviceIndex": 2,
"processor_oid": ".1.3.6.1.2.1.25.3.3.1.2.2",
"processor_index": "2",
"processor_type": "hr",
"processor_usage": 6,
"processor_descr": "Pkg/ID/Node: 0/1/0 Intel Xeon E5-2650 0 @ 2.00GHz",
"processor_precision": 1,
"processor_perc_warn": 75
}
]
},
"poller": "matches discovery"
},
"storage": {
"discovery": {
"storage": [
{
"storage_mib": "hrstorage",
"storage_index": "10",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/imagebuilder",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 37785600,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "11",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/archive",
"storage_size": 52567703552,
"storage_units": 4096,
"storage_used": 47312330752,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "12",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/vtsdb",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 70434816,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "13",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/updatemgr",
"storage_size": 105143787520,
"storage_units": 4096,
"storage_used": 5886812160,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "14",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/netdump",
"storage_size": 1031823360,
"storage_units": 4096,
"storage_used": 2605056,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "15",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/db",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 472928256,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "16",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/autodeploy",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 37781504,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "17",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/seat",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 3988561920,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "18",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/dblog",
"storage_size": 15777865728,
"storage_units": 4096,
"storage_used": 159420416,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "19",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/log",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 5526183936,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "2",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/dev/shm",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 958464,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "20",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/core",
"storage_size": 26279645184,
"storage_units": 4096,
"storage_used": 476229632,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "21",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/var/spool/snmp",
"storage_size": 1048576,
"storage_units": 4096,
"storage_used": 0,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "3",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/run",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 1216512,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "4",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/sys/fs/cgroup",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 0,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "5",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/",
"storage_size": 49270169600,
"storage_units": 4096,
"storage_used": 10129330176,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "6",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/tmp",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 4857856,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "7",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/boot",
"storage_size": 125783040,
"storage_units": 1024,
"storage_used": 28205056,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "8",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/vtsdblog",
"storage_size": 5208932352,
"storage_units": 4096,
"storage_used": 54497280,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "9",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/lifecycle",
"storage_size": 105143787520,
"storage_units": 4096,
"storage_used": 2524815360,
"storage_free": 0,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
}
]
},
"poller": {
"storage": [
{
"storage_mib": "hrstorage",
"storage_index": "10",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/imagebuilder",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 37785600,
"storage_free": 10455597056,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "11",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/archive",
"storage_size": 52567703552,
"storage_units": 4096,
"storage_used": 47312330752,
"storage_free": 5255372800,
"storage_perc": 90,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "12",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/vtsdb",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 70434816,
"storage_free": 10422947840,
"storage_perc": 1,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "13",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/updatemgr",
"storage_size": 105143787520,
"storage_units": 4096,
"storage_used": 5886812160,
"storage_free": 99256975360,
"storage_perc": 6,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "14",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/netdump",
"storage_size": 1031823360,
"storage_units": 4096,
"storage_used": 2605056,
"storage_free": 1029218304,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "15",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/db",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 472928256,
"storage_free": 10020454400,
"storage_perc": 5,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "16",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/autodeploy",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 37781504,
"storage_free": 10455601152,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "17",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/seat",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 3988561920,
"storage_free": 6504820736,
"storage_perc": 38,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "18",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/dblog",
"storage_size": 15777865728,
"storage_units": 4096,
"storage_used": 159420416,
"storage_free": 15618445312,
"storage_perc": 1,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "19",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/log",
"storage_size": 10493382656,
"storage_units": 4096,
"storage_used": 5526183936,
"storage_free": 4967198720,
"storage_perc": 53,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "2",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/dev/shm",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 958464,
"storage_free": 6288797696,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "20",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/core",
"storage_size": 26279645184,
"storage_units": 4096,
"storage_used": 476229632,
"storage_free": 25803415552,
"storage_perc": 2,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "21",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/var/spool/snmp",
"storage_size": 1048576,
"storage_units": 4096,
"storage_used": 0,
"storage_free": 1048576,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "3",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/run",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 1216512,
"storage_free": 6288539648,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "4",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/sys/fs/cgroup",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 0,
"storage_free": 6289756160,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "5",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/",
"storage_size": 49270169600,
"storage_units": 4096,
"storage_used": 10129330176,
"storage_free": 39140839424,
"storage_perc": 21,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "6",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/tmp",
"storage_size": 6289756160,
"storage_units": 4096,
"storage_used": 4857856,
"storage_free": 6284898304,
"storage_perc": 0,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "7",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/boot",
"storage_size": 125783040,
"storage_units": 1024,
"storage_used": 28205056,
"storage_free": 97577984,
"storage_perc": 22,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "8",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/vtsdblog",
"storage_size": 5208932352,
"storage_units": 4096,
"storage_used": 54497280,
"storage_free": 5154435072,
"storage_perc": 1,
"storage_perc_warn": 60,
"storage_deleted": 0
},
{
"storage_mib": "hrstorage",
"storage_index": "9",
"storage_type": "hrStorageFixedDisk",
"storage_descr": "/storage/lifecycle",
"storage_size": 105143787520,
"storage_units": 4096,
"storage_used": 2524815360,
"storage_free": 102618972160,
"storage_perc": 2,
"storage_perc_warn": 60,
"storage_deleted": 0
}
]
}
}
}