librenms-librenms/misc/os_schema.json
PipoCanaja 53bfb24ef9 Migrate xDSL code to module, and add support for VDSL2 MIB (#14207)
* use component to discover if xDSL polling is needed

use component to discover if xDSL polling is needed

* Components OK, Polling in correct files, no DB for VDSL

* GUI

GUI_suite

* per port as well

* rename

* interface listing

* draytek_snmpsim

* fix arraymerge

fix names and max value

* schema

schema

style

* remove one dbFetchRows

remove 2x dbFetchCell

style

style

remove Legacy dbFetchRow

tests

tests

eloquent

more eloquent

more eloquent

one more gone

* fix properties access

eloquent_insert_update

style

tests

tests

tests

tests

* tests

tests

tests

* adslLineCoding

* Models

* fix not nullable cols in DB from code

default values

typo

rename

typo

schema

fix

fix

vdsl fix now

typo

typo

fix size

fix size

* Power values for VDSL

Power values for VDSL

Power values for VDSL

DB

* cleanup

* Rrd::checkRrdExists

* always enable DSL discovery

style

* xdsl module

* cleanup and move to Module

cleanup and move to Module

cleanup and move to Module

cleanup and move to Module

* Fix display

* fix polling and tenth

* remove legacy poller

* Style and Cosmetics

Cosmetics

Cleanup

* Translations

Translations

* exists

exists

* add test support for xdsl

* remove last component call

unused

* translations

* remove non standard onclick event on xdsl line

* Update Discovery Support.md

Update Poller Support.md

toner_gone

* Notification for removal of lnms config:set enable_ports_adsl true

* enable on devices with potential DSL interfaces

* tests are working now

fix teldat tests

* os_schema

* teldat

* move to new module structure

* move to new module structure

* wrong dump function

* wrong dump function

* laravel_through_key hidden

* Update notifications.rss

* Update notifications.rss

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-09-07 19:29:17 -05:00

581 lines
16 KiB
JSON

{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"os": {
"type": "string"
},
"text": {
"type": "string"
},
"over": {
"type": "array",
"items": {
"type": "object",
"properties": {
"graph": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": ["graph", "text"],
"additionalProperties": false
}
},
"type": {
"type": "string"
},
"discovery": {
"type": "array",
"items": {
"type": "object",
"properties": {
"sysObjectID": {"$ref": "#/definitions/oid_group"},
"sysObjectID_except": {"$ref": "#/definitions/oid_group"},
"sysObjectID_regex": {"$ref": "#/definitions/regex_group"},
"sysObjectID_regex_except": {"$ref": "#/definitions/regex_group"},
"sysDescr": {"$ref": "#/definitions/string_group"},
"sysDescr_except": {"$ref": "#/definitions/string_group"},
"sysDescr_regex": {"$ref": "#/definitions/regex_group"},
"sysDescr_regex_except": {"$ref": "#/definitions/regex_group"},
"snmpget": {"$ref": "#/definitions/snmpget"},
"snmpget_except": {"$ref": "#/definitions/snmpget"},
"snmpwalk": {"$ref": "#/definitions/snmpget"}
},
"minProperties": 1,
"additionalProperties": false
}
},
"group": {
"type": "string"
},
"icon": {
"type": "string"
},
"config_highlighting": {
"type": "string"
},
"poller_modules": {
"type": "object",
"properties": {
"cisco-cbqos": {
"type": "boolean"
},
"cisco-qfp": {
"type": "boolean"
},
"cisco-cef": {
"type": "boolean"
},
"cisco-mac-accounting": {
"type": "boolean"
},
"cisco-voice": {
"type": "boolean"
},
"cisco-remote-access-monitor": {
"type": "boolean"
},
"slas": {
"type": "boolean"
},
"cisco-ipsec-flow-monitor": {
"type": "boolean"
},
"cipsec-tunnels": {
"type": "boolean"
},
"cisco-otv": {
"type": "boolean"
},
"cisco-ace-serverfarms": {
"type": "boolean"
},
"cisco-ace-loadbalancer": {
"type": "boolean"
},
"entity-state": {
"type": "boolean"
},
"wifi": {
"type": "boolean"
},
"ipmi": {
"type": "boolean"
},
"entity-physical": {
"type": "boolean"
},
"processors": {
"type": "boolean"
},
"mempools": {
"type": "boolean"
},
"storage": {
"type": "boolean"
},
"netstats": {
"type": "boolean"
},
"hr-mib": {
"type": "boolean"
},
"ucd-mib": {
"type": "boolean"
},
"ipSystemStats": {
"type": "boolean"
},
"ports": {
"type": "boolean"
},
"bgp-peers": {
"type": "boolean"
},
"ospf": {
"type": "boolean"
},
"ucd-diskio": {
"type": "boolean"
},
"sensors": {
"type": "boolean"
},
"services": {
"type": "boolean"
},
"route": {
"type": "boolean"
},
"stp": {
"type": "boolean"
},
"ntp": {
"type": "boolean"
},
"wireless": {
"type": "boolean"
},
"fdb-table": {
"type": "boolean"
},
"applications": {
"type": "boolean"
},
"aruba-controller": {
"type": "boolean"
},
"cisco-asa-firewall": {
"type": "boolean"
},
"mib": {
"type": "boolean"
},
"printer-supplies": {
"type": "boolean"
},
"cisco-vpdn": {
"type": "boolean"
},
"libvirt-vminfo": {
"type": "boolean"
},
"vmware-vminfo": {
"type": "boolean"
},
"vlans": {
"type": "boolean"
},
"arp-table": {
"type": "boolean"
},
"mef": {
"type": "boolean"
},
"cisco-vrf-lite": {
"type": "boolean"
},
"tnms-nbi": {
"type": "boolean"
},
"loadbalancers": {
"type": "boolean"
},
"junose-atm-vp": {
"type": "boolean"
},
"mpls": {
"type": "boolean"
},
"netscaler-vsvr": {
"type": "boolean"
},
"xdsl": {
"type": "boolean"
}
},
"additionalProperties": false
},
"discovery_modules": {
"type": "object",
"properties": {
"cisco-qfp": {
"type": "boolean"
},
"cisco-cef": {
"type": "boolean"
},
"slas": {
"type": "boolean"
},
"cisco-mac-accounting": {
"type": "boolean"
},
"cisco-otv": {
"type": "boolean"
},
"cisco-pw": {
"type": "boolean"
},
"entity-state": {
"type": "boolean"
},
"vrf": {
"type": "boolean"
},
"cisco-vrf-lite": {
"type": "boolean"
},
"ports": {
"type": "boolean"
},
"ports-stack": {
"type": "boolean"
},
"entity-physical": {
"type": "boolean"
},
"processors": {
"type": "boolean"
},
"mempools": {
"type": "boolean"
},
"storage": {
"type": "boolean"
},
"hr-device": {
"type": "boolean"
},
"discovery-protocols": {
"type": "boolean"
},
"bgp-peers": {
"type": "boolean"
},
"vlans": {
"type": "boolean"
},
"ucd-diskio": {
"type": "boolean"
},
"ucd-dsktable": {
"type": "boolean"
},
"services": {
"type": "boolean"
},
"stp": {
"type": "boolean"
},
"ntp": {
"type": "boolean"
},
"wireless": {
"type": "boolean"
},
"fdb-table": {
"type": "boolean"
},
"arp-table": {
"type": "boolean"
},
"printer-supplies": {
"type": "boolean"
},
"ipv4-addresses": {
"type": "boolean"
},
"ipv6-addresses": {
"type": "boolean"
},
"charge": {
"type": "boolean"
},
"ospf": {
"type": "boolean"
},
"ucd-mib": {
"type": "boolean"
},
"ipmi": {
"type": "boolean"
},
"mef": {
"type": "boolean"
},
"ipv6-address": {
"type": "boolean"
},
"loadbalancers": {
"type": "boolean"
},
"applications": {
"type": "boolean"
},
"sensors": {
"type": "boolean"
},
"diskio": {
"type": "boolean"
},
"junose-atm-vp": {
"type": "boolean"
},
"vmware-vminfo": {
"type": "boolean"
},
"libvirt-vminfo": {
"type": "boolean"
},
"mpls": {
"type": "boolean"
},
"ip6-addresses": {
"type": "boolean"
},
"xdsl": {
"type": "boolean"
}
},
"additionalProperties": false
},
"ifname": {
"type": "boolean"
},
"mib_dir": {
"type": "string"
},
"good_if": {
"type": "array",
"items": {
"type": "string"
}
},
"oids": {
"type": "object",
"properties": {
"no_bulk": {
"type": "array"
},
"unordered": {
"type": "array"
}
},
"additionalProperties": false
},
"snmp_bulk": {
"type": "boolean"
},
"snmp_max_oid": {
"type": "string"
},
"ifXmcbc": {
"type": "boolean"
},
"rfc1628_compat": {
"type": "boolean"
},
"empty_ifdescr": {
"type": "boolean"
},
"bad_entity_sensor_regex": {"$ref": "#/definitions/regex_group"},
"bad_if": {
"type": "array",
"items": {
"type": "string"
}
},
"bad_ifXEntry": {
"type": "array",
"items": {
"type": "string"
}
},
"bad_iftype": {
"type": "array",
"items": {
"type": "string"
}
},
"bad_ifoperstatus": {
"type": "array",
"items": {
"type": "string"
}
},
"processor_stacked": {
"type": "boolean"
},
"disabled_sensors": {
"type": "object",
"patternProperties": {
".": {"type": "boolean"}
}
},
"disabled_sensors_regex": {"$ref": "#/definitions/regex_group"},
"bad_ifname_regexp": {"$ref": "#/definitions/regex_group"},
"bad_if_regexp": {"$ref": "#/definitions/regex_group"},
"bad_snmpEngineTime": {
"type": "boolean"
},
"bad_uptime": {
"type": "boolean"
},
"ignore_mount_string": {
"type": "array",
"items": {
"type": "string"
}
},
"bad_hrSystemUptime": {
"type": "boolean"
},
"icons": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"os",
"text",
"type",
"discovery"
],
"definitions": {
"string_group": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"oid_group": {
"oneOf": [
{
"type": "string",
"pattern": "^(\\.\\d+)+\\.?$"
},
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(\\.\\d+)+\\.?$"
}
}
]
},
"regex_group": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"snmpget": {
"type": "object",
"properties": {
"oid": {
"type": "string"
},
"op": {
"$ref": "#/definitions/comparison"
},
"value": {
"anyOf": [
{
"type": [
"boolean",
"string"
]
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"mib": {
"type": "string"
},
"mib_dir": {
"type": "string"
},
"options": {
"type": "string",
"pattern": "^-"
}
},
"additionalProperties": false,
"required": [
"oid",
"value"
]
},
"comparison": {
"type": "string",
"enum": [
"=",
"!=",
"==",
"!==",
"<=",
">=",
"<",
">",
"starts",
"ends",
"contains",
"regex",
"not_starts",
"not_ends",
"not_contains",
"not_regex",
"in_array",
"not_in_array",
"exists"
]
}
}
}