mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* first commit * clean code * add snmpsim data for bgp * renumber sql patch * clear public ip * update misc/db_schema.yaml * add test data and renumber sql-schema * sql-schema * sql-schema * Update module_tables.yaml * Update module_tables.yaml * Update timos.json * Update timos.snmprec * Rename 281.sql to 282.sql * update test data * db migration * Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php * update db schema * Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php * Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php * Update db_schema.yaml * update schema
88 lines
3.8 KiB
YAML
88 lines
3.8 KiB
YAML
applications:
|
|
applications:
|
|
excluded_fields: [device_id, app_id, timestamp]
|
|
application_metrics:
|
|
excluded_fields: [app_id]
|
|
joins:
|
|
- { custom: 'INNER JOIN (SELECT app_id, app_type FROM applications WHERE `device_id`=?) I USING (app_id)', select: ['app_type'] }
|
|
custom_where: ''
|
|
order_by: metric
|
|
arp-table:
|
|
ipv4_mac:
|
|
excluded_fields: [device_id, port_id]
|
|
order_by: ipv4_mac.context_name, ipv4_mac.ipv4_address, ipv4_mac.mac_address
|
|
bgp-peers:
|
|
bgpPeers:
|
|
excluded_fields: [device_id, bgpPeer_id, vrf_id]
|
|
joins:
|
|
- { left: bgpPeers.device_id, right: devices.device_id, select: [devices.bgpLocalAs] }
|
|
- { left: bgpPeers.vrf_id, right: vrfs.vrf_id, select: [vrfs.bgpLocalAs as vrfLocalAs] }
|
|
bgpPeers_cbgp:
|
|
excluded_fields: [device_id]
|
|
fdb-table:
|
|
ports_fdb:
|
|
excluded_fields: [device_id, ports_fdb_id, port_id, vlan_id]
|
|
joins:
|
|
- { left: ports_fdb.port_id, right: ports.port_id, select: [ifIndex] }
|
|
- { left: ports_fdb.vlan_id, right: vlans.vlan_id, select: [vlan_vlan] }
|
|
order_by: ports.ifIndex, vlans.vlan_vlan, ports_fdb.mac_address
|
|
mempools:
|
|
mempools:
|
|
excluded_fields: [device_id, mempool_id]
|
|
ports:
|
|
ports:
|
|
excluded_fields: [device_id, port_id, poll_time, poll_period, ifVrf]
|
|
joins:
|
|
- { left: ports.port_id, right: ports_statistics.port_id }
|
|
order_by: ports.ifIndex, ports.ifDescr, ports.ifName
|
|
nac:
|
|
ports_nac:
|
|
excluded_fields: [ports_nac_id, device_id, port_id]
|
|
joins:
|
|
- { left: ports_nac.port_id, right: ports.port_id, select: [ifIndex] }
|
|
order_by: ports.ifIndex, mac_address
|
|
os:
|
|
devices:
|
|
included_fields: [sysName, sysObjectID, sysDescr, sysContact, version, hardware, features, location, os, type, serial, icon]
|
|
joins:
|
|
- { left: devices.location_id, right: locations.id, select: [location] }
|
|
processors:
|
|
processors:
|
|
excluded_fields: [device_id, processor_id]
|
|
sensors:
|
|
sensors:
|
|
excluded_fields: [device_id, sensor_id, state_translation_id, state_index_id, sensors_to_state_translations_id, lastupdate]
|
|
joins:
|
|
- { left: sensors.sensor_id, right: sensors_to_state_indexes.sensor_id }
|
|
- { left: sensors_to_state_indexes.state_index_id, right: state_indexes.state_index_id }
|
|
order_by: sensors.sensor_class, sensors.sensor_type, sensors.sensor_index
|
|
state_indexes:
|
|
excluded_fields: [device_id, sensor_id, state_translation_id, state_index_id, state_lastupdated]
|
|
joins:
|
|
- { left: state_indexes.state_index_id, right: state_translations.state_index_id }
|
|
- { custom: 'INNER JOIN ( SELECT i.state_index_id FROM `sensors_to_state_indexes` i LEFT JOIN `sensors` s ON (i.`sensor_id` = s.`sensor_id`) WHERE `device_id`=? GROUP BY i.state_index_id) d ON d.state_index_id = state_indexes.state_index_id' }
|
|
order_by: state_indexes.state_name, state_translations.state_value
|
|
custom_where: ''
|
|
storage:
|
|
storage:
|
|
excluded_fields: [device_id, storage_id]
|
|
toner:
|
|
toner:
|
|
excluded_fields: [device_id, toner_id]
|
|
order_by: toner_oid, toner_index
|
|
vlans:
|
|
vlans:
|
|
excluded_fields: [vlan_id, device_id]
|
|
order_by: vlan_domain, vlan_vlan
|
|
ports_vlans:
|
|
excluded_fields: [port_vlan_id, device_id, port_id]
|
|
order_by: vlan, baseport
|
|
vrf:
|
|
vrfs:
|
|
excluded_fields: [vrf_id, device_id]
|
|
joins:
|
|
- { custom: "LEFT JOIN (SELECT ifVrf, GROUP_CONCAT(ifIndex ORDER BY ifIndex ASC SEPARATOR ',') as ifIndices FROM ports GROUP BY ifVrf) p ON p.ifVrf = vrfs.vrf_id", select: ["p.ifIndices"] }
|
|
wireless:
|
|
wireless_sensors:
|
|
excluded_fields: [device_id, sensor_id, access_point_id, lastupdate]
|