Files
librenms-librenms/misc/db_schema.yaml

1730 lines
109 KiB
YAML
Raw Normal View History

access_points:
Columns:
- { Field: accesspoint_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: radio_number, Type: tinyint(4), 'Null': true, Extra: '' }
- { Field: type, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: mac_addr, Type: varchar(24), 'Null': false, Extra: '' }
- { Field: deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: channel, Type: 'tinyint(4) unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: txpow, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: radioutil, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: numasoclients, Type: smallint(6), 'Null': false, Extra: '', Default: '0' }
- { Field: nummonclients, Type: smallint(6), 'Null': false, Extra: '', Default: '0' }
- { Field: numactbssid, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: nummonbssid, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: interference, Type: 'tinyint(3) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [accesspoint_id], Unique: true, Type: BTREE }
deleted: { Name: deleted, Columns: [deleted], Unique: false, Type: BTREE }
name: { Name: name, Columns: [name, radio_number], Unique: false, Type: BTREE }
alerts:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: rule_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: state, Type: int(11), 'Null': false, Extra: '' }
- { Field: alerted, Type: int(11), 'Null': false, Extra: '' }
- { Field: open, Type: int(11), 'Null': false, Extra: '' }
2018-04-26 11:29:51 -05:00
- { Field: note, Type: text, 'Null': true, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
unique_alert: { Name: unique_alert, Columns: [device_id, rule_id], Unique: true, Type: BTREE }
rule_id: { Name: rule_id, Columns: [rule_id], Unique: false, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
feature: Added new alert rule builder UI and rule mapping UI (#8293) * feature: Added new alert rule builder UI * Updated to export sql queries * More updates * more changes * removed debug * fix scrut * Updated to include import options + various other fixes * fix rule * Populate name from collection rules. * Fix default rule import Allow new and old style rules in the collection. Don't add new yet as I'm not sure GenSQL() is working. * Fix GenSQL call * Extract filter building to class so it is nicely contained in one place * moved schema * some fixes and tweaks * travis fixes * Some more features / updates * Fix up my mistakes when adding default rules * Use a modal for new alert (Incomplete) Larger dialog!! Remove page loading stuff. Working: Loading rules, resetting dialog, importing from collection. Not working yet: select width device limited rule access? don't know what this is... Lots of unused stuff to delete... * reload "table" after save * fixed editing rule * Auto select2 width * Reload window on save * Restore per-device alert. Remove debug. * Small cleanups. Rule Name first. * Restore button to button type. Rename schema. * Fixes: wrong command to reload window, remove extra attributes, rule is never passed * Fixed old rule editing * some small updates for old imports * travis update to use trusty * maybe travis fix * Ability to set alert rule mappings on the rule edit screen * pip installs one line, no quiet for deploy * update schema def * Fix style and some copyright headers * fix docs missing file * Allow new versions of snmpsim and libraries * Parser WIP * Fix default rules insert * reorganize * Legacy import first draft done * Implement saving Skip translation to sql for now * Working on glues * small rule collection fix * Working on glues * Working on glues * Docs updates + small UI changes * Parser WIP * reorganize * Legacy import first draft done * Implement saving Skip translation to sql for now * Working on glues * Working on glues * Working on glues * Add table mapping, should move to it's own class * WIP * Glue working!! * Extract Schema class * Some final touches. revert alerts_rules.json for now. * Finish up initial implementation Needs more tests * Fix a few places * small doc updates * Fix finding tables in grouped rules. * remove unused code * code format fixes * Some quick tests for Schema Simplified output for findRelationshipPath. Always includes start and target in the result. This simplifies a lot of code in QueryBuilderParser.php This also always loads the target table data now (which we want) * Make bill_id the PRIMARY index for the bills table * Load macros from a json file in misc instead of the database. * Fix whitespace and wrong key for collection. * Handle IN properly when generating SQL * Fix glue (devices.device_id = ports.port_id) is incorrect :D Show ALL tables we can resolve relationships for in the query builder filter. * Remove all macros from the database Remove insert statements, leave updates to update user's existing rules.
2018-03-14 20:25:19 +00:00
alert_device_map:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_device_map_rule_id_device_id_uindex: { Name: alert_device_map_rule_id_device_id_uindex, Columns: [rule_id, device_id], Unique: true, Type: BTREE }
alert_group_map:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: group_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_group_map_rule_id_group_id_uindex: { Name: alert_group_map_rule_id_group_id_uindex, Columns: [rule_id, group_id], Unique: true, Type: BTREE }
alert_log:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: state, Type: int(11), 'Null': false, Extra: '' }
- { Field: details, Type: longblob, 'Null': true, Extra: '' }
- { Field: time_logged, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
rule_id: { Name: rule_id, Columns: [rule_id], Unique: false, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
time_logged: { Name: time_logged, Columns: [time_logged], Unique: false, Type: BTREE }
alert_rules:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: rule, Type: text, 'Null': false, Extra: '' }
- { Field: severity, Type: 'enum(''ok'',''warning'',''critical'')', 'Null': false, Extra: '' }
- { Field: extra, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: disabled, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: query, Type: text, 'Null': false, Extra: '' }
feature: Added new alert rule builder UI and rule mapping UI (#8293) * feature: Added new alert rule builder UI * Updated to export sql queries * More updates * more changes * removed debug * fix scrut * Updated to include import options + various other fixes * fix rule * Populate name from collection rules. * Fix default rule import Allow new and old style rules in the collection. Don't add new yet as I'm not sure GenSQL() is working. * Fix GenSQL call * Extract filter building to class so it is nicely contained in one place * moved schema * some fixes and tweaks * travis fixes * Some more features / updates * Fix up my mistakes when adding default rules * Use a modal for new alert (Incomplete) Larger dialog!! Remove page loading stuff. Working: Loading rules, resetting dialog, importing from collection. Not working yet: select width device limited rule access? don't know what this is... Lots of unused stuff to delete... * reload "table" after save * fixed editing rule * Auto select2 width * Reload window on save * Restore per-device alert. Remove debug. * Small cleanups. Rule Name first. * Restore button to button type. Rename schema. * Fixes: wrong command to reload window, remove extra attributes, rule is never passed * Fixed old rule editing * some small updates for old imports * travis update to use trusty * maybe travis fix * Ability to set alert rule mappings on the rule edit screen * pip installs one line, no quiet for deploy * update schema def * Fix style and some copyright headers * fix docs missing file * Allow new versions of snmpsim and libraries * Parser WIP * Fix default rules insert * reorganize * Legacy import first draft done * Implement saving Skip translation to sql for now * Working on glues * small rule collection fix * Working on glues * Working on glues * Docs updates + small UI changes * Parser WIP * reorganize * Legacy import first draft done * Implement saving Skip translation to sql for now * Working on glues * Working on glues * Working on glues * Add table mapping, should move to it's own class * WIP * Glue working!! * Extract Schema class * Some final touches. revert alerts_rules.json for now. * Finish up initial implementation Needs more tests * Fix a few places * small doc updates * Fix finding tables in grouped rules. * remove unused code * code format fixes * Some quick tests for Schema Simplified output for findRelationshipPath. Always includes start and target in the result. This simplifies a lot of code in QueryBuilderParser.php This also always loads the target table data now (which we want) * Make bill_id the PRIMARY index for the bills table * Load macros from a json file in misc instead of the database. * Fix whitespace and wrong key for collection. * Handle IN properly when generating SQL * Fix glue (devices.device_id = ports.port_id) is incorrect :D Show ALL tables we can resolve relationships for in the query builder filter. * Remove all macros from the database Remove insert statements, leave updates to update user's existing rules.
2018-03-14 20:25:19 +00:00
- { Field: builder, Type: text, 'Null': false, Extra: '' }
- { Field: proc, Type: varchar(80), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
name: { Name: name, Columns: [name], Unique: true, Type: BTREE }
alert_schedule:
Columns:
- { Field: schedule_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: recurring, Type: 'tinyint(1) unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: start, Type: datetime, 'Null': false, Extra: '', Default: '1970-01-02 00:00:01' }
- { Field: end, Type: datetime, 'Null': false, Extra: '', Default: '1970-01-02 00:00:01' }
- { Field: start_recurring_dt, Type: date, 'Null': false, Extra: '', Default: '1970-01-01' }
- { Field: end_recurring_dt, Type: date, 'Null': true, Extra: '' }
- { Field: start_recurring_hr, Type: time, 'Null': false, Extra: '', Default: '00:00:00' }
- { Field: end_recurring_hr, Type: time, 'Null': false, Extra: '', Default: '00:00:00' }
- { Field: recurring_day, Type: varchar(15), 'Null': true, Extra: '' }
- { Field: title, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: notes, Type: text, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [schedule_id], Unique: true, Type: BTREE }
alert_schedule_items:
Columns:
- { Field: item_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: schedule_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: target, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [item_id], Unique: true, Type: BTREE }
schedule_id: { Name: schedule_id, Columns: [schedule_id], Unique: false, Type: BTREE }
alert_templates:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: template, Type: longtext, 'Null': false, Extra: '' }
- { Field: title, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: title_rec, Type: varchar(255), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_template_map:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: alert_templates_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: alert_rule_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_templates_id: { Name: alert_templates_id, Columns: [alert_templates_id, alert_rule_id], Unique: false, Type: BTREE }
Added Alert Transports Mapping (#8660) Hello all, I guess this is the second version of a more fully fleshed out alert contact mapping feature. The old one was GH-8507 Transports to convert: - [x] API - [x] Cisco Spark - [x] Elasticsearch - [x] GitLab - [x] Philips Hue - [x] Jira - [x] Mail - [ ] ~~PagerDuty~~ - Requires a callback so leaving for now - [x] Nagios - [x] IRC - [x] Discord - [x] Rocket.chat - [x] Hipchat - [x] Pushover - [x] Boxcar - [x] Telegram - [x] Pushbullet - [x] VictorOps - [x] OpsGenie - [x] Clickatell - [x] PlaySMS - [x] Canopsis - [x] osTicket - [x] Microsoft Teams - [x] SMSEagle - [x] Syslog - [x] Slack The intention is for this feature to have three different levels to it: 1. Alert rule to an alert contact mapping (where the code is at now) 2. Alert rule to an alert group (made up of alert contacts) mapping 3. Alert contact mapping to different transport configurations. There will be three transport configuration types. 1. Default (the configuration that is held in the configs table) 2. None (no transport configuration - will explain later) 3. Other (a configuration that will be defined in a different able) Take Mail transport for example. It can either be of a "default" or "other" configuration. The hope is that in the future, users can send mail from different mail servers if they wish. However, for ciscospark which requires a room ID and an api-token, I've decided that it has no transport configuration. Most likely, every alert contact will contain a different room-id and an api-token - which is why it has the transport config of "none". For other transports : I am not familiar with them, so hopefully the community can add support for these. I can definitely help! To add support for each transport will require several things: - addition to the UI - addition to forms/alert-contacts.inc.php - modifications to its object class Screenshots ![image](https://user-images.githubusercontent.com/28970851/39594533-2092ce9e-4eca-11e8-9c5d-cd002ece1425.png) ![image](https://user-images.githubusercontent.com/28970851/39594544-276e9856-4eca-11e8-80cc-82789ee0b2b2.png) ![image](https://user-images.githubusercontent.com/28970851/39594553-2fdf528c-4eca-11e8-8a40-4f149e767054.png) I'm not sure if this is the best way to do things, so please let me know if there's a better way to structure the code! Any comments on code/db schema,/UI etc is welcome and encouraged! The UI is heavily based on alert rules (front end is not my strong suit). And parts of the code are based on the code that was written for alert rules. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-07-21 13:34:59 -06:00
alert_transports:
Columns:
- { Field: transport_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: transport_name, Type: varchar(30), 'Null': false, Extra: '' }
- { Field: transport_type, Type: varchar(20), 'Null': false, Extra: '', Default: mail }
- { Field: is_default, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: transport_config, Type: text, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [transport_id], Unique: true, Type: BTREE }
alert_transport_groups:
Columns:
- { Field: transport_group_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: transport_group_name, Type: varchar(30), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [transport_group_id], Unique: true, Type: BTREE }
alert_transport_map:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: transport_or_group_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: target_type, Type: varchar(16), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
api_tokens:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: user_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: token_hash, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: description, Type: varchar(100), 'Null': false, Extra: '' }
- { Field: disabled, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
token_hash: { Name: token_hash, Columns: [token_hash], Unique: true, Type: BTREE }
applications:
Columns:
- { Field: app_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: app_type, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: app_state, Type: varchar(32), 'Null': false, Extra: '', Default: UNKNOWN }
- { Field: discovered, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: app_state_prev, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: app_status, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
- { Field: app_instance, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [app_id], Unique: true, Type: BTREE }
unique_index: { Name: unique_index, Columns: [device_id, app_type], Unique: true, Type: BTREE }
application_metrics:
Columns:
- { Field: app_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: metric, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: value, Type: 'double', 'Null': true, Extra: '' }
- { Field: value_prev, Type: 'double', 'Null': true, Extra: '' }
Indexes:
application_metrics_app_id_metric_uindex: { Name: application_metrics_app_id_metric_uindex, Columns: [app_id, metric], Unique: true, Type: BTREE }
authlog:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: datetime, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: user, Type: text, 'Null': false, Extra: '' }
- { Field: address, Type: text, 'Null': false, Extra: '' }
- { Field: result, Type: text, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
bgpPeers:
Columns:
- { Field: bgpPeer_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: astext, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: bgpPeerIdentifier, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerRemoteAs, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: bgpPeerState, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerAdminStatus, Type: text, 'Null': false, Extra: '' }
- { Field: bgpLocalAddr, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerRemoteAddr, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerInUpdates, Type: int(11), 'Null': false, Extra: '' }
- { Field: bgpPeerOutUpdates, Type: int(11), 'Null': false, Extra: '' }
- { Field: bgpPeerInTotalMessages, Type: int(11), 'Null': false, Extra: '' }
- { Field: bgpPeerOutTotalMessages, Type: int(11), 'Null': false, Extra: '' }
- { Field: bgpPeerFsmEstablishedTime, Type: int(11), 'Null': false, Extra: '' }
- { Field: bgpPeerInUpdateElapsedTime, Type: int(11), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bgpPeer_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id, context_name], Unique: false, Type: BTREE }
bgpPeers_cbgp:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: bgpPeerIdentifier, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: afi, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: safi, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: AcceptedPrefixes, Type: int(11), 'Null': false, Extra: '' }
- { Field: DeniedPrefixes, Type: int(11), 'Null': false, Extra: '' }
- { Field: PrefixAdminLimit, Type: int(11), 'Null': false, Extra: '' }
- { Field: PrefixThreshold, Type: int(11), 'Null': false, Extra: '' }
- { Field: PrefixClearThreshold, Type: int(11), 'Null': false, Extra: '' }
- { Field: AdvertisedPrefixes, Type: int(11), 'Null': false, Extra: '' }
- { Field: SuppressedPrefixes, Type: int(11), 'Null': false, Extra: '' }
- { Field: WithdrawnPrefixes, Type: int(11), 'Null': false, Extra: '' }
- { Field: AcceptedPrefixes_delta, Type: int(11), 'Null': false, Extra: '' }
- { Field: AcceptedPrefixes_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: DeniedPrefixes_delta, Type: int(11), 'Null': false, Extra: '' }
- { Field: DeniedPrefixes_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: AdvertisedPrefixes_delta, Type: int(11), 'Null': false, Extra: '' }
- { Field: AdvertisedPrefixes_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: SuppressedPrefixes_delta, Type: int(11), 'Null': false, Extra: '' }
- { Field: SuppressedPrefixes_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: WithdrawnPrefixes_delta, Type: int(11), 'Null': false, Extra: '' }
- { Field: WithdrawnPrefixes_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
unique_index: { Name: unique_index, Columns: [device_id, bgpPeerIdentifier, afi, safi], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id, bgpPeerIdentifier, context_name], Unique: false, Type: BTREE }
bills:
Columns:
- { Field: bill_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: bill_name, Type: text, 'Null': false, Extra: '' }
- { Field: bill_type, Type: text, 'Null': false, Extra: '' }
- { Field: bill_cdr, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: bill_day, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: bill_quota, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: rate_95th_in, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_95th_out, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_95th, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: dir_95th, Type: varchar(3), 'Null': false, Extra: '' }
- { Field: total_data, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: total_data_in, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: total_data_out, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_average_in, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_average_out, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_average, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: bill_last_calc, Type: datetime, 'Null': false, Extra: '' }
- { Field: bill_custid, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: bill_ref, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: bill_notes, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: bill_autoadded, Type: tinyint(1), 'Null': false, Extra: '' }
Indexes:
feature: Added new alert rule builder UI and rule mapping UI (#8293) * feature: Added new alert rule builder UI * Updated to export sql queries * More updates * more changes * removed debug * fix scrut * Updated to include import options + various other fixes * fix rule * Populate name from collection rules. * Fix default rule import Allow new and old style rules in the collection. Don't add new yet as I'm not sure GenSQL() is working. * Fix GenSQL call * Extract filter building to class so it is nicely contained in one place * moved schema * some fixes and tweaks * travis fixes * Some more features / updates * Fix up my mistakes when adding default rules * Use a modal for new alert (Incomplete) Larger dialog!! Remove page loading stuff. Working: Loading rules, resetting dialog, importing from collection. Not working yet: select width device limited rule access? don't know what this is... Lots of unused stuff to delete... * reload "table" after save * fixed editing rule * Auto select2 width * Reload window on save * Restore per-device alert. Remove debug. * Small cleanups. Rule Name first. * Restore button to button type. Rename schema. * Fixes: wrong command to reload window, remove extra attributes, rule is never passed * Fixed old rule editing * some small updates for old imports * travis update to use trusty * maybe travis fix * Ability to set alert rule mappings on the rule edit screen * pip installs one line, no quiet for deploy * update schema def * Fix style and some copyright headers * fix docs missing file * Allow new versions of snmpsim and libraries * Parser WIP * Fix default rules insert * reorganize * Legacy import first draft done * Implement saving Skip translation to sql for now * Working on glues * small rule collection fix * Working on glues * Working on glues * Docs updates + small UI changes * Parser WIP * reorganize * Legacy import first draft done * Implement saving Skip translation to sql for now * Working on glues * Working on glues * Working on glues * Add table mapping, should move to it's own class * WIP * Glue working!! * Extract Schema class * Some final touches. revert alerts_rules.json for now. * Finish up initial implementation Needs more tests * Fix a few places * small doc updates * Fix finding tables in grouped rules. * remove unused code * code format fixes * Some quick tests for Schema Simplified output for findRelationshipPath. Always includes start and target in the result. This simplifies a lot of code in QueryBuilderParser.php This also always loads the target table data now (which we want) * Make bill_id the PRIMARY index for the bills table * Load macros from a json file in misc instead of the database. * Fix whitespace and wrong key for collection. * Handle IN properly when generating SQL * Fix glue (devices.device_id = ports.port_id) is incorrect :D Show ALL tables we can resolve relationships for in the query builder filter. * Remove all macros from the database Remove insert statements, leave updates to update user's existing rules.
2018-03-14 20:25:19 +00:00
PRIMARY: { Name: PRIMARY, Columns: [bill_id], Unique: true, Type: BTREE }
bill_data:
Columns:
- { Field: bill_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: timestamp, Type: datetime, 'Null': false, Extra: '' }
- { Field: period, Type: int(11), 'Null': false, Extra: '' }
- { Field: delta, Type: bigint(11), 'Null': false, Extra: '' }
- { Field: in_delta, Type: bigint(11), 'Null': false, Extra: '' }
- { Field: out_delta, Type: bigint(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bill_id, timestamp], Unique: true, Type: BTREE }
bill_id: { Name: bill_id, Columns: [bill_id], Unique: false, Type: BTREE }
bill_history:
Columns:
- { Field: bill_hist_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: bill_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: updated, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: bill_datefrom, Type: datetime, 'Null': false, Extra: '' }
- { Field: bill_dateto, Type: datetime, 'Null': false, Extra: '' }
- { Field: bill_type, Type: text, 'Null': false, Extra: '' }
- { Field: bill_allowed, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: bill_used, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: bill_overuse, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: bill_percent, Type: 'decimal(10,2)', 'Null': false, Extra: '' }
- { Field: rate_95th_in, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_95th_out, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_95th, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: dir_95th, Type: varchar(3), 'Null': false, Extra: '' }
- { Field: rate_average, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_average_in, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: rate_average_out, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: traf_in, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: traf_out, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: traf_total, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: pdf, Type: longblob, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bill_hist_id], Unique: true, Type: BTREE }
unique_index: { Name: unique_index, Columns: [bill_id, bill_datefrom, bill_dateto], Unique: true, Type: BTREE }
bill_id: { Name: bill_id, Columns: [bill_id], Unique: false, Type: BTREE }
bill_perms:
Columns:
- { Field: user_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: bill_id, Type: int(11), 'Null': false, Extra: '' }
bill_ports:
Columns:
- { Field: bill_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: bill_port_autoadded, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
bill_port_counters:
Columns:
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: in_counter, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: in_delta, Type: bigint(20), 'Null': false, Extra: '', Default: '0' }
- { Field: out_counter, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: out_delta, Type: bigint(20), 'Null': false, Extra: '', Default: '0' }
- { Field: bill_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_id, bill_id], Unique: true, Type: BTREE }
callback:
Columns:
- { Field: callback_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: name, Type: char(64), 'Null': false, Extra: '' }
- { Field: value, Type: char(64), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [callback_id], Unique: true, Type: BTREE }
cef_switching:
Columns:
- { Field: cef_switching_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: int(11), 'Null': false, Extra: '' }
- { Field: afi, Type: varchar(4), 'Null': false, Extra: '' }
- { Field: cef_index, Type: int(11), 'Null': false, Extra: '' }
- { Field: cef_path, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: drop, Type: int(11), 'Null': false, Extra: '' }
- { Field: punt, Type: int(11), 'Null': false, Extra: '' }
- { Field: punt2host, Type: int(11), 'Null': false, Extra: '' }
- { Field: drop_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: punt_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: punt2host_prev, Type: int(11), 'Null': false, Extra: '' }
- { Field: updated, Type: int(11), 'Null': false, Extra: '' }
- { Field: updated_prev, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [cef_switching_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id, entPhysicalIndex, afi, cef_index], Unique: true, Type: BTREE }
ciscoASA:
Columns:
- { Field: ciscoASA_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: oid, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: data, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: high_alert, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: low_alert, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: disabled, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ciscoASA_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
component:
Columns:
- { Field: id, Type: 'int(11) unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: type, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: label, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: status, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: disabled, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: ignore, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: error, Type: varchar(255), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device: { Name: device, Columns: [device_id], Unique: false, Type: BTREE }
type: { Name: type, Columns: [type], Unique: false, Type: BTREE }
component_prefs:
Columns:
- { Field: id, Type: 'int(11) unsigned', 'Null': false, Extra: auto_increment }
- { Field: component, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: attribute, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: value, Type: text, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
component: { Name: component, Columns: [component], Unique: false, Type: BTREE }
component_statuslog:
Columns:
- { Field: id, Type: 'int(11) unsigned', 'Null': false, Extra: auto_increment }
- { Field: component_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: status, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: message, Type: text, 'Null': true, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device: { Name: device, Columns: [component_id], Unique: false, Type: BTREE }
config:
Columns:
- { Field: config_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: config_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: config_value, Type: varchar(512), 'Null': false, Extra: '' }
- { Field: config_default, Type: varchar(512), 'Null': false, Extra: '' }
- { Field: config_descr, Type: varchar(100), 'Null': false, Extra: '' }
- { Field: config_group, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: config_group_order, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: config_sub_group, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: config_sub_group_order, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: config_hidden, Type: 'enum(''0'',''1'')', 'Null': false, Extra: '', Default: '0' }
- { Field: config_disabled, Type: 'enum(''0'',''1'')', 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [config_id], Unique: true, Type: BTREE }
uniqueindex_configname: { Name: uniqueindex_configname, Columns: [config_name], Unique: true, Type: BTREE }
customers:
Columns:
- { Field: customer_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: username, Type: char(64), 'Null': false, Extra: '' }
- { Field: password, Type: char(32), 'Null': false, Extra: '' }
- { Field: string, Type: char(64), 'Null': false, Extra: '' }
- { Field: level, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [customer_id], Unique: true, Type: BTREE }
username: { Name: username, Columns: [username], Unique: true, Type: BTREE }
dashboards:
Columns:
- { Field: dashboard_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: user_id, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: dashboard_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: access, Type: int(1), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [dashboard_id], Unique: true, Type: BTREE }
dbSchema:
Columns:
- { Field: version, Type: int(11), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [version], Unique: true, Type: BTREE }
devices:
Columns:
- { Field: device_id, Type: 'int(11) unsigned', 'Null': false, Extra: auto_increment }
- { Field: hostname, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: sysName, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: ip, Type: varbinary(16), 'Null': true, Extra: '' }
- { Field: community, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: authlevel, Type: 'enum(''noAuthNoPriv'',''authNoPriv'',''authPriv'')', 'Null': true, Extra: '' }
- { Field: authname, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: authpass, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: authalgo, Type: 'enum(''MD5'',''SHA'')', 'Null': true, Extra: '' }
- { Field: cryptopass, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: cryptoalgo, Type: 'enum(''AES'',''DES'','''')', 'Null': true, Extra: '' }
- { Field: snmpver, Type: varchar(4), 'Null': false, Extra: '', Default: v2c }
- { Field: port, Type: 'smallint(5) unsigned', 'Null': false, Extra: '', Default: '161' }
- { Field: transport, Type: varchar(16), 'Null': false, Extra: '', Default: udp }
- { Field: timeout, Type: int(11), 'Null': true, Extra: '' }
- { Field: retries, Type: int(11), 'Null': true, Extra: '' }
- { Field: snmp_disable, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: bgpLocalAs, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: sysObjectID, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: sysDescr, Type: text, 'Null': true, Extra: '' }
- { Field: sysContact, Type: text, 'Null': true, Extra: '' }
- { Field: version, Type: text, 'Null': true, Extra: '' }
- { Field: hardware, Type: text, 'Null': true, Extra: '' }
- { Field: features, Type: text, 'Null': true, Extra: '' }
- { Field: location, Type: text, 'Null': true, Extra: '' }
- { Field: os, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: status, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: status_reason, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: ignore, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: disabled, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: uptime, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: agent_uptime, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: last_polled, Type: timestamp, 'Null': true, Extra: '' }
- { Field: last_poll_attempted, Type: timestamp, 'Null': true, Extra: '' }
- { Field: last_polled_timetaken, Type: 'double(5,2)', 'Null': true, Extra: '' }
- { Field: last_discovered_timetaken, Type: 'double(5,2)', 'Null': true, Extra: '' }
- { Field: last_discovered, Type: timestamp, 'Null': true, Extra: '' }
- { Field: last_ping, Type: timestamp, 'Null': true, Extra: '' }
- { Field: last_ping_timetaken, Type: 'double(5,2)', 'Null': true, Extra: '' }
- { Field: purpose, Type: text, 'Null': true, Extra: '' }
- { Field: type, Type: varchar(20), 'Null': false, Extra: '', Default: '' }
- { Field: serial, Type: text, 'Null': true, Extra: '' }
- { Field: icon, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: poller_group, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: override_sysLocation, Type: tinyint(1), 'Null': true, Extra: '', Default: '0' }
- { Field: notes, Type: text, 'Null': true, Extra: '' }
- { Field: port_association_mode, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: max_depth, Type: int(11), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [device_id], Unique: true, Type: BTREE }
status: { Name: status, Columns: [status], Unique: false, Type: BTREE }
hostname: { Name: hostname, Columns: [hostname], Unique: false, Type: BTREE }
sysName: { Name: sysName, Columns: [sysName], Unique: false, Type: BTREE }
os: { Name: os, Columns: [os], Unique: false, Type: BTREE }
last_polled: { Name: last_polled, Columns: [last_polled], Unique: false, Type: BTREE }
last_poll_attempted: { Name: last_poll_attempted, Columns: [last_poll_attempted], Unique: false, Type: BTREE }
devices_attribs:
Columns:
- { Field: attrib_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: attrib_type, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: attrib_value, Type: text, 'Null': false, Extra: '' }
- { Field: updated, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [attrib_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
devices_perms:
Columns:
- { Field: user_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: access_level, Type: int(4), 'Null': false, Extra: '', Default: '0' }
Indexes:
user_id: { Name: user_id, Columns: [user_id], Unique: false, Type: BTREE }
device_graphs:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: graph, Type: varchar(255), 'Null': true, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
device_groups:
Columns:
- { Field: id, Type: 'int(11) unsigned', 'Null': false, Extra: auto_increment }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: desc, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: pattern, Type: text, 'Null': true, Extra: '' }
- { Field: params, Type: text, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
name: { Name: name, Columns: [name], Unique: true, Type: BTREE }
device_group_device:
Columns:
- { Field: device_group_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [device_group_id, device_id], Unique: true, Type: BTREE }
device_group_device_device_group_id_index: { Name: device_group_device_device_group_id_index, Columns: [device_group_id], Unique: false, Type: BTREE }
device_group_device_device_id_index: { Name: device_group_device_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
device_mibs:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: module, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: mib, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: included_by, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: last_modified, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [device_id, module, mib], Unique: true, Type: BTREE }
device_oids:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: oid, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: module, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: mib, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: object_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: value, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: numvalue, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: last_modified, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [device_id, oid], Unique: true, Type: BTREE }
device_perf:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: timestamp, Type: datetime, 'Null': false, Extra: '' }
- { Field: xmt, Type: float, 'Null': false, Extra: '' }
- { Field: rcv, Type: float, 'Null': false, Extra: '' }
- { Field: loss, Type: float, 'Null': false, Extra: '' }
- { Field: min, Type: float, 'Null': false, Extra: '' }
- { Field: max, Type: float, 'Null': false, Extra: '' }
- { Field: avg, Type: float, 'Null': false, Extra: '' }
Indexes:
id: { Name: id, Columns: [id], Unique: false, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
feature: Added support for Host dependencies (#7332) * First draft of the modals and the config interfaces * GUI part done * Backend code and db schema addition * Documentation added, fixed alerting bug * Fix typos * Do not try to push an older db_schame.yaml * Small db fix * More db fixes * Travis CI fixes * missed a line in the travis error * Fixed dependency clearing bug, Manage Host dependencies button now shows current selections * Removed unnecessary index * Correct faulty query * Fixed sql query as requested, and renamed sql file * Added requested changes * Removed debug code * Renamed sql file * More fixes as requested * Trying to fix db_schema.yaml * adding laf's diff * Corrected a small bug * Try to resolve scrutinizer issue * Main page bootgrid ajax modifications * Also corrected travis ci errors * Added select2 for pull downs, removed a redundant debug output. Changed parent_id to text * Add missing class in the device settings page * Fix bug where a link wasn't added after save * Better parent down detection * Add missing comma * Behold the multi-parent code * Added lookup table * Ready for testing * Trying to fix documentation conflicts * Fix copy paste errors, and possible sql injection * indentation problems * Modified db_schema.yaml as well * Typos, typos * This should correct alerts * Try to fix travis ci error * Fix the typo in index.php * Changed to Tony's query * function explanation text changed * Updated db_schema.yaml * Trying to make automated tests happy * Changes as requested * Added acknowledgment for select2 * Added laf's patch * dbBulkInsert when adding parents
2017-12-20 17:17:52 +03:00
device_relationships:
Columns:
- { Field: parent_device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: child_device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [parent_device_id, child_device_id], Unique: true, Type: BTREE }
device_relationship_child_device_id_fk: { Name: device_relationship_child_device_id_fk, Columns: [child_device_id], Unique: false, Type: BTREE }
entityState:
Columns:
- { Field: entity_state_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: entPhysical_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: entStateLastChanged, Type: datetime, 'Null': true, Extra: '' }
- { Field: entStateAdmin, Type: int(11), 'Null': true, Extra: '' }
- { Field: entStateOper, Type: int(11), 'Null': true, Extra: '' }
- { Field: entStateUsage, Type: int(11), 'Null': true, Extra: '' }
- { Field: entStateAlarm, Type: text, 'Null': true, Extra: '' }
- { Field: entStateStandby, Type: int(11), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [entity_state_id], Unique: true, Type: BTREE }
entityState_device_id_index: { Name: entityState_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
entPhysical:
Columns:
- { Field: entPhysical_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: int(11), 'Null': false, Extra: '' }
- { Field: entPhysicalDescr, Type: text, 'Null': false, Extra: '' }
- { Field: entPhysicalClass, Type: text, 'Null': false, Extra: '' }
- { Field: entPhysicalName, Type: text, 'Null': false, Extra: '' }
- { Field: entPhysicalHardwareRev, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: entPhysicalFirmwareRev, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: entPhysicalSoftwareRev, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: entPhysicalAlias, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: entPhysicalAssetID, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: entPhysicalIsFRU, Type: varchar(8), 'Null': true, Extra: '' }
- { Field: entPhysicalModelName, Type: text, 'Null': false, Extra: '' }
- { Field: entPhysicalVendorType, Type: text, 'Null': true, Extra: '' }
- { Field: entPhysicalSerialNum, Type: text, 'Null': false, Extra: '' }
- { Field: entPhysicalContainedIn, Type: int(11), 'Null': false, Extra: '' }
- { Field: entPhysicalParentRelPos, Type: int(11), 'Null': false, Extra: '' }
- { Field: entPhysicalMfgName, Type: text, 'Null': false, Extra: '' }
- { Field: ifIndex, Type: int(11), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [entPhysical_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
entPhysical_state:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: subindex, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: group, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: key, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: value, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
device_id_index: { Name: device_id_index, Columns: [device_id, entPhysicalIndex], Unique: false, Type: BTREE }
eventlog:
Columns:
- { Field: event_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: host, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: datetime, Type: datetime, 'Null': false, Extra: '', Default: '1970-01-02 00:00:01' }
- { Field: message, Type: text, 'Null': true, Extra: '' }
- { Field: type, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: reference, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: username, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: severity, Type: int(1), 'Null': true, Extra: '', Default: '2' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [event_id], Unique: true, Type: BTREE }
host: { Name: host, Columns: [host], Unique: false, Type: BTREE }
datetime: { Name: datetime, Columns: [datetime], Unique: false, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
graph_types:
Columns:
- { Field: graph_type, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: graph_subtype, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: graph_section, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: graph_descr, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: graph_order, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [graph_type, graph_subtype, graph_section], Unique: true, Type: BTREE }
graph_type: { Name: graph_type, Columns: [graph_type], Unique: false, Type: BTREE }
graph_subtype: { Name: graph_subtype, Columns: [graph_subtype], Unique: false, Type: BTREE }
graph_section: { Name: graph_section, Columns: [graph_section], Unique: false, Type: BTREE }
graph_types_dead:
Columns:
- { Field: graph_type, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: graph_subtype, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: graph_section, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: graph_descr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: graph_order, Type: int(11), 'Null': false, Extra: '' }
Indexes:
graph_type: { Name: graph_type, Columns: [graph_type], Unique: false, Type: BTREE }
graph_subtype: { Name: graph_subtype, Columns: [graph_subtype], Unique: false, Type: BTREE }
graph_section: { Name: graph_section, Columns: [graph_section], Unique: false, Type: BTREE }
hrDevice:
Columns:
- { Field: hrDevice_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: hrDeviceIndex, Type: int(11), 'Null': false, Extra: '' }
- { Field: hrDeviceDescr, Type: text, 'Null': false, Extra: '' }
- { Field: hrDeviceType, Type: text, 'Null': false, Extra: '' }
- { Field: hrDeviceErrors, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: hrDeviceStatus, Type: text, 'Null': false, Extra: '' }
- { Field: hrProcessorLoad, Type: tinyint(4), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [hrDevice_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
ipsec_tunnels:
Columns:
- { Field: tunnel_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: peer_port, Type: int(11), 'Null': false, Extra: '' }
- { Field: peer_addr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: local_addr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: local_port, Type: int(11), 'Null': false, Extra: '' }
- { Field: tunnel_name, Type: varchar(96), 'Null': false, Extra: '' }
- { Field: tunnel_status, Type: varchar(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [tunnel_id], Unique: true, Type: BTREE }
unique_index: { Name: unique_index, Columns: [device_id, peer_addr], Unique: true, Type: BTREE }
ipv4_addresses:
Columns:
- { Field: ipv4_address_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: ipv4_address, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ipv4_prefixlen, Type: int(11), 'Null': false, Extra: '' }
- { Field: ipv4_network_id, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ipv4_address_id], Unique: true, Type: BTREE }
interface_id: { Name: interface_id, Columns: [port_id], Unique: false, Type: BTREE }
interface_id_2: { Name: interface_id_2, Columns: [port_id], Unique: false, Type: BTREE }
ipv4_mac:
Columns:
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: mac_address, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ipv4_address, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
port_id: { Name: port_id, Columns: [port_id], Unique: false, Type: BTREE }
mac_address: { Name: mac_address, Columns: [mac_address], Unique: false, Type: BTREE }
ipv4_networks:
Columns:
- { Field: ipv4_network_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: ipv4_network, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ipv4_network_id], Unique: true, Type: BTREE }
ipv6_addresses:
Columns:
- { Field: ipv6_address_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: ipv6_address, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: ipv6_compressed, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: ipv6_prefixlen, Type: int(11), 'Null': false, Extra: '' }
- { Field: ipv6_origin, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: ipv6_network_id, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ipv6_address_id], Unique: true, Type: BTREE }
interface_id: { Name: interface_id, Columns: [port_id], Unique: false, Type: BTREE }
interface_id_2: { Name: interface_id_2, Columns: [port_id], Unique: false, Type: BTREE }
ipv6_networks:
Columns:
- { Field: ipv6_network_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: ipv6_network, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ipv6_network_id], Unique: true, Type: BTREE }
juniAtmVp:
Columns:
- { Field: juniAtmVp_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: vp_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: vp_descr, Type: varchar(32), 'Null': false, Extra: '' }
Indexes:
port_id: { Name: port_id, Columns: [port_id], Unique: false, Type: BTREE }
links:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: local_port_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: local_device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: remote_port_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: active, Type: tinyint(4), 'Null': false, Extra: '', Default: '1' }
- { Field: protocol, Type: varchar(11), 'Null': true, Extra: '' }
- { Field: remote_hostname, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: remote_device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: remote_port, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: remote_platform, Type: varchar(256), 'Null': true, Extra: '' }
- { Field: remote_version, Type: varchar(256), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
src_if: { Name: src_if, Columns: [local_port_id], Unique: false, Type: BTREE }
dst_if: { Name: dst_if, Columns: [remote_port_id], Unique: false, Type: BTREE }
local_device_id: { Name: local_device_id, Columns: [local_device_id, remote_device_id], Unique: false, Type: BTREE }
loadbalancer_rservers:
Columns:
- { Field: rserver_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: farm_id, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: StateDescr, Type: varchar(64), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [rserver_id], Unique: true, Type: BTREE }
loadbalancer_vservers:
Columns:
- { Field: classmap_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: classmap, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: serverstate, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
locations:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: location, Type: text, 'Null': false, Extra: '' }
- { Field: lat, Type: 'float(10,6)', 'Null': false, Extra: '' }
- { Field: lng, Type: 'float(10,6)', 'Null': false, Extra: '' }
- { Field: timestamp, Type: datetime, 'Null': false, Extra: '' }
Indexes:
id: { Name: id, Columns: [id], Unique: false, Type: BTREE }
mac_accounting:
Columns:
- { Field: ma_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: mac, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: in_oid, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: out_oid, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: bps_out, Type: int(11), 'Null': false, Extra: '' }
- { Field: bps_in, Type: int(11), 'Null': false, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: poll_time, Type: int(11), 'Null': true, Extra: '' }
- { Field: poll_prev, Type: int(11), 'Null': true, Extra: '' }
- { Field: poll_period, Type: int(11), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ma_id], Unique: true, Type: BTREE }
interface_id: { Name: interface_id, Columns: [port_id], Unique: false, Type: BTREE }
interface_id_2: { Name: interface_id_2, Columns: [port_id], Unique: false, Type: BTREE }
mefinfo:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: mefID, Type: int(32), 'Null': false, Extra: '' }
- { Field: mefType, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: mefIdent, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: mefMTU, Type: int(16), 'Null': false, Extra: '', Default: '1500' }
- { Field: mefAdmState, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: mefRowState, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
mefID: { Name: mefID, Columns: [mefID], Unique: false, Type: BTREE }
mempools:
Columns:
- { Field: mempool_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: mempool_index, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: int(11), 'Null': true, Extra: '' }
- { Field: hrDeviceIndex, Type: int(11), 'Null': true, Extra: '' }
- { Field: mempool_type, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: mempool_precision, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: mempool_descr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: mempool_perc, Type: int(11), 'Null': false, Extra: '' }
- { Field: mempool_used, Type: bigint(16), 'Null': false, Extra: '' }
- { Field: mempool_free, Type: bigint(16), 'Null': false, Extra: '' }
- { Field: mempool_total, Type: bigint(16), 'Null': false, Extra: '' }
- { Field: mempool_largestfree, Type: bigint(16), 'Null': true, Extra: '' }
- { Field: mempool_lowestfree, Type: bigint(16), 'Null': true, Extra: '' }
- { Field: mempool_deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: mempool_perc_warn, Type: int(11), 'Null': true, Extra: '', Default: '75' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [mempool_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
mibdefs:
Columns:
- { Field: module, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: mib, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: object_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: oid, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: syntax, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: description, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: max_access, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: status, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: included_by, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: last_modified, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [module, mib, object_type], Unique: true, Type: BTREE }
munin_plugins:
Columns:
- { Field: mplug_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: mplug_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: mplug_instance, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: mplug_category, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: mplug_title, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: mplug_info, Type: text, 'Null': true, Extra: '' }
- { Field: mplug_vlabel, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: mplug_args, Type: varchar(512), 'Null': true, Extra: '' }
- { Field: mplug_total, Type: binary(1), 'Null': false, Extra: '', Default: '0' }
- { Field: mplug_graph, Type: binary(1), 'Null': false, Extra: '', Default: '1' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [mplug_id], Unique: true, Type: BTREE }
UNIQUE: { Name: UNIQUE, Columns: [device_id, mplug_type], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
munin_plugins_ds:
Columns:
- { Field: mplug_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ds_name, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_type, Type: 'enum(''COUNTER'',''ABSOLUTE'',''DERIVE'',''GAUGE'')', 'Null': false, Extra: '', Default: GAUGE }
- { Field: ds_label, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: ds_cdef, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: ds_draw, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: ds_graph, Type: 'enum(''no'',''yes'')', 'Null': false, Extra: '', Default: 'yes' }
- { Field: ds_info, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: ds_extinfo, Type: text, 'Null': false, Extra: '' }
- { Field: ds_max, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_min, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_negative, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_warning, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_critical, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_colour, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ds_sum, Type: text, 'Null': false, Extra: '' }
- { Field: ds_stack, Type: text, 'Null': false, Extra: '' }
- { Field: ds_line, Type: varchar(64), 'Null': false, Extra: '' }
Indexes:
splug_id: { Name: splug_id, Columns: [mplug_id, ds_name], Unique: true, Type: BTREE }
netscaler_vservers:
Columns:
- { Field: vsvr_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: vsvr_name, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vsvr_ip, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vsvr_port, Type: int(8), 'Null': false, Extra: '' }
- { Field: vsvr_type, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: vsvr_state, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: vsvr_clients, Type: int(11), 'Null': false, Extra: '' }
- { Field: vsvr_server, Type: int(11), 'Null': false, Extra: '' }
- { Field: vsvr_req_rate, Type: int(11), 'Null': false, Extra: '' }
- { Field: vsvr_bps_in, Type: int(11), 'Null': false, Extra: '' }
- { Field: vsvr_bps_out, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [vsvr_id], Unique: true, Type: BTREE }
notifications:
Columns:
- { Field: notifications_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: title, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: body, Type: text, 'Null': false, Extra: '' }
- { Field: severity, Type: int(11), 'Null': true, Extra: '', Default: '0' }
- { Field: source, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: checksum, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: datetime, Type: timestamp, 'Null': false, Extra: '', Default: '1970-01-02 00:00:00' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [notifications_id], Unique: true, Type: BTREE }
checksum: { Name: checksum, Columns: [checksum], Unique: true, Type: BTREE }
notifications_severity_index: { Name: notifications_severity_index, Columns: [severity], Unique: false, Type: BTREE }
notifications_attribs:
Columns:
- { Field: attrib_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: notifications_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: user_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: key, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: value, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [attrib_id], Unique: true, Type: BTREE }
ospf_areas:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfAreaId, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfAuthType, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: ospfImportAsExtern, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: ospfSpfRuns, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfAreaBdrRtrCount, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfAsBdrRtrCount, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfAreaLsaCount, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfAreaLsaCksumSum, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfAreaSummary, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: ospfAreaStatus, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
device_area: { Name: device_area, Columns: [device_id, ospfAreaId, context_name], Unique: true, Type: BTREE }
ospf_instances:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospf_instance_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfRouterId, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfAdminStat, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfVersionNumber, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfAreaBdrRtrStatus, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfASBdrRtrStatus, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfExternLsaCount, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfExternLsaCksumSum, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfTOSSupport, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfOriginateNewLsas, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfRxNewLsas, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfExtLsdbLimit, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfMulticastExtensions, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfExitOverflowInterval, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfDemandExtensions, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id, ospf_instance_id, context_name], Unique: true, Type: BTREE }
ospf_nbrs:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospf_nbr_id, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrIpAddr, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrAddressLessIndex, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfNbrRtrId, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrOptions, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfNbrPriority, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfNbrState, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrEvents, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfNbrLsRetransQLen, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfNbmaNbrStatus, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbmaNbrPermanence, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrHelloSuppressed, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id, ospf_nbr_id, context_name], Unique: true, Type: BTREE }
ospf_ports:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospf_port_id, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfIfIpAddress, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfAddressLessIf, Type: int(11), 'Null': false, Extra: '' }
- { Field: ospfIfAreaId, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfIfType, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfAdminStat, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfRtrPriority, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfTransitDelay, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfRetransInterval, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfHelloInterval, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfRtrDeadInterval, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfPollInterval, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfState, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfDesignatedRouter, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfBackupDesignatedRouter, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfEvents, Type: int(11), 'Null': true, Extra: '' }
- { Field: ospfIfAuthKey, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: ospfIfStatus, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfMulticastForwarding, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfDemand, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: ospfIfAuthType, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id, ospf_port_id, context_name], Unique: true, Type: BTREE }
packages:
Columns:
- { Field: pkg_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: name, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: manager, Type: varchar(16), 'Null': false, Extra: '', Default: '1' }
- { Field: status, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: version, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: build, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: arch, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: size, Type: bigint(20), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [pkg_id], Unique: true, Type: BTREE }
unique_key: { Name: unique_key, Columns: [device_id, name, manager, arch, version, build], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
pdb_ix:
Columns:
- { Field: pdb_ix_id, Type: 'int(10) unsigned', 'Null': false, Extra: auto_increment }
- { Field: ix_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: asn, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: timestamp, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [pdb_ix_id], Unique: true, Type: BTREE }
pdb_ix_peers:
Columns:
- { Field: pdb_ix_peers_id, Type: 'int(10) unsigned', 'Null': false, Extra: auto_increment }
- { Field: ix_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: peer_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: remote_asn, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: remote_ipaddr4, Type: varchar(15), 'Null': true, Extra: '' }
- { Field: remote_ipaddr6, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: name, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: timestamp, Type: 'int(10) unsigned', 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [pdb_ix_peers_id], Unique: true, Type: BTREE }
perf_times:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: type, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: doing, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: start, Type: int(11), 'Null': false, Extra: '' }
- { Field: duration, Type: 'double(8,2)', 'Null': false, Extra: '' }
- { Field: devices, Type: int(11), 'Null': false, Extra: '' }
- { Field: poller, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
type: { Name: type, Columns: [type], Unique: false, Type: BTREE }
plugins:
Columns:
- { Field: plugin_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: plugin_name, Type: varchar(60), 'Null': false, Extra: '' }
- { Field: plugin_active, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [plugin_id], Unique: true, Type: BTREE }
pollers:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: poller_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: last_polled, Type: datetime, 'Null': false, Extra: '' }
- { Field: devices, Type: int(11), 'Null': false, Extra: '' }
- { Field: time_taken, Type: double, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [poller_name], Unique: true, Type: BTREE }
id: { Name: id, Columns: [id], Unique: false, Type: BTREE }
poller_cluster:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: node_id, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: poller_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: poller_version, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: poller_groups, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: last_report, Type: datetime, 'Null': false, Extra: '' }
- { Field: master, Type: tinyint(1), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [node_id], Unique: true, Type: BTREE }
id: { Name: id, Columns: [id], Unique: true, Type: BTREE }
poller_cluster_stats:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: parent_poller, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: poller_type, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: depth, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: devices, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: worker_seconds, Type: 'double unsigned', 'Null': false, Extra: '' }
- { Field: workers, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: frequency, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [parent_poller, poller_type], Unique: true, Type: BTREE }
id: { Name: id, Columns: [id], Unique: true, Type: BTREE }
poller_groups:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: group_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: descr, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
ports:
Columns:
- { Field: port_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: port_descr_type, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: port_descr_descr, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: port_descr_circuit, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: port_descr_speed, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: port_descr_notes, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: ifDescr, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: ifName, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: portName, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: ifIndex, Type: bigint(20), 'Null': true, Extra: '', Default: '0' }
- { Field: ifSpeed, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifConnectorPresent, Type: varchar(12), 'Null': true, Extra: '' }
- { Field: ifPromiscuousMode, Type: varchar(12), 'Null': true, Extra: '' }
- { Field: ifHighSpeed, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifOperStatus, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: ifOperStatus_prev, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: ifAdminStatus, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: ifAdminStatus_prev, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: ifDuplex, Type: varchar(12), 'Null': true, Extra: '' }
- { Field: ifMtu, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifType, Type: text, 'Null': true, Extra: '' }
- { Field: ifAlias, Type: text, 'Null': true, Extra: '' }
- { Field: ifPhysAddress, Type: text, 'Null': true, Extra: '' }
- { Field: ifHardType, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: ifLastChange, Type: 'bigint(20) unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: ifVlan, Type: varchar(8), 'Null': false, Extra: '', Default: '' }
- { Field: ifTrunk, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: ifVrf, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: counter_in, Type: int(11), 'Null': true, Extra: '' }
- { Field: counter_out, Type: int(11), 'Null': true, Extra: '' }
- { Field: ignore, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: disabled, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: detailed, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: pagpOperationMode, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: pagpPortState, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: pagpPartnerDeviceId, Type: varchar(48), 'Null': true, Extra: '' }
- { Field: pagpPartnerLearnMethod, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: pagpPartnerIfIndex, Type: int(11), 'Null': true, Extra: '' }
- { Field: pagpPartnerGroupIfIndex, Type: int(11), 'Null': true, Extra: '' }
- { Field: pagpPartnerDeviceName, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: pagpEthcOperationMode, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: pagpDeviceId, Type: varchar(48), 'Null': true, Extra: '' }
- { Field: pagpGroupIfIndex, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifInUcastPkts, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInUcastPkts_prev, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInUcastPkts_delta, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInUcastPkts_rate, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts_prev, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts_delta, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts_rate, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors_prev, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors_delta, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors_rate, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors_prev, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors_delta, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors_rate, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets_prev, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets_delta, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets_rate, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets_prev, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets_delta, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets_rate, Type: 'bigint(20) unsigned', 'Null': true, Extra: '' }
- { Field: poll_time, Type: int(11), 'Null': true, Extra: '' }
- { Field: poll_prev, Type: int(11), 'Null': true, Extra: '' }
- { Field: poll_period, Type: int(11), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_id], Unique: true, Type: BTREE }
device_ifIndex: { Name: device_ifIndex, Columns: [device_id, ifIndex], Unique: true, Type: BTREE }
if_2: { Name: if_2, Columns: [ifDescr], Unique: false, Type: BTREE }
ports_adsl:
Columns:
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_adsl_updated, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: adslLineCoding, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: adslLineType, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: adslAtucInvVendorID, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: adslAtucInvVersionNumber, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: adslAtucCurrSnrMgn, Type: 'decimal(5,1)', 'Null': false, Extra: '' }
- { Field: adslAtucCurrAtn, Type: 'decimal(5,1)', 'Null': false, Extra: '' }
- { Field: adslAtucCurrOutputPwr, Type: 'decimal(5,1)', 'Null': false, Extra: '' }
- { Field: adslAtucCurrAttainableRate, Type: int(11), 'Null': false, Extra: '' }
- { Field: adslAtucChanCurrTxRate, Type: int(11), 'Null': false, Extra: '' }
- { Field: adslAturInvSerialNumber, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: adslAturInvVendorID, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: adslAturInvVersionNumber, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: adslAturChanCurrTxRate, Type: int(11), 'Null': false, Extra: '' }
- { Field: adslAturCurrSnrMgn, Type: 'decimal(5,1)', 'Null': false, Extra: '' }
- { Field: adslAturCurrAtn, Type: 'decimal(5,1)', 'Null': false, Extra: '' }
- { Field: adslAturCurrOutputPwr, Type: 'decimal(5,1)', 'Null': false, Extra: '' }
- { Field: adslAturCurrAttainableRate, Type: int(11), 'Null': false, Extra: '' }
Indexes:
interface_id: { Name: interface_id, Columns: [port_id], Unique: true, Type: BTREE }
ports_fdb:
Columns:
- { Field: ports_fdb_id, Type: 'bigint(20) unsigned', 'Null': false, Extra: auto_increment }
- { Field: port_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: mac_address, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: vlan_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ports_fdb_id], Unique: true, Type: BTREE }
mac_address: { Name: mac_address, Columns: [mac_address], Unique: false, Type: BTREE }
ports_fdb_port_id_index: { Name: ports_fdb_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
ports_fdb_device_id_index: { Name: ports_fdb_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
ports_fdb_vlan_id_index: { Name: ports_fdb_vlan_id_index, Columns: [vlan_id], Unique: false, Type: BTREE }
ports_perms:
Columns:
- { Field: user_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: access_level, Type: int(11), 'Null': false, Extra: '' }
ports_stack:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id_high, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id_low, Type: int(11), 'Null': false, Extra: '' }
- { Field: ifStackStatus, Type: varchar(32), 'Null': false, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id, port_id_high, port_id_low], Unique: true, Type: BTREE }
ports_statistics:
Columns:
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: ifInNUcastPkts, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInNUcastPkts_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInNUcastPkts_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInNUcastPkts_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifInDiscards, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInDiscards_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInDiscards_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInDiscards_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifOutDiscards, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutDiscards_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutDiscards_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutDiscards_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts_rate, Type: int(11), 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts_prev, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts_delta, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts_rate, Type: int(11), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_id], Unique: true, Type: BTREE }
ports_stp:
Columns:
- { Field: port_stp_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: priority, Type: 'tinyint(3) unsigned', 'Null': false, Extra: '' }
- { Field: state, Type: varchar(11), 'Null': false, Extra: '' }
- { Field: enable, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: pathCost, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: designatedRoot, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: designatedCost, Type: 'smallint(5) unsigned', 'Null': false, Extra: '' }
- { Field: designatedBridge, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: designatedPort, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: forwardTransitions, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_stp_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id, port_id], Unique: true, Type: BTREE }
ports_vlans:
Columns:
- { Field: port_vlan_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: vlan, Type: int(11), 'Null': false, Extra: '' }
- { Field: baseport, Type: int(11), 'Null': false, Extra: '' }
- { Field: priority, Type: bigint(32), 'Null': false, Extra: '' }
- { Field: state, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: cost, Type: int(11), 'Null': false, Extra: '' }
- { Field: untagged, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_vlan_id], Unique: true, Type: BTREE }
unique: { Name: unique, Columns: [device_id, port_id, vlan], Unique: true, Type: BTREE }
processes:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: pid, Type: int(255), 'Null': false, Extra: '' }
- { Field: vsz, Type: int(255), 'Null': false, Extra: '' }
- { Field: rss, Type: int(255), 'Null': false, Extra: '' }
- { Field: cputime, Type: varchar(12), 'Null': false, Extra: '' }
- { Field: user, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: command, Type: text, 'Null': false, Extra: '' }
Indexes:
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
processors:
Columns:
- { Field: processor_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: entPhysicalIndex, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: hrDeviceIndex, Type: int(11), 'Null': true, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: processor_oid, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: processor_index, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: processor_type, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: processor_usage, Type: int(11), 'Null': false, Extra: '' }
- { Field: processor_descr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: processor_precision, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: processor_perc_warn, Type: int(11), 'Null': true, Extra: '', Default: '75' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [processor_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
device_id_2: { Name: device_id_2, Columns: [device_id], Unique: false, Type: BTREE }
proxmox:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: vmid, Type: int(11), 'Null': false, Extra: '' }
- { Field: cluster, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: description, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: last_seen, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
cluster_vm: { Name: cluster_vm, Columns: [cluster, vmid], Unique: true, Type: BTREE }
proxmox_ports:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: vm_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port, Type: varchar(10), 'Null': false, Extra: '' }
- { Field: last_seen, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
vm_port: { Name: vm_port, Columns: [vm_id, port], Unique: true, Type: BTREE }
pseudowires:
Columns:
- { Field: pseudowire_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: port_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: peer_device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: peer_ldp_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: cpwVcID, Type: int(11), 'Null': false, Extra: '' }
- { Field: cpwOid, Type: int(11), 'Null': false, Extra: '' }
- { Field: pw_type, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: pw_psntype, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: pw_local_mtu, Type: int(11), 'Null': false, Extra: '' }
- { Field: pw_peer_mtu, Type: int(11), 'Null': false, Extra: '' }
- { Field: pw_descr, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [pseudowire_id], Unique: true, Type: BTREE }
route:
Columns:
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: ipRouteDest, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: ipRouteIfIndex, Type: varchar(256), 'Null': true, Extra: '' }
- { Field: ipRouteMetric, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: ipRouteNextHop, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: ipRouteType, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: ipRouteProto, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: discoveredAt, Type: int(11), 'Null': false, Extra: '' }
- { Field: ipRouteMask, Type: varchar(256), 'Null': false, Extra: '' }
Indexes:
device: { Name: device, Columns: [device_id, context_name, ipRouteDest, ipRouteNextHop], Unique: false, Type: BTREE }
sensors:
Columns:
- { Field: sensor_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: sensor_deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: sensor_class, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: poller_type, Type: varchar(16), 'Null': false, Extra: '', Default: snmp }
- { Field: sensor_oid, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: sensor_index, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: sensor_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: sensor_descr, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: sensor_divisor, Type: bigint(20), 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_multiplier, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_current, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit_warn, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit_low, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit_low_warn, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_alert, Type: tinyint(1), 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_custom, Type: 'enum(''No'',''Yes'')', 'Null': false, Extra: '', Default: 'No' }
- { Field: entPhysicalIndex, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: entPhysicalIndex_measured, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: lastupdate, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
- { Field: sensor_prev, Type: float, 'Null': true, Extra: '' }
- { Field: user_func, Type: varchar(100), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sensor_id], Unique: true, Type: BTREE }
sensor_host: { Name: sensor_host, Columns: [device_id], Unique: false, Type: BTREE }
sensor_class: { Name: sensor_class, Columns: [sensor_class], Unique: false, Type: BTREE }
sensor_type: { Name: sensor_type, Columns: [sensor_type], Unique: false, Type: BTREE }
sensors_to_state_indexes:
Columns:
- { Field: sensors_to_state_translations_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: sensor_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: state_index_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sensors_to_state_translations_id], Unique: true, Type: BTREE }
sensor_id_state_index_id: { Name: sensor_id_state_index_id, Columns: [sensor_id, state_index_id], Unique: true, Type: BTREE }
state_index_id: { Name: state_index_id, Columns: [state_index_id], Unique: false, Type: BTREE }
services:
Columns:
- { Field: service_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: service_ip, Type: text, 'Null': false, Extra: '' }
- { Field: service_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: service_desc, Type: text, 'Null': false, Extra: '' }
- { Field: service_param, Type: text, 'Null': false, Extra: '' }
- { Field: service_ignore, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: service_status, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: service_changed, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: service_message, Type: text, 'Null': false, Extra: '' }
- { Field: service_disabled, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: service_ds, Type: text, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [service_id], Unique: true, Type: BTREE }
service_host: { Name: service_host, Columns: [device_id], Unique: false, Type: BTREE }
session:
Columns:
- { Field: session_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: session_username, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: session_value, Type: varchar(60), 'Null': false, Extra: '' }
- { Field: session_token, Type: varchar(60), 'Null': false, Extra: '' }
- { Field: session_auth, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: session_expiry, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [session_id], Unique: true, Type: BTREE }
session_value: { Name: session_value, Columns: [session_value], Unique: true, Type: BTREE }
slas:
Columns:
- { Field: sla_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: sla_nr, Type: int(11), 'Null': false, Extra: '' }
- { Field: owner, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: tag, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: rtt_type, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: status, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: opstatus, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sla_id], Unique: true, Type: BTREE }
unique_key: { Name: unique_key, Columns: [device_id, sla_nr], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
state_indexes:
Columns:
- { Field: state_index_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: state_name, Type: varchar(64), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [state_index_id], Unique: true, Type: BTREE }
state_name: { Name: state_name, Columns: [state_name], Unique: true, Type: BTREE }
state_translations:
Columns:
- { Field: state_translation_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: state_index_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: state_descr, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: state_draw_graph, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: state_value, Type: smallint(5), 'Null': false, Extra: '', Default: '0' }
- { Field: state_generic_value, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: state_lastupdated, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [state_translation_id], Unique: true, Type: BTREE }
state_index_id_value: { Name: state_index_id_value, Columns: [state_index_id, state_value], Unique: true, Type: BTREE }
storage:
Columns:
- { Field: storage_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: storage_mib, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: storage_index, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: storage_type, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: storage_descr, Type: text, 'Null': false, Extra: '' }
- { Field: storage_size, Type: bigint(20), 'Null': false, Extra: '' }
- { Field: storage_units, Type: int(11), 'Null': false, Extra: '' }
- { Field: storage_used, Type: bigint(20), 'Null': false, Extra: '', Default: '0' }
- { Field: storage_free, Type: bigint(20), 'Null': false, Extra: '', Default: '0' }
- { Field: storage_perc, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: storage_perc_warn, Type: int(11), 'Null': true, Extra: '', Default: '60' }
- { Field: storage_deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [storage_id], Unique: true, Type: BTREE }
index_unique: { Name: index_unique, Columns: [device_id, storage_mib, storage_index], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
device_id_2: { Name: device_id_2, Columns: [device_id], Unique: false, Type: BTREE }
stp:
Columns:
- { Field: stp_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: rootBridge, Type: tinyint(1), 'Null': false, Extra: '' }
- { Field: bridgeAddress, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: protocolSpecification, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: priority, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: timeSinceTopologyChange, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: topChanges, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: designatedRoot, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: rootCost, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: rootPort, Type: int(11), 'Null': true, Extra: '' }
- { Field: maxAge, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: helloTime, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: holdTime, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: forwardDelay, Type: mediumint(9), 'Null': false, Extra: '' }
- { Field: bridgeMaxAge, Type: smallint(6), 'Null': false, Extra: '' }
- { Field: bridgeHelloTime, Type: smallint(6), 'Null': false, Extra: '' }
- { Field: bridgeForwardDelay, Type: smallint(6), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [stp_id], Unique: true, Type: BTREE }
stp_host: { Name: stp_host, Columns: [device_id], Unique: false, Type: BTREE }
syslog:
Columns:
- { Field: device_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: facility, Type: varchar(10), 'Null': true, Extra: '' }
- { Field: priority, Type: varchar(10), 'Null': true, Extra: '' }
- { Field: level, Type: varchar(10), 'Null': true, Extra: '' }
- { Field: tag, Type: varchar(10), 'Null': true, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: program, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: msg, Type: text, 'Null': true, Extra: '' }
- { Field: seq, Type: 'bigint(20) unsigned', 'Null': false, Extra: auto_increment }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [seq], Unique: true, Type: BTREE }
datetime: { Name: datetime, Columns: [timestamp], Unique: false, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
program: { Name: program, Columns: [program], Unique: false, Type: BTREE }
priority_level: { Name: priority_level, Columns: [priority, level], Unique: false, Type: BTREE }
tnmsneinfo:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: neID, Type: int(32), 'Null': false, Extra: '' }
- { Field: neType, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: neName, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: neLocation, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: neAlarm, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: neOpMode, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: neOpState, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
neID: { Name: neID, Columns: [neID], Unique: false, Type: BTREE }
toner:
Columns:
- { Field: toner_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: toner_index, Type: int(11), 'Null': false, Extra: '' }
- { Field: toner_type, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: toner_oid, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: toner_descr, Type: varchar(32), 'Null': false, Extra: '', Default: '' }
- { Field: toner_capacity, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: toner_current, Type: int(11), 'Null': false, Extra: '', Default: '0' }
- { Field: toner_capacity_oid, Type: varchar(64), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [toner_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
Added Alert Transports Mapping (#8660) Hello all, I guess this is the second version of a more fully fleshed out alert contact mapping feature. The old one was GH-8507 Transports to convert: - [x] API - [x] Cisco Spark - [x] Elasticsearch - [x] GitLab - [x] Philips Hue - [x] Jira - [x] Mail - [ ] ~~PagerDuty~~ - Requires a callback so leaving for now - [x] Nagios - [x] IRC - [x] Discord - [x] Rocket.chat - [x] Hipchat - [x] Pushover - [x] Boxcar - [x] Telegram - [x] Pushbullet - [x] VictorOps - [x] OpsGenie - [x] Clickatell - [x] PlaySMS - [x] Canopsis - [x] osTicket - [x] Microsoft Teams - [x] SMSEagle - [x] Syslog - [x] Slack The intention is for this feature to have three different levels to it: 1. Alert rule to an alert contact mapping (where the code is at now) 2. Alert rule to an alert group (made up of alert contacts) mapping 3. Alert contact mapping to different transport configurations. There will be three transport configuration types. 1. Default (the configuration that is held in the configs table) 2. None (no transport configuration - will explain later) 3. Other (a configuration that will be defined in a different able) Take Mail transport for example. It can either be of a "default" or "other" configuration. The hope is that in the future, users can send mail from different mail servers if they wish. However, for ciscospark which requires a room ID and an api-token, I've decided that it has no transport configuration. Most likely, every alert contact will contain a different room-id and an api-token - which is why it has the transport config of "none". For other transports : I am not familiar with them, so hopefully the community can add support for these. I can definitely help! To add support for each transport will require several things: - addition to the UI - addition to forms/alert-contacts.inc.php - modifications to its object class Screenshots ![image](https://user-images.githubusercontent.com/28970851/39594533-2092ce9e-4eca-11e8-9c5d-cd002ece1425.png) ![image](https://user-images.githubusercontent.com/28970851/39594544-276e9856-4eca-11e8-80cc-82789ee0b2b2.png) ![image](https://user-images.githubusercontent.com/28970851/39594553-2fdf528c-4eca-11e8-8a40-4f149e767054.png) I'm not sure if this is the best way to do things, so please let me know if there's a better way to structure the code! Any comments on code/db schema,/UI etc is welcome and encouraged! The UI is heavily based on alert rules (front end is not my strong suit). And parts of the code are based on the code that was written for alert rules. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-07-21 13:34:59 -06:00
transport_group_transport:
Columns:
- { Field: transport_group_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: transport_id, Type: int(11), 'Null': false, Extra: '' }
ucd_diskio:
Columns:
- { Field: diskio_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: diskio_index, Type: int(11), 'Null': false, Extra: '' }
- { Field: diskio_descr, Type: varchar(32), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [diskio_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
device_id_2: { Name: device_id_2, Columns: [device_id], Unique: false, Type: BTREE }
users:
Columns:
- { Field: user_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: username, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: password, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: realname, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: email, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: descr, Type: char(30), 'Null': false, Extra: '' }
- { Field: level, Type: tinyint(4), 'Null': false, Extra: '', Default: '0' }
- { Field: can_modify_passwd, Type: tinyint(4), 'Null': false, Extra: '', Default: '1' }
- { Field: created_at, Type: timestamp, 'Null': false, Extra: '', Default: '1970-01-02 00:00:01' }
- { Field: updated_at, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: remember_token, Type: varchar(100), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [user_id], Unique: true, Type: BTREE }
username: { Name: username, Columns: [username], Unique: true, Type: BTREE }
users_prefs:
Columns:
- { Field: user_id, Type: int(16), 'Null': false, Extra: '' }
- { Field: pref, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: value, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
user_id.pref: { Name: user_id.pref, Columns: [user_id, pref], Unique: true, Type: BTREE }
users_widgets:
Columns:
- { Field: user_widget_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: user_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: widget_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: col, Type: tinyint(4), 'Null': false, Extra: '' }
- { Field: row, Type: tinyint(4), 'Null': false, Extra: '' }
- { Field: size_x, Type: tinyint(4), 'Null': false, Extra: '' }
- { Field: size_y, Type: tinyint(4), 'Null': false, Extra: '' }
- { Field: title, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: refresh, Type: tinyint(4), 'Null': false, Extra: '', Default: '60' }
- { Field: settings, Type: text, 'Null': false, Extra: '' }
- { Field: dashboard_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [user_widget_id], Unique: true, Type: BTREE }
user_id: { Name: user_id, Columns: [user_id, widget_id], Unique: false, Type: BTREE }
vlans:
Columns:
- { Field: vlan_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': true, Extra: '' }
- { Field: vlan_vlan, Type: int(11), 'Null': true, Extra: '' }
- { Field: vlan_domain, Type: int(11), 'Null': true, Extra: '' }
- { Field: vlan_name, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: vlan_type, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: vlan_mtu, Type: int(11), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [vlan_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id, vlan_vlan], Unique: false, Type: BTREE }
vminfo:
Columns:
- { Field: id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: vm_type, Type: varchar(16), 'Null': false, Extra: '', Default: vmware }
- { Field: vmwVmVMID, Type: int(11), 'Null': false, Extra: '' }
- { Field: vmwVmDisplayName, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmGuestOS, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmMemSize, Type: int(11), 'Null': false, Extra: '' }
- { Field: vmwVmCpus, Type: int(11), 'Null': false, Extra: '' }
- { Field: vmwVmState, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
vmwVmVMID: { Name: vmwVmVMID, Columns: [vmwVmVMID], Unique: false, Type: BTREE }
vrfs:
Columns:
- { Field: vrf_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: vrf_oid, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: vrf_name, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: mplsVpnVrfRouteDistinguisher, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: mplsVpnVrfDescription, Type: text, 'Null': false, Extra: '' }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [vrf_id], Unique: true, Type: BTREE }
device_id: { Name: device_id, Columns: [device_id], Unique: false, Type: BTREE }
vrf_lite_cisco:
Columns:
- { Field: vrf_lite_cisco_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: int(11), 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: intance_name, Type: varchar(128), 'Null': true, Extra: '', Default: '' }
- { Field: vrf_name, Type: varchar(128), 'Null': true, Extra: '', Default: Default }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [vrf_lite_cisco_id], Unique: true, Type: BTREE }
vrf: { Name: vrf, Columns: [vrf_name], Unique: false, Type: BTREE }
context: { Name: context, Columns: [context_name], Unique: false, Type: BTREE }
device: { Name: device, Columns: [device_id], Unique: false, Type: BTREE }
mix: { Name: mix, Columns: [device_id, context_name, vrf_name], Unique: false, Type: BTREE }
widgets:
Columns:
- { Field: widget_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: widget_title, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: widget, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: base_dimensions, Type: varchar(10), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [widget_id], Unique: true, Type: BTREE }
widget: { Name: widget, Columns: [widget], Unique: true, Type: BTREE }
feature: Wireless Sensors Overhaul (#6471) * feature: Wireless Sensors Includes client counts for ios and unifi Graphing could use some improvement. Alerting and threshold ui not implemented WIP: starting OO based wireless sensors. Class based functionality working remove old functional files add schema file discovery needs to be enabled, not polling fix up schema fix Unifi discovery not returning an array Add some debug when discovering a sensor. Fix style. Add missing semicolin Add a null object (Generic) for OS. Fill out some phpdocs Re-organized code Each sensor type now has it's own discovery and polling interface Custom polling tested with Unifi CCQ Left to do: Implement UI (Graphs and Custom thresholds) Alerting Testing Fix event message text Remove runDiscovery and runPolling from OS, they are unused and don't belong there. Cleanups/docs Missed this file. Remove the requirement to fetch the current value to check validity. Do that automatically if current is not specified A few cleanups here and there First pass at graphing. device_ and wireless_ graphs added. Add RouterOS support Singleton OS instance isn't required right now. Remove that to allow some memory to be freed. Add wireless to the device list metrics. Make all metrics clickable Tweak graphs a bit Implement limit configuration page. Use sensors page as common code instead of duplicating. Clean up some javascript interactions: Allow enter on values to save. Cancel if update is not needed. Enable the clear custom button after setting a custom value. Add some wireless alert rules to the library. Add documentation. Add unifi client counts by ssid in addition to radio. Optimize Sensor polling a bit. Add HP MSM clients support (for full controller) Fix function accessibility Formalize the discovery and poller interfaces. Add Xirrus clients and noise floor move module interfaces to a more appropriate place. push caching code up to os, unsure about this do to the limitations No point in selectively enabling wireless discovery. We only discover if the device supports something. Add RSSI, Power, and Rate. Add these sensors for Ubnt Airos. Clean up some copyrights. Reduce the amount of files need to add new types. Leave graph files for consistency and to allow customization. Remove the old wifi clients graph completely. ciscowlc should have improved counts (total and per-ssid) Schema didn't get added. Impelement the rest of the AirOS sensors Reformat and re-organize the Airos.php class. Add several UBNT AirFiber sensors A few fixes add links to the section headers Add HP MSM mibs. * Schema file got dropped in rebase. * Add wireless menu to view sensors across all devices. Icons in the menu need help :/ * Add HeliOS, Mimosa, and Siklu support Sensors added SNR + Noise * Add power and utilization to Unifi * Update polling to prefetch all sensor data in a few snmp requests as possible * Add Extendair: tx+rx power, aggregate rate, frequency * Add a check for duplicate sensors in discovery. Just print an error for now. * Add Bit Error Ratio (named error-ratio to allow for bit error rate to be added if needed) Fix an incorrect link in the wireless sensors table * Add error rate and change all bps and Hz to use si units * Fixes to limits and frequency display * Fix overview graph frequency display A few decimal place tweaks * Don't allow switching sensor and wireless-sensor graphs, it doesn't work. Change individual distance graphs to use si units * Go through the OS and make sure I got all the sensors I can (probably missed some still) Because pollWirelessChannelAsFrequency() is generic and a little complex, so pull it up to OS. Message to help developers adding supports that don't return an array from discover functions. * Fix some issues * Remove noise and signal for now at least A couple more fixes Add a notification * Oopsie * Bonus AirFiber sensors
2017-05-01 23:49:11 -05:00
wireless_sensors:
Columns:
- { Field: sensor_id, Type: int(11), 'Null': false, Extra: auto_increment }
- { Field: sensor_deleted, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: sensor_class, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int(11) unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: sensor_index, Type: varchar(64), 'Null': true, Extra: '' }
- { Field: sensor_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: sensor_descr, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: sensor_divisor, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_multiplier, Type: int(11), 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_aggregator, Type: varchar(16), 'Null': false, Extra: '', Default: sum }
- { Field: sensor_current, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_prev, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit_warn, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit_low, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_limit_low_warn, Type: float, 'Null': true, Extra: '' }
- { Field: sensor_alert, Type: tinyint(1), 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_custom, Type: 'enum(''No'',''Yes'')', 'Null': false, Extra: '', Default: 'No' }
- { Field: entPhysicalIndex, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: entPhysicalIndex_measured, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: lastupdate, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: sensor_oids, Type: text, 'Null': false, Extra: '' }
- { Field: access_point_id, Type: int(11), 'Null': true, Extra: '' }
feature: Wireless Sensors Overhaul (#6471) * feature: Wireless Sensors Includes client counts for ios and unifi Graphing could use some improvement. Alerting and threshold ui not implemented WIP: starting OO based wireless sensors. Class based functionality working remove old functional files add schema file discovery needs to be enabled, not polling fix up schema fix Unifi discovery not returning an array Add some debug when discovering a sensor. Fix style. Add missing semicolin Add a null object (Generic) for OS. Fill out some phpdocs Re-organized code Each sensor type now has it's own discovery and polling interface Custom polling tested with Unifi CCQ Left to do: Implement UI (Graphs and Custom thresholds) Alerting Testing Fix event message text Remove runDiscovery and runPolling from OS, they are unused and don't belong there. Cleanups/docs Missed this file. Remove the requirement to fetch the current value to check validity. Do that automatically if current is not specified A few cleanups here and there First pass at graphing. device_ and wireless_ graphs added. Add RouterOS support Singleton OS instance isn't required right now. Remove that to allow some memory to be freed. Add wireless to the device list metrics. Make all metrics clickable Tweak graphs a bit Implement limit configuration page. Use sensors page as common code instead of duplicating. Clean up some javascript interactions: Allow enter on values to save. Cancel if update is not needed. Enable the clear custom button after setting a custom value. Add some wireless alert rules to the library. Add documentation. Add unifi client counts by ssid in addition to radio. Optimize Sensor polling a bit. Add HP MSM clients support (for full controller) Fix function accessibility Formalize the discovery and poller interfaces. Add Xirrus clients and noise floor move module interfaces to a more appropriate place. push caching code up to os, unsure about this do to the limitations No point in selectively enabling wireless discovery. We only discover if the device supports something. Add RSSI, Power, and Rate. Add these sensors for Ubnt Airos. Clean up some copyrights. Reduce the amount of files need to add new types. Leave graph files for consistency and to allow customization. Remove the old wifi clients graph completely. ciscowlc should have improved counts (total and per-ssid) Schema didn't get added. Impelement the rest of the AirOS sensors Reformat and re-organize the Airos.php class. Add several UBNT AirFiber sensors A few fixes add links to the section headers Add HP MSM mibs. * Schema file got dropped in rebase. * Add wireless menu to view sensors across all devices. Icons in the menu need help :/ * Add HeliOS, Mimosa, and Siklu support Sensors added SNR + Noise * Add power and utilization to Unifi * Update polling to prefetch all sensor data in a few snmp requests as possible * Add Extendair: tx+rx power, aggregate rate, frequency * Add a check for duplicate sensors in discovery. Just print an error for now. * Add Bit Error Ratio (named error-ratio to allow for bit error rate to be added if needed) Fix an incorrect link in the wireless sensors table * Add error rate and change all bps and Hz to use si units * Fixes to limits and frequency display * Fix overview graph frequency display A few decimal place tweaks * Don't allow switching sensor and wireless-sensor graphs, it doesn't work. Change individual distance graphs to use si units * Go through the OS and make sure I got all the sensors I can (probably missed some still) Because pollWirelessChannelAsFrequency() is generic and a little complex, so pull it up to OS. Message to help developers adding supports that don't return an array from discover functions. * Fix some issues * Remove noise and signal for now at least A couple more fixes Add a notification * Oopsie * Bonus AirFiber sensors
2017-05-01 23:49:11 -05:00
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sensor_id], Unique: true, Type: BTREE }
sensor_class: { Name: sensor_class, Columns: [sensor_class], Unique: false, Type: BTREE }
sensor_host: { Name: sensor_host, Columns: [device_id], Unique: false, Type: BTREE }
sensor_type: { Name: sensor_type, Columns: [sensor_type], Unique: false, Type: BTREE }