librenms/misc/db_schema.yaml

2043 lines
138 KiB
YAML
Raw Normal View History

access_points:
Columns:
- { Field: accesspoint_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: radio_number, Type: tinyint, 'Null': true, Extra: '' }
- { Field: type, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: mac_addr, Type: varchar(24), 'Null': false, Extra: '' }
- { Field: deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: channel, Type: 'tinyint unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: txpow, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: radioutil, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: numasoclients, Type: smallint, 'Null': false, Extra: '', Default: '0' }
- { Field: nummonclients, Type: smallint, 'Null': false, Extra: '', Default: '0' }
- { Field: numactbssid, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: nummonbssid, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: interference, Type: 'tinyint unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [accesspoint_id], Unique: true, Type: BTREE }
access_points_deleted_index: { Name: access_points_deleted_index, Columns: [deleted], Unique: false, Type: BTREE }
name: { Name: name, Columns: [name, radio_number], Unique: false, Type: BTREE }
alerts:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: rule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: state, Type: int, 'Null': false, Extra: '' }
- { Field: alerted, Type: int, 'Null': false, Extra: '' }
- { Field: open, Type: int, 'Null': false, Extra: '' }
2018-04-26 16:29:51 +00:00
- { Field: note, Type: text, 'Null': true, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: info, Type: text, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alerts_device_id_index: { Name: alerts_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
alerts_device_id_rule_id_unique: { Name: alerts_device_id_rule_id_unique, Columns: [device_id, rule_id], Unique: true, Type: BTREE }
alerts_rule_id_index: { Name: alerts_rule_id_index, Columns: [rule_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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', '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
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_device_map_rule_id_device_id_unique: { Name: alert_device_map_rule_id_device_id_unique, Columns: [rule_id, device_id], Unique: true, 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_group_map:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: group_id, Type: 'int unsigned', '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
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_group_map_rule_id_group_id_unique: { Name: alert_group_map_rule_id_group_id_unique, Columns: [rule_id, group_id], Unique: true, Type: BTREE }
alert_location_map:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: location_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_location_map_rule_id_location_id_uindex: { Name: alert_location_map_rule_id_location_id_uindex, Columns: [rule_id, location_id], Unique: true, Type: BTREE }
alert_log:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: state, Type: int, '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 }
alert_log_device_id_index: { Name: alert_log_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
alert_log_rule_id_index: { Name: alert_log_rule_id_index, Columns: [rule_id], Unique: false, Type: BTREE }
alert_log_time_logged_index: { Name: alert_log_time_logged_index, Columns: [time_logged], Unique: false, Type: BTREE }
alert_rules:
Columns:
- { Field: id, Type: 'int unsigned', '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, '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: '' }
- { Field: invert_map, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
alert_rules_name_unique: { Name: alert_rules_name_unique, Columns: [name], Unique: true, Type: BTREE }
alert_schedulables:
Columns:
- { Field: item_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: schedule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: alert_schedulable_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: alert_schedulable_type, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [item_id], Unique: true, Type: BTREE }
alert_schedulables_schedule_id_index: { Name: alert_schedulables_schedule_id_index, Columns: [schedule_id], Unique: false, Type: BTREE }
schedulable_morph_index: { Name: schedulable_morph_index, Columns: [alert_schedulable_type, alert_schedulable_id], Unique: false, Type: BTREE }
alert_schedule:
Columns:
- { Field: schedule_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: recurring, Type: 'tinyint 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: 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_templates:
Columns:
- { Field: id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: alert_templates_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: alert_rule_id, Type: 'int unsigned', '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 19:34:59 +00:00
alert_transports:
Columns:
- { Field: transport_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
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 19:34:59 +00:00
- { 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, 'Null': false, Extra: '', Default: '0' }
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 19:34:59 +00:00
- { 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 unsigned', 'Null': false, Extra: auto_increment }
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 19:34:59 +00:00
- { 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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: rule_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: transport_or_group_id, Type: 'int unsigned', 'Null': false, Extra: '' }
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 19:34:59 +00:00
- { 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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: token_hash, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: description, Type: varchar(100), 'Null': false, Extra: '' }
- { Field: disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
api_tokens_token_hash_unique: { Name: api_tokens_token_hash_unique, Columns: [token_hash], Unique: true, Type: BTREE }
applications:
Columns:
- { Field: app_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, '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 }
applications_device_id_app_type_unique: { Name: applications_device_id_app_type_unique, Columns: [device_id, app_type], Unique: true, Type: BTREE }
application_metrics:
Columns:
- { Field: app_id, Type: 'int unsigned', 'Null': false, Extra: '' }
2020-05-22 21:02:19 +00:00
- { Field: metric, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: value, Type: double, 'Null': true, Extra: '' }
- { Field: value_prev, Type: double, 'Null': true, Extra: '' }
Indexes:
application_metrics_app_id_metric_unique: { Name: application_metrics_app_id_metric_unique, Columns: [app_id, metric], Unique: true, Type: BTREE }
authlog:
Columns:
- { Field: id, Type: 'int unsigned', '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 }
availability:
Columns:
- { Field: availability_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: duration, Type: bigint, 'Null': false, Extra: '' }
- { Field: availability_perc, Type: 'double(6,6)', 'Null': false, Extra: '', Default: '0.000000' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [availability_id], Unique: true, Type: BTREE }
availability_device_id_index: { Name: availability_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
availability_device_id_duration_unique: { Name: availability_device_id_duration_unique, Columns: [device_id, duration], Unique: true, Type: BTREE }
bgpPeers:
Columns:
- { Field: bgpPeer_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: vrf_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: astext, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: bgpPeerIdentifier, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerRemoteAs, Type: bigint, 'Null': false, Extra: '' }
- { Field: bgpPeerState, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerAdminStatus, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerLastErrorCode, Type: int, 'Null': true, Extra: '' }
- { Field: bgpPeerLastErrorSubCode, Type: int, 'Null': true, Extra: '' }
- { Field: bgpPeerLastErrorText, Type: varchar(254), 'Null': true, Extra: '' }
- { Field: bgpLocalAddr, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerRemoteAddr, Type: text, 'Null': false, Extra: '' }
- { Field: bgpPeerDescr, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: bgpPeerInUpdates, Type: int, 'Null': false, Extra: '' }
- { Field: bgpPeerOutUpdates, Type: int, 'Null': false, Extra: '' }
- { Field: bgpPeerInTotalMessages, Type: int, 'Null': false, Extra: '' }
- { Field: bgpPeerOutTotalMessages, Type: int, 'Null': false, Extra: '' }
- { Field: bgpPeerFsmEstablishedTime, Type: int, 'Null': false, Extra: '' }
- { Field: bgpPeerInUpdateElapsedTime, Type: int, 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bgpPeer_id], Unique: true, Type: BTREE }
bgppeers_device_id_context_name_index: { Name: bgppeers_device_id_context_name_index, Columns: [device_id, context_name], Unique: false, Type: BTREE }
bgpPeers_cbgp:
Columns:
- { Field: device_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: DeniedPrefixes, Type: int, 'Null': false, Extra: '' }
- { Field: PrefixAdminLimit, Type: int, 'Null': false, Extra: '' }
- { Field: PrefixThreshold, Type: int, 'Null': false, Extra: '' }
- { Field: PrefixClearThreshold, Type: int, 'Null': false, Extra: '' }
- { Field: AdvertisedPrefixes, Type: int, 'Null': false, Extra: '' }
- { Field: SuppressedPrefixes, Type: int, 'Null': false, Extra: '' }
- { Field: WithdrawnPrefixes, Type: int, 'Null': false, Extra: '' }
- { Field: AcceptedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
- { Field: AcceptedPrefixes_prev, Type: int, 'Null': false, Extra: '' }
- { Field: DeniedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
- { Field: DeniedPrefixes_prev, Type: int, 'Null': false, Extra: '' }
- { Field: AdvertisedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
- { Field: AdvertisedPrefixes_prev, Type: int, 'Null': false, Extra: '' }
- { Field: SuppressedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
- { Field: SuppressedPrefixes_prev, Type: int, 'Null': false, Extra: '' }
- { Field: WithdrawnPrefixes_delta, Type: int, 'Null': false, Extra: '' }
- { Field: WithdrawnPrefixes_prev, Type: int, 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
bgppeers_cbgp_device_id_bgppeeridentifier_afi_safi_unique: { Name: bgppeers_cbgp_device_id_bgppeeridentifier_afi_safi_unique, Columns: [device_id, bgpPeerIdentifier, afi, safi], Unique: true, Type: BTREE }
bgppeers_cbgp_device_id_bgppeeridentifier_context_name_index: { Name: bgppeers_cbgp_device_id_bgppeeridentifier_context_name_index, Columns: [device_id, bgpPeerIdentifier, context_name], Unique: false, Type: BTREE }
bills:
Columns:
- { Field: bill_id, Type: 'int unsigned', '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, 'Null': true, Extra: '' }
- { Field: bill_day, Type: int, 'Null': false, Extra: '', Default: '1' }
- { Field: bill_quota, Type: bigint, 'Null': true, Extra: '' }
- { Field: rate_95th_in, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_95th_out, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_95th, Type: bigint, 'Null': false, Extra: '' }
- { Field: dir_95th, Type: varchar(3), 'Null': false, Extra: '' }
- { Field: total_data, Type: bigint, 'Null': false, Extra: '' }
- { Field: total_data_in, Type: bigint, 'Null': false, Extra: '' }
- { Field: total_data_out, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_average_in, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_average_out, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_average, Type: bigint, '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, '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 unsigned', 'Null': false, Extra: '' }
- { Field: timestamp, Type: datetime, 'Null': false, Extra: '' }
- { Field: period, Type: int, 'Null': false, Extra: '' }
- { Field: delta, Type: bigint, 'Null': false, Extra: '' }
- { Field: in_delta, Type: bigint, 'Null': false, Extra: '' }
- { Field: out_delta, Type: bigint, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bill_id, timestamp], Unique: true, Type: BTREE }
bill_data_bill_id_index: { Name: bill_data_bill_id_index, Columns: [bill_id], Unique: false, Type: BTREE }
bill_history:
Columns:
- { Field: bill_hist_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: bill_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: bill_used, Type: bigint, 'Null': false, Extra: '' }
- { Field: bill_overuse, Type: bigint, 'Null': false, Extra: '' }
- { Field: bill_percent, Type: 'decimal(10,2)', 'Null': false, Extra: '' }
- { Field: rate_95th_in, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_95th_out, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_95th, Type: bigint, 'Null': false, Extra: '' }
- { Field: dir_95th, Type: varchar(3), 'Null': false, Extra: '' }
- { Field: rate_average, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_average_in, Type: bigint, 'Null': false, Extra: '' }
- { Field: rate_average_out, Type: bigint, 'Null': false, Extra: '' }
- { Field: traf_in, Type: bigint, 'Null': false, Extra: '' }
- { Field: traf_out, Type: bigint, 'Null': false, Extra: '' }
- { Field: traf_total, Type: bigint, 'Null': false, Extra: '' }
- { Field: pdf, Type: longblob, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bill_hist_id], Unique: true, Type: BTREE }
bill_history_bill_id_bill_datefrom_bill_dateto_unique: { Name: bill_history_bill_id_bill_datefrom_bill_dateto_unique, Columns: [bill_id, bill_datefrom, bill_dateto], Unique: true, Type: BTREE }
bill_history_bill_id_index: { Name: bill_history_bill_id_index, Columns: [bill_id], Unique: false, Type: BTREE }
bill_perms:
Columns:
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: bill_id, Type: 'int unsigned', 'Null': false, Extra: '' }
bill_ports:
Columns:
- { Field: bill_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: bill_port_autoadded, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
bill_port_counters:
Columns:
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: '', Default: CURRENT_TIMESTAMP }
- { Field: in_counter, Type: bigint, 'Null': true, Extra: '' }
- { Field: in_delta, Type: bigint, 'Null': false, Extra: '', Default: '0' }
- { Field: out_counter, Type: bigint, 'Null': true, Extra: '' }
- { Field: out_delta, Type: bigint, 'Null': false, Extra: '', Default: '0' }
- { Field: bill_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_id, bill_id], Unique: true, Type: BTREE }
callback:
Columns:
- { Field: callback_id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: int, 'Null': false, Extra: '' }
- { Field: afi, Type: varchar(4), 'Null': false, Extra: '' }
- { Field: cef_index, Type: int, 'Null': false, Extra: '' }
- { Field: cef_path, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: drop, Type: int, 'Null': false, Extra: '' }
- { Field: punt, Type: int, 'Null': false, Extra: '' }
- { Field: punt2host, Type: int, 'Null': false, Extra: '' }
- { Field: drop_prev, Type: int, 'Null': false, Extra: '' }
- { Field: punt_prev, Type: int, 'Null': false, Extra: '' }
- { Field: punt2host_prev, Type: int, 'Null': false, Extra: '' }
- { Field: updated, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: updated_prev, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [cef_switching_id], Unique: true, Type: BTREE }
cef_switching_device_id_entphysicalindex_afi_cef_index_unique: { Name: cef_switching_device_id_entphysicalindex_afi_cef_index_unique, Columns: [device_id, entPhysicalIndex, afi, cef_index], Unique: true, Type: BTREE }
ciscoASA:
Columns:
- { Field: ciscoASA_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: oid, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: data, Type: bigint, 'Null': false, Extra: '' }
- { Field: high_alert, Type: bigint, 'Null': false, Extra: '' }
- { Field: low_alert, Type: bigint, 'Null': false, Extra: '' }
- { Field: disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ciscoASA_id], Unique: true, Type: BTREE }
ciscoasa_device_id_index: { Name: ciscoasa_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
component:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: type, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: label, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: status, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: ignore, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: error, Type: varchar(255), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
component_device_id_index: { Name: component_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
component_type_index: { Name: component_type_index, Columns: [type], Unique: false, Type: BTREE }
component_prefs:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: component, Type: 'int 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_prefs_component_index: { Name: component_prefs_component_index, Columns: [component], Unique: false, Type: BTREE }
Constraints:
component_prefs_ibfk_1: { name: component_prefs_ibfk_1, foreign_key: component, table: component, key: id, extra: 'ON DELETE CASCADE ON UPDATE CASCADE' }
component_statuslog:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: component_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: status, Type: tinyint, '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 }
component_statuslog_component_id_index: { Name: component_statuslog_component_id_index, Columns: [component_id], Unique: false, Type: BTREE }
Constraints:
component_statuslog_ibfk_1: { name: component_statuslog_ibfk_1, foreign_key: component_id, table: component, key: id, extra: 'ON DELETE CASCADE ON UPDATE CASCADE' }
config:
Columns:
- { Field: config_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: config_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: config_value, Type: varchar(512), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [config_id], Unique: true, Type: BTREE }
config_config_name_unique: { Name: config_config_name_unique, Columns: [config_name], Unique: true, Type: BTREE }
customers:
Columns:
- { Field: customer_id, Type: 'int unsigned', '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, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [customer_id], Unique: true, Type: BTREE }
customers_username_unique: { Name: customers_username_unique, Columns: [username], Unique: true, Type: BTREE }
customoids:
Columns:
- { Field: customoid_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: customoid_descr, Type: varchar(255), 'Null': true, Extra: '', Default: '' }
- { Field: customoid_deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: customoid_current, Type: double, 'Null': true, Extra: '' }
- { Field: customoid_prev, Type: double, 'Null': true, Extra: '' }
- { Field: customoid_oid, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: customoid_datatype, Type: varchar(20), 'Null': false, Extra: '', Default: GAUGE }
- { Field: customoid_unit, Type: varchar(20), 'Null': true, Extra: '' }
- { Field: customoid_divisor, Type: 'int unsigned', 'Null': false, Extra: '', Default: '1' }
- { Field: customoid_multiplier, Type: 'int unsigned', 'Null': false, Extra: '', Default: '1' }
- { Field: customoid_limit, Type: double, 'Null': true, Extra: '' }
- { Field: customoid_limit_warn, Type: double, 'Null': true, Extra: '' }
- { Field: customoid_limit_low, Type: double, 'Null': true, Extra: '' }
- { Field: customoid_limit_low_warn, Type: double, 'Null': true, Extra: '' }
- { Field: customoid_alert, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: customoid_passed, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: lastupdate, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
- { Field: user_func, Type: varchar(100), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [customoid_id], Unique: true, Type: BTREE }
dashboards:
Columns:
- { Field: dashboard_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: dashboard_name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: access, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [dashboard_id], Unique: true, Type: BTREE }
dbSchema:
Columns:
- { Field: version, Type: int, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [version], Unique: true, Type: BTREE }
devices:
Columns:
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: inserted, Type: timestamp, 'Null': true, Extra: '', Default: CURRENT_TIMESTAMP }
- { 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: overwrite_ip, Type: varchar(40), '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 unsigned', 'Null': false, Extra: '', Default: '161' }
- { Field: transport, Type: varchar(16), 'Null': false, Extra: '', Default: udp }
- { Field: timeout, Type: int, 'Null': true, Extra: '' }
- { Field: retries, Type: int, 'Null': true, Extra: '' }
- { Field: snmp_disable, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: bgpLocalAs, Type: 'int unsigned', '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_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: os, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: status, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: status_reason, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: ignore, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: uptime, Type: bigint, 'Null': true, Extra: '' }
- { Field: agent_uptime, Type: 'int unsigned', '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(8,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, 'Null': false, Extra: '', Default: '0' }
- { Field: override_sysLocation, Type: tinyint, 'Null': true, Extra: '', Default: '0' }
- { Field: notes, Type: text, 'Null': true, Extra: '' }
- { Field: port_association_mode, Type: int, 'Null': false, Extra: '', Default: '1' }
- { Field: max_depth, Type: int, 'Null': false, Extra: '', Default: '0' }
- { Field: disable_notify, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [device_id], Unique: true, Type: BTREE }
devices_hostname_index: { Name: devices_hostname_index, Columns: [hostname], Unique: false, Type: BTREE }
devices_last_poll_attempted_index: { Name: devices_last_poll_attempted_index, Columns: [last_poll_attempted], Unique: false, Type: BTREE }
devices_last_polled_index: { Name: devices_last_polled_index, Columns: [last_polled], Unique: false, Type: BTREE }
devices_os_index: { Name: devices_os_index, Columns: [os], Unique: false, Type: BTREE }
devices_status_index: { Name: devices_status_index, Columns: [status], Unique: false, Type: BTREE }
devices_sysname_index: { Name: devices_sysname_index, Columns: [sysName], Unique: false, Type: BTREE }
devices_attribs:
Columns:
- { Field: attrib_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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 }
devices_attribs_device_id_index: { Name: devices_attribs_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
devices_group_perms:
Columns:
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_group_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [device_group_id, user_id], Unique: true, Type: BTREE }
devices_group_perms_device_group_id_index: { Name: devices_group_perms_device_group_id_index, Columns: [device_group_id], Unique: false, Type: BTREE }
devices_group_perms_user_id_index: { Name: devices_group_perms_user_id_index, Columns: [user_id], Unique: false, Type: BTREE }
devices_perms:
Columns:
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
devices_perms_user_id_index: { Name: devices_perms_user_id_index, Columns: [user_id], Unique: false, Type: BTREE }
device_graphs:
Columns:
- { Field: id, Type: 'bigint unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: graph, Type: varchar(255), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device_graphs_device_id_index: { Name: device_graphs_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
device_groups:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '', Default: '' }
- { Field: desc, Type: varchar(255), 'Null': true, Extra: '', Default: '' }
- { Field: type, Type: varchar(16), 'Null': false, Extra: '', Default: dynamic }
- { Field: rules, Type: text, 'Null': true, Extra: '' }
- { Field: pattern, Type: text, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device_groups_name_unique: { Name: device_groups_name_unique, Columns: [name], Unique: true, Type: BTREE }
device_outages:
Columns:
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: going_down, Type: bigint, 'Null': false, Extra: '' }
- { Field: up_again, Type: bigint, 'Null': true, Extra: '' }
- { Field: uptime, Type: bigint, 'Null': true, Extra: '' }
Indexes:
device_outages_device_id_index: { Name: device_outages_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
device_outages_device_id_going_down_unique: { Name: device_outages_device_id_going_down_unique, Columns: [device_id, going_down], Unique: true, Type: BTREE }
device_group_device:
Columns:
- { Field: device_group_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int 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 }
Constraints:
device_group_device_device_group_id_foreign: { name: device_group_device_device_group_id_foreign, foreign_key: device_group_id, table: device_groups, key: id, extra: 'ON DELETE CASCADE' }
device_group_device_device_id_foreign: { name: device_group_device_device_id_foreign, foreign_key: device_id, table: devices, key: device_id, extra: 'ON DELETE CASCADE' }
device_mibs:
Columns:
- { Field: device_id, Type: 'int unsigned', '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 unsigned', '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, '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: timestamp, Type: datetime, 'Null': false, Extra: '' }
- { Field: xmt, Type: int, 'Null': false, Extra: '' }
- { Field: rcv, Type: int, 'Null': false, Extra: '' }
- { Field: loss, Type: int, 'Null': false, Extra: '' }
- { Field: min, Type: 'double(8,2)', 'Null': false, Extra: '' }
- { Field: max, Type: 'double(8,2)', 'Null': false, Extra: '' }
- { Field: avg, Type: 'double(8,2)', 'Null': false, Extra: '' }
- { Field: debug, Type: text, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
device_perf_device_id_index: { Name: device_perf_device_id_index, 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 14:17:52 +00:00
device_relationships:
Columns:
- { Field: parent_device_id, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: child_device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
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 14:17:52 +00:00
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [parent_device_id, child_device_id], Unique: true, Type: BTREE }
device_relationships_child_device_id_index: { Name: device_relationships_child_device_id_index, Columns: [child_device_id], Unique: false, Type: BTREE }
Constraints:
device_relationship_child_device_id_fk: { name: device_relationship_child_device_id_fk, foreign_key: child_device_id, table: devices, key: device_id, extra: 'ON DELETE CASCADE' }
device_relationship_parent_device_id_fk: { name: device_relationship_parent_device_id_fk, foreign_key: parent_device_id, table: devices, key: device_id, extra: 'ON DELETE CASCADE' }
entityState:
Columns:
- { Field: entity_state_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: entPhysical_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: entStateLastChanged, Type: datetime, 'Null': true, Extra: '' }
- { Field: entStateAdmin, Type: int, 'Null': true, Extra: '' }
- { Field: entStateOper, Type: int, 'Null': true, Extra: '' }
- { Field: entStateUsage, Type: int, 'Null': true, Extra: '' }
- { Field: entStateAlarm, Type: text, 'Null': true, Extra: '' }
- { Field: entStateStandby, Type: int, '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: int, '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, 'Null': false, Extra: '' }
- { Field: entPhysicalParentRelPos, Type: int, 'Null': false, Extra: '' }
- { Field: entPhysicalMfgName, Type: text, 'Null': false, Extra: '' }
- { Field: ifIndex, Type: int, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [entPhysical_id], Unique: true, Type: BTREE }
entphysical_device_id_index: { Name: entphysical_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
entPhysical_state:
Columns:
- { Field: device_id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': true, 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': true, Extra: '' }
- { Field: username, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: severity, Type: tinyint, 'Null': false, Extra: '', Default: '2' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [event_id], Unique: true, Type: BTREE }
eventlog_datetime_index: { Name: eventlog_datetime_index, Columns: [datetime], Unique: false, Type: BTREE }
eventlog_device_id_index: { Name: eventlog_device_id_index, 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, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [graph_type, graph_subtype, graph_section], Unique: true, Type: BTREE }
graph_types_graph_section_index: { Name: graph_types_graph_section_index, Columns: [graph_section], Unique: false, Type: BTREE }
graph_types_graph_subtype_index: { Name: graph_types_graph_subtype_index, Columns: [graph_subtype], Unique: false, Type: BTREE }
graph_types_graph_type_index: { Name: graph_types_graph_type_index, Columns: [graph_type], Unique: false, Type: BTREE }
hrDevice:
Columns:
- { Field: hrDevice_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: hrDeviceIndex, Type: int, 'Null': false, Extra: '' }
- { Field: hrDeviceDescr, Type: text, 'Null': false, Extra: '' }
- { Field: hrDeviceType, Type: text, 'Null': false, Extra: '' }
- { Field: hrDeviceErrors, Type: int, 'Null': false, Extra: '', Default: '0' }
- { Field: hrDeviceStatus, Type: text, 'Null': false, Extra: '' }
- { Field: hrProcessorLoad, Type: tinyint, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [hrDevice_id], Unique: true, Type: BTREE }
hrdevice_device_id_index: { Name: hrdevice_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
ipsec_tunnels:
Columns:
- { Field: tunnel_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: peer_port, Type: 'int unsigned', '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 unsigned', '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 }
ipsec_tunnels_device_id_peer_addr_unique: { Name: ipsec_tunnels_device_id_peer_addr_unique, Columns: [device_id, peer_addr], Unique: true, Type: BTREE }
ipv4_addresses:
Columns:
- { Field: ipv4_address_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: ipv4_address, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ipv4_prefixlen, Type: int, 'Null': false, Extra: '' }
- { Field: ipv4_network_id, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ipv4_address_id], Unique: true, Type: BTREE }
ipv4_addresses_port_id_index: { Name: ipv4_addresses_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
ipv4_mac:
Columns:
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', '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:
ipv4_mac_mac_address_index: { Name: ipv4_mac_mac_address_index, Columns: [mac_address], Unique: false, Type: BTREE }
ipv4_mac_port_id_index: { Name: ipv4_mac_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
ipv4_networks:
Columns:
- { Field: ipv4_network_id, Type: 'int unsigned', '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 unsigned', '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, '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 unsigned', 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ipv6_address_id], Unique: true, Type: BTREE }
ipv6_addresses_port_id_index: { Name: ipv6_addresses_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
ipv6_networks:
Columns:
- { Field: ipv6_network_id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: vp_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: vp_descr, Type: varchar(32), 'Null': false, Extra: '' }
Indexes:
juniatmvp_port_id_index: { Name: juniatmvp_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
links:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: local_port_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: local_device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: remote_port_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: active, Type: tinyint, '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 unsigned', '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 }
links_local_port_id_index: { Name: links_local_port_id_index, Columns: [local_port_id], Unique: false, Type: BTREE }
links_remote_port_id_index: { Name: links_remote_port_id_index, 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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: farm_id, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: '' }
- { Field: classmap, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: serverstate, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
loadbalancer_vservers_device_id_index: { Name: loadbalancer_vservers_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
locations:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
Refactored and update Location Geocoding (#9359) - Fix location so it is a regular database relation (this allows multiple devices to be accurately linked to one location and saves api calls) - Parse coordinates from the location more consistently - Add settings to webui - ~~Used [PHP Geocoder](http://geocoder-php.org/), which has lots of backends and is well tested. (also includes reverse and geoip)~~ - Google Maps, Bing, Mapquest, and OpenStreetMap supported initially. - Default to OpenStreetMap, which doesn't require a key. They will liberally hand out bans if you exceed 1 query per second though. - All other Geocoding APIs require an API key. (Google requires a credit card on file, but seems to be the most accurate) - Update all (I think) sql queries to handle the new structure - Remove final vestiges of override_sysLocation as a device attribute - Update existing device groups and rules in DB - Tested all APIs with good/bad location, no/bad/good key, and no connection. - Cannot fix advanced queries that use location This blocks #8868 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
2018-11-28 22:49:18 +00:00
- { Field: location, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: lat, Type: 'double(10,6)', 'Null': true, Extra: '' }
- { Field: lng, Type: 'double(10,6)', 'Null': true, Extra: '' }
- { Field: timestamp, Type: datetime, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
locations_location_unique: { Name: locations_location_unique, Columns: [location], Unique: true, Type: BTREE }
mac_accounting:
Columns:
- { Field: ma_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: port_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: bps_in, Type: int, 'Null': false, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_input_rate, Type: int, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedBytes_output_rate, Type: int, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_input_rate, Type: int, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: cipMacHCSwitchedPkts_output_rate, Type: int, 'Null': true, Extra: '' }
- { Field: poll_time, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: poll_prev, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: poll_period, Type: 'int unsigned', 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ma_id], Unique: true, Type: BTREE }
mac_accounting_port_id_index: { Name: mac_accounting_port_id_index, Columns: [port_id], Unique: false, Type: BTREE }
mefinfo:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mefID, Type: int, 'Null': false, Extra: '' }
- { Field: mefType, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: mefIdent, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: mefMTU, Type: int, '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 }
mefinfo_device_id_index: { Name: mefinfo_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mefinfo_mefid_index: { Name: mefinfo_mefid_index, Columns: [mefID], Unique: false, Type: BTREE }
mempools:
Columns:
- { Field: mempool_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: mempool_index, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: entPhysicalIndex, Type: int, 'Null': true, Extra: '' }
- { Field: hrDeviceIndex, Type: int, 'Null': true, Extra: '' }
- { Field: mempool_type, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: mempool_precision, Type: int, 'Null': false, Extra: '', Default: '1' }
- { Field: mempool_descr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mempool_perc, Type: int, 'Null': false, Extra: '' }
- { Field: mempool_used, Type: bigint, 'Null': false, Extra: '' }
- { Field: mempool_free, Type: bigint, 'Null': false, Extra: '' }
- { Field: mempool_total, Type: bigint, 'Null': false, Extra: '' }
- { Field: mempool_largestfree, Type: bigint, 'Null': true, Extra: '' }
- { Field: mempool_lowestfree, Type: bigint, 'Null': true, Extra: '' }
- { Field: mempool_deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: mempool_perc_warn, Type: int, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [mempool_id], Unique: true, Type: BTREE }
mempools_device_id_index: { Name: mempools_device_id_index, 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 }
migrations:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: migration, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: batch, Type: int, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
mpls_lsps:
Columns:
- { Field: lsp_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: vrf_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: lsp_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspRowStatus, Type: 'enum(''active'',''notInService'',''notReady'',''createAndGo'',''createAndWait'',''destroy'')', 'Null': false, Extra: '' }
- { Field: mplsLspLastChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspName, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: mplsLspAdminState, Type: 'enum(''noop'',''inService'',''outOfService'')', 'Null': false, Extra: '' }
- { Field: mplsLspOperState, Type: 'enum(''unknown'',''inService'',''outOfService'',''transition'')', 'Null': false, Extra: '' }
- { Field: mplsLspFromAddr, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: mplsLspToAddr, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: mplsLspType, Type: 'enum(''unknown'',''dynamic'',''static'',''bypassOnly'',''p2mpLsp'',''p2mpAuto'',''mplsTp'',''meshP2p'',''oneHopP2p'',''srTe'',''meshP2pSrTe'',''oneHopP2pSrTe'')', 'Null': false, Extra: '' }
- { Field: mplsLspFastReroute, Type: 'enum(''true'',''false'')', 'Null': false, Extra: '' }
- { Field: mplsLspAge, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspTimeUp, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspTimeDown, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspPrimaryTimeUp, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspTransitions, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspLastTransition, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspConfiguredPaths, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspStandbyPaths, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspOperationalPaths, Type: 'int unsigned', 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [lsp_id], Unique: true, Type: BTREE }
mpls_lsps_device_id_index: { Name: mpls_lsps_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_lsp_paths:
Columns:
- { Field: lsp_path_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: lsp_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: path_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspPathRowStatus, Type: 'enum(''active'',''notInService'',''notReady'',''createAndGo'',''createAndWait'',''destroy'')', 'Null': false, Extra: '' }
- { Field: mplsLspPathLastChange, Type: bigint, 'Null': false, Extra: '' }
- { Field: mplsLspPathType, Type: 'enum(''other'',''primary'',''standby'',''secondary'')', 'Null': false, Extra: '' }
- { Field: mplsLspPathBandwidth, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspPathOperBandwidth, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspPathAdminState, Type: 'enum(''noop'',''inService'',''outOfService'')', 'Null': false, Extra: '' }
- { Field: mplsLspPathOperState, Type: 'enum(''unknown'',''inService'',''outOfService'',''transition'')', 'Null': false, Extra: '' }
- { Field: mplsLspPathState, Type: 'enum(''unknown'',''active'',''inactive'')', 'Null': false, Extra: '' }
- { Field: mplsLspPathFailCode, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: mplsLspPathFailNodeAddr, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: mplsLspPathMetric, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspPathOperMetric, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspPathTimeUp, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspPathTimeDown, Type: bigint, 'Null': true, Extra: '' }
- { Field: mplsLspPathTransitionCount, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspPathTunnelARHopListIndex, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspPathTunnelCHopListIndex, Type: 'int unsigned', 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [lsp_path_id], Unique: true, Type: BTREE }
mpls_lsp_paths_device_id_index: { Name: mpls_lsp_paths_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_saps:
Columns:
- { Field: sap_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: svc_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: svc_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: sapPortId, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: ifName, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: sapEncapValue, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: sapRowStatus, Type: 'enum(''active'',''notInService'',''notReady'',''createAndGo'',''createAndWait'',''destroy'')', 'Null': true, Extra: '' }
- { Field: sapType, Type: 'enum(''unknown'',''epipe'',''tls'',''vprn'',''ies'',''mirror'',''apipe'',''fpipe'',''ipipe'',''cpipe'',''intTls'',''evpnIsaTls'')', 'Null': true, Extra: '' }
- { Field: sapDescription, Type: varchar(80), 'Null': true, Extra: '' }
- { Field: sapAdminStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: sapOperStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: sapLastMgmtChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: sapLastStatusChange, Type: bigint, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sap_id], Unique: true, Type: BTREE }
mpls_saps_device_id_index: { Name: mpls_saps_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_sdps:
Columns:
- { Field: sdp_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: sdp_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: sdpRowStatus, Type: 'enum(''active'',''notInService'',''notReady'',''createAndGo'',''createAndWait'',''destroy'')', 'Null': true, Extra: '' }
- { Field: sdpDelivery, Type: 'enum(''gre'',''mpls'',''l2tpv3'',''greethbridged'')', 'Null': true, Extra: '' }
- { Field: sdpDescription, Type: varchar(80), 'Null': true, Extra: '' }
- { Field: sdpAdminStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: sdpOperStatus, Type: 'enum(''up'',''notAlive'',''notReady'',''invalidEgressInterface'',''transportTunnelDown'',''down'')', 'Null': true, Extra: '' }
- { Field: sdpAdminPathMtu, Type: int, 'Null': true, Extra: '' }
- { Field: sdpOperPathMtu, Type: int, 'Null': true, Extra: '' }
- { Field: sdpLastMgmtChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpLastStatusChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpActiveLspType, Type: 'enum(''not-applicable'',''rsvp'',''ldp'',''bgp'',''none'',''mplsTp'',''srIsis'',''srOspf'',''srTeLsp'',''fpe'')', 'Null': true, Extra: '' }
- { Field: sdpFarEndInetAddressType, Type: 'enum(''ipv4'',''ipv6'')', 'Null': true, Extra: '' }
- { Field: sdpFarEndInetAddress, Type: varchar(46), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sdp_id], Unique: true, Type: BTREE }
mpls_sdps_device_id_index: { Name: mpls_sdps_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_sdp_binds:
Columns:
- { Field: bind_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: sdp_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: svc_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: sdp_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: svc_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: sdpBindRowStatus, Type: 'enum(''active'',''notInService'',''notReady'',''createAndGo'',''createAndWait'',''destroy'')', 'Null': true, Extra: '' }
- { Field: sdpBindAdminStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: sdpBindOperStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: sdpBindLastMgmtChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpBindLastStatusChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpBindType, Type: 'enum(''spoke'',''mesh'')', 'Null': true, Extra: '' }
- { Field: sdpBindVcType, Type: 'enum(''undef'',''ether'',''vlan'',''mirrior'',''atmSduatmCell'',''atmVcc'',''atmVpc'',''frDlci'',''ipipe'',''satopE1'',''satopT1'',''satopE3'',''satopT3'',''cesopsn'',''cesopsnCas'')', 'Null': true, Extra: '' }
- { Field: sdpBindBaseStatsIngFwdPackets, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpBindBaseStatsIngFwdOctets, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpBindBaseStatsEgrFwdPackets, Type: bigint, 'Null': true, Extra: '' }
- { Field: sdpBindBaseStatsEgrFwdOctets, Type: bigint, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [bind_id], Unique: true, Type: BTREE }
mpls_sdp_binds_device_id_index: { Name: mpls_sdp_binds_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_services:
Columns:
- { Field: svc_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: svc_oid, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: svcRowStatus, Type: 'enum(''active'',''notInService'',''notReady'',''createAndGo'',''createAndWait'',''destroy'')', 'Null': true, Extra: '' }
- { Field: svcType, Type: 'enum(''unknown'',''epipe'',''tls'',''vprn'',''ies'',''mirror'',''apipe'',''fpipe'',''ipipe'',''cpipe'',''intTls'',''evpnIsaTls'')', 'Null': true, Extra: '' }
- { Field: svcCustId, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: svcAdminStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: svcOperStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: svcDescription, Type: varchar(80), 'Null': true, Extra: '' }
- { Field: svcMtu, Type: int, 'Null': true, Extra: '' }
- { Field: svcNumSaps, Type: int, 'Null': true, Extra: '' }
- { Field: svcNumSdps, Type: int, 'Null': true, Extra: '' }
- { Field: svcLastMgmtChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: svcLastStatusChange, Type: bigint, 'Null': true, Extra: '' }
- { Field: svcVRouterId, Type: int, 'Null': true, Extra: '' }
- { Field: svcTlsMacLearning, Type: 'enum(''enabled'',''disabled'')', 'Null': true, Extra: '' }
- { Field: svcTlsStpAdminStatus, Type: 'enum(''enabled'',''disabled'')', 'Null': true, Extra: '' }
- { Field: svcTlsStpOperStatus, Type: 'enum(''up'',''down'')', 'Null': true, Extra: '' }
- { Field: svcTlsFdbTableSize, Type: int, 'Null': true, Extra: '' }
- { Field: svcTlsFdbNumEntries, Type: int, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [svc_id], Unique: true, Type: BTREE }
mpls_services_device_id_index: { Name: mpls_services_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_tunnel_ar_hops:
Columns:
- { Field: ar_hop_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: mplsTunnelARHopListIndex, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsTunnelARHopIndex, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: lsp_path_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsTunnelARHopAddrType, Type: 'enum(''unknown'',''ipV4'',''ipV6'',''asNumber'',''lspid'',''unnum'')', 'Null': true, Extra: '' }
- { Field: mplsTunnelARHopIpv4Addr, Type: varchar(15), 'Null': true, Extra: '' }
- { Field: mplsTunnelARHopIpv6Addr, Type: varchar(45), 'Null': true, Extra: '' }
- { Field: mplsTunnelARHopAsNumber, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsTunnelARHopStrictOrLoose, Type: 'enum(''strict'',''loose'')', 'Null': true, Extra: '' }
- { Field: mplsTunnelARHopRouterId, Type: varchar(15), 'Null': true, Extra: '' }
- { Field: localProtected, Type: 'enum(''false'',''true'')', 'Null': false, Extra: '', Default: 'false' }
- { Field: linkProtectionInUse, Type: 'enum(''false'',''true'')', 'Null': false, Extra: '', Default: 'false' }
- { Field: bandwidthProtected, Type: 'enum(''false'',''true'')', 'Null': false, Extra: '', Default: 'false' }
- { Field: nextNodeProtected, Type: 'enum(''false'',''true'')', 'Null': false, Extra: '', Default: 'false' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ar_hop_id], Unique: true, Type: BTREE }
mpls_tunnel_ar_hops_device_id_index: { Name: mpls_tunnel_ar_hops_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
mpls_tunnel_c_hops:
Columns:
- { Field: c_hop_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: mplsTunnelCHopListIndex, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mplsTunnelCHopIndex, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: lsp_path_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsTunnelCHopAddrType, Type: 'enum(''unknown'',''ipV4'',''ipV6'',''asNumber'',''lspid'',''unnum'')', 'Null': true, Extra: '' }
- { Field: mplsTunnelCHopIpv4Addr, Type: varchar(15), 'Null': true, Extra: '' }
- { Field: mplsTunnelCHopIpv6Addr, Type: varchar(45), 'Null': true, Extra: '' }
- { Field: mplsTunnelCHopAsNumber, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsTunnelCHopStrictOrLoose, Type: 'enum(''strict'',''loose'')', 'Null': true, Extra: '' }
- { Field: mplsTunnelCHopRouterId, Type: varchar(15), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [c_hop_id], Unique: true, Type: BTREE }
mpls_tunnel_c_hops_device_id_index: { Name: mpls_tunnel_c_hops_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
munin_plugins:
Columns:
- { Field: mplug_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: mplug_graph, Type: tinyint, 'Null': false, Extra: '', Default: '1' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [mplug_id], Unique: true, Type: BTREE }
munin_plugins_device_id_index: { Name: munin_plugins_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
munin_plugins_device_id_mplug_type_unique: { Name: munin_plugins_device_id_mplug_type_unique, Columns: [device_id, mplug_type], Unique: true, Type: BTREE }
munin_plugins_ds:
Columns:
- { Field: mplug_id, Type: 'int unsigned', '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:
munin_plugins_ds_mplug_id_ds_name_unique: { Name: munin_plugins_ds_mplug_id_ds_name_unique, Columns: [mplug_id, ds_name], Unique: true, Type: BTREE }
netscaler_vservers:
Columns:
- { Field: vsvr_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, '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, 'Null': false, Extra: '' }
- { Field: vsvr_server, Type: int, 'Null': false, Extra: '' }
- { Field: vsvr_req_rate, Type: int, 'Null': false, Extra: '' }
- { Field: vsvr_bps_in, Type: int, 'Null': false, Extra: '' }
- { Field: vsvr_bps_out, Type: int, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [vsvr_id], Unique: true, Type: BTREE }
notifications:
Columns:
- { Field: notifications_id, Type: 'int unsigned', '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, '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 }
notifications_checksum_unique: { Name: notifications_checksum_unique, 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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: notifications_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: user_id, Type: 'int unsigned', '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 }
notifications_attribs_notifications_id_user_id_index: { Name: notifications_attribs_notifications_id_user_id_index, Columns: [notifications_id, user_id], Unique: false, Type: BTREE }
ospf_areas:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: ospfAreaBdrRtrCount, Type: int, 'Null': false, Extra: '' }
- { Field: ospfAsBdrRtrCount, Type: int, 'Null': false, Extra: '' }
- { Field: ospfAreaLsaCount, Type: int, 'Null': false, Extra: '' }
- { Field: ospfAreaLsaCksumSum, Type: int, '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:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
ospf_areas_device_id_ospfareaid_context_name_unique: { Name: ospf_areas_device_id_ospfareaid_context_name_unique, Columns: [device_id, ospfAreaId, context_name], Unique: true, Type: BTREE }
ospf_instances:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: ospf_instance_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: ospfExternLsaCksumSum, Type: int, 'Null': false, Extra: '' }
- { Field: ospfTOSSupport, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfOriginateNewLsas, Type: int, 'Null': false, Extra: '' }
- { Field: ospfRxNewLsas, Type: int, 'Null': false, Extra: '' }
- { Field: ospfExtLsdbLimit, Type: int, 'Null': true, Extra: '' }
- { Field: ospfMulticastExtensions, Type: int, 'Null': true, Extra: '' }
- { Field: ospfExitOverflowInterval, Type: int, 'Null': true, Extra: '' }
- { Field: ospfDemandExtensions, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
ospf_instances_device_id_ospf_instance_id_context_name_unique: { Name: ospf_instances_device_id_ospf_instance_id_context_name_unique, Columns: [device_id, ospf_instance_id, context_name], Unique: true, Type: BTREE }
ospf_nbrs:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: ospf_nbr_id, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrIpAddr, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrAddressLessIndex, Type: int, 'Null': false, Extra: '' }
- { Field: ospfNbrRtrId, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrOptions, Type: int, 'Null': false, Extra: '' }
- { Field: ospfNbrPriority, Type: int, 'Null': false, Extra: '' }
- { Field: ospfNbrState, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: ospfNbrEvents, Type: int, 'Null': false, Extra: '' }
- { Field: ospfNbrLsRetransQLen, Type: int, '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:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
ospf_nbrs_device_id_ospf_nbr_id_context_name_unique: { Name: ospf_nbrs_device_id_ospf_nbr_id_context_name_unique, Columns: [device_id, ospf_nbr_id, context_name], Unique: true, Type: BTREE }
ospf_ports:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', '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, '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, 'Null': true, Extra: '' }
- { Field: ospfIfTransitDelay, Type: int, 'Null': true, Extra: '' }
- { Field: ospfIfRetransInterval, Type: int, 'Null': true, Extra: '' }
- { Field: ospfIfHelloInterval, Type: int, 'Null': true, Extra: '' }
- { Field: ospfIfRtrDeadInterval, Type: int, 'Null': true, Extra: '' }
- { Field: ospfIfPollInterval, Type: int, '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, '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:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
ospf_ports_device_id_ospf_port_id_context_name_unique: { Name: ospf_ports_device_id_ospf_port_id_context_name_unique, Columns: [device_id, ospf_port_id, context_name], Unique: true, Type: BTREE }
packages:
Columns:
- { Field: pkg_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, '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, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [pkg_id], Unique: true, Type: BTREE }
packages_device_id_index: { Name: packages_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
packages_device_id_name_manager_arch_version_build_unique: { Name: packages_device_id_name_manager_arch_version_build_unique, Columns: [device_id, name, manager, arch, version, build], Unique: true, Type: BTREE }
pdb_ix:
Columns:
- { Field: pdb_ix_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: ix_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: name, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: asn, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: timestamp, Type: 'int 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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: ix_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: peer_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: remote_asn, Type: 'int unsigned', '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 unsigned', 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [pdb_ix_peers_id], Unique: true, Type: BTREE }
perf_times:
Columns:
- { Field: id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: '' }
- { Field: duration, Type: 'double(8,2)', 'Null': false, Extra: '' }
- { Field: devices, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: poller, Type: varchar(255), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
perf_times_type_index: { Name: perf_times_type_index, Columns: [type], Unique: false, Type: BTREE }
plugins:
Columns:
- { Field: plugin_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: plugin_name, Type: varchar(60), 'Null': false, Extra: '' }
- { Field: plugin_active, Type: int, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [plugin_id], Unique: true, Type: BTREE }
pollers:
Columns:
- { Field: id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: '' }
- { Field: time_taken, Type: double, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
pollers_poller_name_unique: { Name: pollers_poller_name_unique, Columns: [poller_name], Unique: true, Type: BTREE }
poller_cluster:
Columns:
- { Field: id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: poller_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: poller_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: poller_workers, Type: int, 'Null': true, Extra: '' }
- { Field: poller_down_retry, Type: int, 'Null': true, Extra: '' }
- { Field: discovery_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: discovery_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: discovery_workers, Type: int, 'Null': true, Extra: '' }
- { Field: services_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: services_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: services_workers, Type: int, 'Null': true, Extra: '' }
- { Field: billing_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: billing_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: billing_calculate_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: alerting_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: alerting_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: ping_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: ping_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: update_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: update_frequency, Type: int, 'Null': true, Extra: '' }
- { Field: loglevel, Type: varchar(8), 'Null': true, Extra: '' }
- { Field: watchdog_enabled, Type: tinyint, 'Null': true, Extra: '' }
- { Field: watchdog_log, Type: varchar(255), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
poller_cluster_node_id_unique: { Name: poller_cluster_node_id_unique, Columns: [node_id], Unique: true, Type: BTREE }
poller_cluster_stats:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: parent_poller, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: poller_type, Type: varchar(64), 'Null': false, Extra: '', Default: '' }
- { Field: depth, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: devices, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: worker_seconds, Type: 'double unsigned', 'Null': false, Extra: '' }
- { Field: workers, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: frequency, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
poller_cluster_stats_parent_poller_poller_type_unique: { Name: poller_cluster_stats_parent_poller_poller_type_unique, Columns: [parent_poller, poller_type], Unique: true, Type: BTREE }
poller_groups:
Columns:
- { Field: id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, 'Null': true, Extra: '', Default: '0' }
- { Field: ifSpeed, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifSpeed_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifConnectorPresent, Type: varchar(12), 'Null': true, Extra: '' }
- { Field: ifPromiscuousMode, Type: varchar(12), 'Null': true, Extra: '' }
- { Field: ifHighSpeed, Type: int, 'Null': true, Extra: '' }
- { Field: ifHighSpeed_prev, Type: int, '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, '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 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, 'Null': false, Extra: '', Default: '0' }
- { Field: counter_in, Type: int, 'Null': true, Extra: '' }
- { Field: counter_out, Type: int, 'Null': true, Extra: '' }
- { Field: ignore, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: detailed, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: deleted, Type: tinyint, '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, 'Null': true, Extra: '' }
- { Field: pagpPartnerGroupIfIndex, Type: int, '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, 'Null': true, Extra: '' }
- { Field: ifInUcastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInUcastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInUcastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInUcastPkts_rate, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutUcastPkts_rate, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInErrors_rate, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutErrors_rate, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifInOctets_rate, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: ifOutOctets_rate, Type: 'bigint unsigned', 'Null': true, Extra: '' }
- { Field: poll_time, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: poll_prev, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: poll_period, Type: 'int unsigned', 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_id], Unique: true, Type: BTREE }
ports_device_id_ifindex_unique: { Name: ports_device_id_ifindex_unique, Columns: [device_id, ifIndex], Unique: true, Type: BTREE }
ports_ifdescr_index: { Name: ports_ifdescr_index, Columns: [ifDescr], Unique: false, Type: BTREE }
ports_adsl:
Columns:
- { Field: port_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: adslAtucChanCurrTxRate, Type: int, '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, '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, 'Null': false, Extra: '' }
Indexes:
ports_adsl_port_id_unique: { Name: ports_adsl_port_id_unique, Columns: [port_id], Unique: true, Type: BTREE }
ports_fdb:
Columns:
- { Field: ports_fdb_id, Type: 'bigint unsigned', 'Null': false, Extra: auto_increment }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: mac_address, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: vlan_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: created_at, Type: timestamp, 'Null': true, Extra: '' }
- { Field: updated_at, Type: timestamp, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ports_fdb_id], Unique: true, Type: BTREE }
ports_fdb_device_id_index: { Name: ports_fdb_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
ports_fdb_mac_address_index: { Name: ports_fdb_mac_address_index, 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_vlan_id_index: { Name: ports_fdb_vlan_id_index, Columns: [vlan_id], Unique: false, Type: BTREE }
NAC Polling (Network Access Control) (#9227) * RouterOS wireless sensors update (#9401) * bug-fix and new features Fixed incorrect OID for rate, renamed rate to TX-Rate as per update from mikrotik. Added support for link distance * Fixed indent issue * Added support for using Transport name in templates (#9411) * Added ability to sort alert schedules by status (#9257) Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixed alert util (#9428) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed AlertUtil - again (#9429) * Update BEGEMOT-HAST-MIB (#9427) FIX: Due to a missing import and the uppercase after some SYNTAX this mib is not bein compiled correctly everywhere. For example the one from Horizon OpenNMS fails with some errors ERROR: Cannot find symbol UNSIGNED32, Source: BEGEMOT-HAST-MIB.txt, Row: 321, Col: 17 The proposed change prevent the errors. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Fixes delta calculation for bgpPeers_cbgp metrics (#9431) The values in the $peer['c_update'][$oid] array are set only if they have changed. If the value has not changed, then zero is substituted for real values, which leads to incorrect calculation of delta values and records in the database: SELECT AcceptedPrefixes,AcceptedPrefixes_prev,AcceptedPrefixes_delta FROM bgpPeers_cbgp WHERE device_id=115; | AcceptedPrefixes | AcceptedPrefixes_prev | AcceptedPrefixes_delta | |------------------|-----------------------|------------------------| | 21 | 21 | -21 | 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Improve Junos state sensor discovery (#9426) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. Tested on MX and EX series, works fine. Skip slots that are empty and pull all sensors in jnxFruTable, data from old code is preserved. * Added alerts schedule notes into device notes (#9258) * Add alerts schedule notes into device notes Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Update preferences.inc.php * Show port description and dns name in FDB table (#9370) - Added Port Description field to FDB Table - Added DNS Name field to FDB Table - Fixed sorting by port in FDB Table 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update draytek.inc.php (#9432) * Removed unnecessary model checks in HiveOS Wireless (#9409) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added format field to Telegram Messages (#9404) * Add format field to Telegram Messages Added Telegram field to send formatted messages as Mardown or HTML * Update Telegram.php * Correct Mistypo. * Correct mistypo * Correct Mistypo * Correct mistypo * Update Transports.md * Add Format field on Telegram Examples * Change Telegram Format field to type select * Add "blank" option to Format field * Update Telegram.php * Update Telegram.php * Update Telegram.php * Disable page refresh on health sensors pages, autorefresh most tables (#9386) * Disable page refresh on health sensors pages Refresh all bootgrid tables every 5 minutes * Update legacy_index.php * Update librenmsv1.blade.php * Style cleanup in hiveos file (#9440) Fix code style check for https://github.com/librenms/librenms/pull/9438 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Ensure the checks for ASA context devices are strict (#9441) * Show visually in webui + cli when using deprecated templates or transports (#9413) * Show visually in webui + cli when using deprecated templates or transports * Fixed query * Added Bing geocode lookup support (#9434) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added ScreenOS Syslog Hook (#9438) * Add ScreenOS Syslog Hook Adds Syslog Hook for ScreenOS https://community.librenms.org/t/juniper-screenos-syslog-hook/6146 * Update Syslog.md * Update syslog-notify-oxidized.php * Discovery YAML. Do not implicitly append $index (#9315) Require it explicitly. Makes it easier to understand and matches the style of other values Questionable YAML changes (either broken before or now broken): secureplatform: haStatCode ptp600: receiveModulationMode 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Syslog.md (#9443) Fixed the screenOS output added in #9438 which was confusing mkdocs output. Refer to the docs currently https://docs.librenms.org/Extensions/Syslog/ - It's all mashed up at the bottom 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fix ping.php poller groups setting confusion between dispatch(new PingCheck($groups)) and PingCheck::dispatch($groups) * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Created sql-schema (261) * Created sql-schema (261) * Update docs for virtual images (#9456) * Added Traffic to the Windows OS overlib graph (#9445) WebUI: added Traffic to the Windows OS overlib graph 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update World-Map.md to include pros/cons (#9442) 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. - [ ] 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added allow ipv6 address localhost nginx-status docs (#9458) Following the modification of the SNMP Nginx agent (https://github.com/librenms/librenms-agent/commit/e0dcd4a064cedb09241e4af17198bf61e8fd1bf3), linux distributions make requests in IPV6, so you must allow ::1 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed altering transport mapping in rules clearing all mappings (#9455) * Change unpolled devices toast to be based on rrd step (#9391) * Change unpolled devices toast to be based on rrd step * Update message Change it back to 3x * Added resources/links and devices/hostname/links API calls for xDP (#9444) * api: Add list_links and get_link api calls Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * api: Add get_links api call Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * Update detection for Allied and Radlan OS (#9454) "1.3.6.1.4.1.207.1.4.128" is currently reporting as allied, when it should be reporting as radlan. Refer to https://community.librenms.org/t/allied-telesis-discovery/6189/8 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Updated HiveOS wireless detection (#9459) * Added ability to record traceroutes for devices down due to ICMP (#9457) * Added ability to record traceroutes for devices down due to ICMP * Update Templates.md * Updated schema * Update dev-overview-data.inc.php * Filter email options based on backend in Alert settings (#9461) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Configuration.md * Updated detection for AKCP devices (#9460) * Updated support for Avocent devices (#9462) * Updated support for Avocent devices * Add ACS8048 hardware to json * Update avocent.inc.php * Update avocent_8000.json * Syslog name translation (#9463) * Check to see if a host exists in a lookup table to translate received name to what LibreNMS knows * Added some documentation on how this is configured * Use \LibreNMS\Config instead of accessing $config directly * Fix codeclimate finding: Additional blank lines after USE statement * murrant suggested a much cleaner way of doing this! * fix snmp engine time (#9470) * Added more sensors for IRD (PBI Digital Decoder) (#9339) * added over bitrate graph * added bitrate * added more state sensors * Update ird.snmprec * Update ird.json * Update Ird.php * Update Ird.php * Update Ird.php * Update ird.json * Updated json test data * Update ird.snmprec * Updated json data * fix test value * fix num_oid * Add new sysDescr string for AlliedWare Plus products. (#9430) * Add new sysDescr string for AlliedWare Plus products. Release 5.4.8-2.1 of AlliedWare Plus will change the format of the sysDescr string. This patch updates Allied Telesis yaml files to work with this change. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * save-test-data.php: Use correct variable for 'os' argument. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * Create awplus_5.4.8-2.json * Update awplus_5.4.8-2.json * add a tool for working with JSON apps (#9084) * add initial work on script for working with json apps * finish the code portion * -h now done * rename it to be slightly more accurate * make hash key strings * exit if -a is not present * now exit after checking the file if -s or -t is given * now properly add the applications key * snmp_max_oid per Os support and snmpv1 multi_oid fix (#9343) * Added snmp_max_oid config at Os level. * Added check for snmpv1 on multi_oid requests. * Check device_oid_limit on multi get * Use array_chunk * Update snmp.inc.php * remove dump, unused variable and extra plodes * per device settings should take priority over OS * Update Settings.md * don't discard the data :P * fixing option to let user pick saved test data filename, exit if ther… (#9242) * fixing option to let user pick saved test data filename, exit if there are many os/variant combination for a single output filename * fixing style issues * Update save-test-data.php * Update save-test-data.php * Add support for Firebrick Hardware (#9403) * Added support for Firebrick devices * Added support for Firebrick devices * Update firebrick.inc.php * Update firebrick.inc.php * Update firebrick.svg * Update firebrick.svg * Added SNMP Check * Added SVG View Box * Display XML in config tab * Update firebrick.svg * Update firebrick.yaml * Update showconfig.inc.php * Create firebrick.json * Check sysDescr for JunOS version. (#9247) * Cisco: change notKnown status to unknown and not warning (#9222) * Cisco: change notKnown status to unknown and not warning * Update cisco.inc.php * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Update SQL-Schema File Name * Update SQL-Schema File Name * add app for getting status of TCP connections for specified services (#8090) * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * remove dump of get_portactivity_ports function added during rebase * update to the current json_app_get * add portactivity snmprec * add the portactivity test data * whoops bad merge when rebasing... fix * minor formatting cleanup and add a missing comma * fix some odditities with what one of the tests is doing * whoops... include the use for the exception * set the response to okay * attempt to make snmpsim array check happy again * the json now lints * more making metric testing happy * one more update to make travis-ci happy * now flattens arrays also add array_flatten * rename array_flatten to data_flatten as pre-commit chokes on it as laravel has something similarly named * go through and properly add all the metrics * tested with the newest one and it works * whoops, clean up json and remove prototype that was used when putting it together * doh! make it happy with laravel now * see if a minor changing in formatting for the numbers makes the polling unit test happy * order them properly * remove a comma * a few more minor fixes * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * Fix do not include template text in HTML page (#9476) * Fixed $speed lenght in port parser when > 32 characters (#9479) * Fix global read check for demo account (#9482) * Improve documentation for service plugins (#9414) * Begin adding preinstalled plugin documentation. Also add information about how the titles of the plugins are displayed and detected. Make page visible on the websites Table of Contents. * Add note about plugin loading based on file name. * Added all monitoring-plugins URLs. * Format URLs on the service plugin docs list. * Correct a URL on the plugins list. * Removed leftover text from plugin list docs. * Add pkg-nagios-plugins-contrib plugins to docs. * Add DSA pkg-nagios-plugins-contrib plugins to docs * Added a few missing lines of pkg-nagios-plugins-contrib text. * Remove links plugins we dont have URL for. Add a few more pkg-nagios-plugins-contrib ones. * Remove list. Point to the main sources directly. * order by sensor_descr aswell (#9478) Sort sensors by sensor_descr * Fix os additional information for some that were broke (#9466) * Fix os additional information for several OS. $poll_device is not available, use $device * fix draytek test data * Fixed Procera ports ifIndex and ports added by the poller (#9384) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change group owner for php/session for CentOS 7 nginx install (#9393) By default on CentOS 7, /var/lib/php/session is root:root. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Refactored and update Location Geocoding (#9359) - Fix location so it is a regular database relation (this allows multiple devices to be accurately linked to one location and saves api calls) - Parse coordinates from the location more consistently - Add settings to webui - ~~Used [PHP Geocoder](http://geocoder-php.org/), which has lots of backends and is well tested. (also includes reverse and geoip)~~ - Google Maps, Bing, Mapquest, and OpenStreetMap supported initially. - Default to OpenStreetMap, which doesn't require a key. They will liberally hand out bans if you exceed 1 query per second though. - All other Geocoding APIs require an API key. (Google requires a credit card on file, but seems to be the most accurate) - Update all (I think) sql queries to handle the new structure - Remove final vestiges of override_sysLocation as a device attribute - Update existing device groups and rules in DB - Tested all APIs with good/bad location, no/bad/good key, and no connection. - Cannot fix advanced queries that use location This blocks #8868 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Aprisa support (#9435) * Created 4RF Aprisa XE support * Made requesed change by @laf * cleanup * Fix sensor index and add test data * Added support for Waystream products (#9481) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. This has been running in two production networks for > 3 months without any issues. * Marathon detection * support for Marathon based UPSs * added Marathon Power logo * testing marathon ups * Fix for #9485 (#9486) * Fix for #9485 * Update ajax_search.php * Testing Maraton ups device type * Fix issues cause by new location and other misc (#9490) * Fix issues cause by new location and other misc fix some queries so we return devices with null locations remove unnecessary query of all ports on ports page lists make locations menu available to non-admins for the legacy menu fix a few issues with the old network-map * fix graphs * fix oxidized query * added rfc1628 compat and removed discovery file * small changes to verbiage * Changes to display * Fixed test on over section * Removed Current graph. Not available from this device. * Locations UI and editing (#9480) * Better handling of errors Mapquest seems to return the center of the US on error....... * Editable locations WIP * Change to bootgrid ajax table WIP * Graphs working, using handlebars update js libs add current location button * remove sql query, change icon * Add the map to the device view, only when gps is expanded. Allow edit on device page, share js code * fix chevron rotation, improve click area * extra warning * fix overview layout (remove containers) * fix style * fix html divs, change collapse ui a bit move css, update css/js versions * start zoomed out on new locations * don't double load scripts, zoom to 17 * fix php-md errors, remove unused use statement * improve non-admin experience * Move locations page to Laravel More functions in Url and Html util classes reduce code duplication * translation buttons too * fix whitespace * move formatters to the frontend * small changes * disable traffic for locations with no devices * change down 0 to green from gray * missing " * Fix paginate all * working fix for paginate all * allow sort by counts * fix down sort * a little safety * Don't call the function twice * btn-xs * Added json test data * Fix locations page search (#9501) * Add bing layer to leaflet (#9497) Also, polyfill for IE used by both bing and google maps * Change locations default sort order (#9502) * changed variable name to resolve issue with Gitlab transport * removed else to satisfy codeclimate checks * changed tabs to spaces * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Added changelog for 1.46 release (#9510) * Add additional composite index to speed up display of pages where a device has a lot of syslogs. In our environment, this took page loads for some devices from over 60 seconds to nearly instant * Forgot to add db_schema.yaml in previous commit * Update cucs mib to fix warnings (#9517) * Added HPE Comware temperature limit (#9518) Changed the Temperature High threshold for a HPE Comware Switch to the values provided by snmp. This means the actual threshold configured in the switch is used over any predefined/auto calculated thresholds by LibreNMS. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Comtrol device detection (#9491) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed integers fields in alert rules to be string (#9496) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Focus and select location on override (#9503) * Focus and select location on override * Submit location on enter key * SAF CFM wireless device support (#9450) * Added support for SAF CFM L4 wireless device * Added copyright statement according to LibreNMS documentation * Added snmp test data and excluded some discover modules from os definition * Style issue fixed * More descriptive function * MIB file rename * Rename MIB file and change other files accordingly * Added test data * Removed debug statement * Last checks * Style changes * Style changes * Style changes * Style changes * Code restructure to make it more readable * Fixed error in foreach * Style issues * Formatting of states within Yaml changed to make it more readable * Omit default arguments * Better code and modules only in CFM-M4P-MUX * Chaged cfml4 to cfm * Update Sensor.php * Update Sensor.php * Better handling of scientific numbers * Better handling of scientific numbers * New test data * Correction on handling trailing zeros * Different way of cleaning the numbers based on Tony's input * Audiocodes initial support (#9508) * Create audiocodes family with very basic sensors * audiocode polling php and test files * audiocode polling php and test files * audiocode test files * audiocode cleaning * tests with selective polling disabled * GitHub test script updates (#9507) * GitHub test script updates add --reject to apply so it will skip binary files since GitHub does not create diffs for them correctly Add new directories to the removal cleanup. Remove non-existant ones. * Cleaner way to apply skip png files explicitly. That way patches are still atomic. * [UI] Fix last column of table (#9506) * [UI] Fix last column of table * move td outside of if and remove else * Add Device Dragonwave Harmony Enhanced (#9499) * Add Dragonwave Harmony Enhanced MC Device * Remove single quote from null and 10 divisor * Update and rename HarmonyEnhancedMc.php to HarmonyEnhanced.php * Rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Update and rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Rename harmony-enhanced-mc.inc.php to harmony-enhanced.inc.php * Rename harmony-enhanced-mc.snmprec to harmony-enhanced.snmprec * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * More Code Climate Fixes * Create harmony-enhanced.json * Dynamic_discovery_get_value in can_skip_sensor to use all oids in skip_values (#9495) * Use of dynamic_discovery_get_value in can_skip_sensor in order to use all available oids in skip_values * Use LibreNMS\Device\YamlDiscovery code instead of keeping duplicated function can_skip_sensor * Fix Travis errors * Device management fall back to http if https isn't available. Adds a slight delay on management clicking, may be blocked by popup blocker... * Updated harmony OS poller to use multi get (#9525) * docs: fix images doc (#9527) There is no capital I in the password... * fix error when location is missing from the DB (#9523) * get geolocation at first poll (#9522) * get geolocation at first poll based on the logic of code, we will have to wait 2 days from adding new device for lat and lng to be updated * Update Location.php * Update Location.php * Fixed Typo in YamlDiscovery.php (#9530) Hi, As far as I understand the code, it seems that array_reduce should be array_replace in this line, isn't it ? PipoCanaja 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed alert log showing only green instead of all by default (#9529) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. By default, when you access Alert History it was showing only OK (Green) ones instead of all. You had to hit filter to show them. * Fixed customers page (#9521) move customers table backend to Laravel 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added detection if this is a git based install or not. (#9379) Not sure about the warning or text. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change snmp-scan heading (#9492) * Fixed plugins using d_echo (#9498) Move d_echo to helpers.php and include in autoload Don't remove from common.php yet to be extra safe. * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * test github * test github * test git * test git * Added Network Access Control polling and store on DB * Added Network Access Control polling and store on DB * Added NAC tab on device page * Added NAC tab on device page * Added NAC tab page on device main page * Added NAC tab page on device main page * Fixed Auth ID data parsing * Fixed Auth ID data parsing * Filter Device ID on NAC Tab page * Filter Device ID on NAC Tab page * Converted IP Address form HEX to DEC format * Converted IP Address form HEX to DEC format * Formated grid on NAC print page * Formated grid on NAC print page * Added AuthC status * Added AuthC status * removed useless lines * removed useless lines * Fix some typos * Fix some typos * Fix Code Climate Issues * Fix Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * converted dbQuery() to dbUpdate() * converted dbQuery() to dbUpdate() * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Removed Hex to Dec test codes * Removed Hex to Dec test codes * removed unused classes * removed unused classes * Change my own IP Hex to Dec conversion to IP::fromHexString Class * Change my own IP Hex to Dec conversion to IP::fromHexString Class * CLA Signature * CLA Signature * Merge all dbUpdate on only one call * Merge all dbUpdate on only one call * Replaced Table to Bootgrid * Replaced Table to Bootgrid * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * no way to set device attrib and no need... * no way to set device attrib and no need... * add db schema * add db schema * fix link in device page, links for ports * fix link in device page, links for ports * Use ajax for table * Use ajax for table * fix tests * fix tests * change the columns to find existing entries to port_id and PortAuthSessionDomain * change the columns to find existing entries to port_id and PortAuthSessionDomain * Update 274.sql * Update 274.sql * Reorder Columns on NAC Page to Better Presentation * Reorder Columns on NAC Page to Better Presentation * rename database columns and update schema * rename database columns and update schema * add iftype to test data, rename variable * add iftype to test data, rename variable * correct types... * correct types... * Update 274.sql * Update 274.sql * order capture output * Add model observer for nicer discovery output * Add copyright to poller module * Handle multiAuth, multiDomain and normal modes seperatly for determining unique entries. * Use mac_address as the unique identifier * update index * Improve the data variety a bit * remove accidental schema
2018-12-20 03:18:30 +00:00
ports_nac:
Columns:
- { Field: ports_nac_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
NAC Polling (Network Access Control) (#9227) * RouterOS wireless sensors update (#9401) * bug-fix and new features Fixed incorrect OID for rate, renamed rate to TX-Rate as per update from mikrotik. Added support for link distance * Fixed indent issue * Added support for using Transport name in templates (#9411) * Added ability to sort alert schedules by status (#9257) Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixed alert util (#9428) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed AlertUtil - again (#9429) * Update BEGEMOT-HAST-MIB (#9427) FIX: Due to a missing import and the uppercase after some SYNTAX this mib is not bein compiled correctly everywhere. For example the one from Horizon OpenNMS fails with some errors ERROR: Cannot find symbol UNSIGNED32, Source: BEGEMOT-HAST-MIB.txt, Row: 321, Col: 17 The proposed change prevent the errors. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Fixes delta calculation for bgpPeers_cbgp metrics (#9431) The values in the $peer['c_update'][$oid] array are set only if they have changed. If the value has not changed, then zero is substituted for real values, which leads to incorrect calculation of delta values and records in the database: SELECT AcceptedPrefixes,AcceptedPrefixes_prev,AcceptedPrefixes_delta FROM bgpPeers_cbgp WHERE device_id=115; | AcceptedPrefixes | AcceptedPrefixes_prev | AcceptedPrefixes_delta | |------------------|-----------------------|------------------------| | 21 | 21 | -21 | 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Improve Junos state sensor discovery (#9426) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. Tested on MX and EX series, works fine. Skip slots that are empty and pull all sensors in jnxFruTable, data from old code is preserved. * Added alerts schedule notes into device notes (#9258) * Add alerts schedule notes into device notes Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Update preferences.inc.php * Show port description and dns name in FDB table (#9370) - Added Port Description field to FDB Table - Added DNS Name field to FDB Table - Fixed sorting by port in FDB Table 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update draytek.inc.php (#9432) * Removed unnecessary model checks in HiveOS Wireless (#9409) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added format field to Telegram Messages (#9404) * Add format field to Telegram Messages Added Telegram field to send formatted messages as Mardown or HTML * Update Telegram.php * Correct Mistypo. * Correct mistypo * Correct Mistypo * Correct mistypo * Update Transports.md * Add Format field on Telegram Examples * Change Telegram Format field to type select * Add "blank" option to Format field * Update Telegram.php * Update Telegram.php * Update Telegram.php * Disable page refresh on health sensors pages, autorefresh most tables (#9386) * Disable page refresh on health sensors pages Refresh all bootgrid tables every 5 minutes * Update legacy_index.php * Update librenmsv1.blade.php * Style cleanup in hiveos file (#9440) Fix code style check for https://github.com/librenms/librenms/pull/9438 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Ensure the checks for ASA context devices are strict (#9441) * Show visually in webui + cli when using deprecated templates or transports (#9413) * Show visually in webui + cli when using deprecated templates or transports * Fixed query * Added Bing geocode lookup support (#9434) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added ScreenOS Syslog Hook (#9438) * Add ScreenOS Syslog Hook Adds Syslog Hook for ScreenOS https://community.librenms.org/t/juniper-screenos-syslog-hook/6146 * Update Syslog.md * Update syslog-notify-oxidized.php * Discovery YAML. Do not implicitly append $index (#9315) Require it explicitly. Makes it easier to understand and matches the style of other values Questionable YAML changes (either broken before or now broken): secureplatform: haStatCode ptp600: receiveModulationMode 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Syslog.md (#9443) Fixed the screenOS output added in #9438 which was confusing mkdocs output. Refer to the docs currently https://docs.librenms.org/Extensions/Syslog/ - It's all mashed up at the bottom 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fix ping.php poller groups setting confusion between dispatch(new PingCheck($groups)) and PingCheck::dispatch($groups) * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Created sql-schema (261) * Created sql-schema (261) * Update docs for virtual images (#9456) * Added Traffic to the Windows OS overlib graph (#9445) WebUI: added Traffic to the Windows OS overlib graph 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update World-Map.md to include pros/cons (#9442) 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. - [ ] 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added allow ipv6 address localhost nginx-status docs (#9458) Following the modification of the SNMP Nginx agent (https://github.com/librenms/librenms-agent/commit/e0dcd4a064cedb09241e4af17198bf61e8fd1bf3), linux distributions make requests in IPV6, so you must allow ::1 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed altering transport mapping in rules clearing all mappings (#9455) * Change unpolled devices toast to be based on rrd step (#9391) * Change unpolled devices toast to be based on rrd step * Update message Change it back to 3x * Added resources/links and devices/hostname/links API calls for xDP (#9444) * api: Add list_links and get_link api calls Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * api: Add get_links api call Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * Update detection for Allied and Radlan OS (#9454) "1.3.6.1.4.1.207.1.4.128" is currently reporting as allied, when it should be reporting as radlan. Refer to https://community.librenms.org/t/allied-telesis-discovery/6189/8 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Updated HiveOS wireless detection (#9459) * Added ability to record traceroutes for devices down due to ICMP (#9457) * Added ability to record traceroutes for devices down due to ICMP * Update Templates.md * Updated schema * Update dev-overview-data.inc.php * Filter email options based on backend in Alert settings (#9461) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Configuration.md * Updated detection for AKCP devices (#9460) * Updated support for Avocent devices (#9462) * Updated support for Avocent devices * Add ACS8048 hardware to json * Update avocent.inc.php * Update avocent_8000.json * Syslog name translation (#9463) * Check to see if a host exists in a lookup table to translate received name to what LibreNMS knows * Added some documentation on how this is configured * Use \LibreNMS\Config instead of accessing $config directly * Fix codeclimate finding: Additional blank lines after USE statement * murrant suggested a much cleaner way of doing this! * fix snmp engine time (#9470) * Added more sensors for IRD (PBI Digital Decoder) (#9339) * added over bitrate graph * added bitrate * added more state sensors * Update ird.snmprec * Update ird.json * Update Ird.php * Update Ird.php * Update Ird.php * Update ird.json * Updated json test data * Update ird.snmprec * Updated json data * fix test value * fix num_oid * Add new sysDescr string for AlliedWare Plus products. (#9430) * Add new sysDescr string for AlliedWare Plus products. Release 5.4.8-2.1 of AlliedWare Plus will change the format of the sysDescr string. This patch updates Allied Telesis yaml files to work with this change. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * save-test-data.php: Use correct variable for 'os' argument. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * Create awplus_5.4.8-2.json * Update awplus_5.4.8-2.json * add a tool for working with JSON apps (#9084) * add initial work on script for working with json apps * finish the code portion * -h now done * rename it to be slightly more accurate * make hash key strings * exit if -a is not present * now exit after checking the file if -s or -t is given * now properly add the applications key * snmp_max_oid per Os support and snmpv1 multi_oid fix (#9343) * Added snmp_max_oid config at Os level. * Added check for snmpv1 on multi_oid requests. * Check device_oid_limit on multi get * Use array_chunk * Update snmp.inc.php * remove dump, unused variable and extra plodes * per device settings should take priority over OS * Update Settings.md * don't discard the data :P * fixing option to let user pick saved test data filename, exit if ther… (#9242) * fixing option to let user pick saved test data filename, exit if there are many os/variant combination for a single output filename * fixing style issues * Update save-test-data.php * Update save-test-data.php * Add support for Firebrick Hardware (#9403) * Added support for Firebrick devices * Added support for Firebrick devices * Update firebrick.inc.php * Update firebrick.inc.php * Update firebrick.svg * Update firebrick.svg * Added SNMP Check * Added SVG View Box * Display XML in config tab * Update firebrick.svg * Update firebrick.yaml * Update showconfig.inc.php * Create firebrick.json * Check sysDescr for JunOS version. (#9247) * Cisco: change notKnown status to unknown and not warning (#9222) * Cisco: change notKnown status to unknown and not warning * Update cisco.inc.php * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Update SQL-Schema File Name * Update SQL-Schema File Name * add app for getting status of TCP connections for specified services (#8090) * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * remove dump of get_portactivity_ports function added during rebase * update to the current json_app_get * add portactivity snmprec * add the portactivity test data * whoops bad merge when rebasing... fix * minor formatting cleanup and add a missing comma * fix some odditities with what one of the tests is doing * whoops... include the use for the exception * set the response to okay * attempt to make snmpsim array check happy again * the json now lints * more making metric testing happy * one more update to make travis-ci happy * now flattens arrays also add array_flatten * rename array_flatten to data_flatten as pre-commit chokes on it as laravel has something similarly named * go through and properly add all the metrics * tested with the newest one and it works * whoops, clean up json and remove prototype that was used when putting it together * doh! make it happy with laravel now * see if a minor changing in formatting for the numbers makes the polling unit test happy * order them properly * remove a comma * a few more minor fixes * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * Fix do not include template text in HTML page (#9476) * Fixed $speed lenght in port parser when > 32 characters (#9479) * Fix global read check for demo account (#9482) * Improve documentation for service plugins (#9414) * Begin adding preinstalled plugin documentation. Also add information about how the titles of the plugins are displayed and detected. Make page visible on the websites Table of Contents. * Add note about plugin loading based on file name. * Added all monitoring-plugins URLs. * Format URLs on the service plugin docs list. * Correct a URL on the plugins list. * Removed leftover text from plugin list docs. * Add pkg-nagios-plugins-contrib plugins to docs. * Add DSA pkg-nagios-plugins-contrib plugins to docs * Added a few missing lines of pkg-nagios-plugins-contrib text. * Remove links plugins we dont have URL for. Add a few more pkg-nagios-plugins-contrib ones. * Remove list. Point to the main sources directly. * order by sensor_descr aswell (#9478) Sort sensors by sensor_descr * Fix os additional information for some that were broke (#9466) * Fix os additional information for several OS. $poll_device is not available, use $device * fix draytek test data * Fixed Procera ports ifIndex and ports added by the poller (#9384) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change group owner for php/session for CentOS 7 nginx install (#9393) By default on CentOS 7, /var/lib/php/session is root:root. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Refactored and update Location Geocoding (#9359) - Fix location so it is a regular database relation (this allows multiple devices to be accurately linked to one location and saves api calls) - Parse coordinates from the location more consistently - Add settings to webui - ~~Used [PHP Geocoder](http://geocoder-php.org/), which has lots of backends and is well tested. (also includes reverse and geoip)~~ - Google Maps, Bing, Mapquest, and OpenStreetMap supported initially. - Default to OpenStreetMap, which doesn't require a key. They will liberally hand out bans if you exceed 1 query per second though. - All other Geocoding APIs require an API key. (Google requires a credit card on file, but seems to be the most accurate) - Update all (I think) sql queries to handle the new structure - Remove final vestiges of override_sysLocation as a device attribute - Update existing device groups and rules in DB - Tested all APIs with good/bad location, no/bad/good key, and no connection. - Cannot fix advanced queries that use location This blocks #8868 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Aprisa support (#9435) * Created 4RF Aprisa XE support * Made requesed change by @laf * cleanup * Fix sensor index and add test data * Added support for Waystream products (#9481) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. This has been running in two production networks for > 3 months without any issues. * Marathon detection * support for Marathon based UPSs * added Marathon Power logo * testing marathon ups * Fix for #9485 (#9486) * Fix for #9485 * Update ajax_search.php * Testing Maraton ups device type * Fix issues cause by new location and other misc (#9490) * Fix issues cause by new location and other misc fix some queries so we return devices with null locations remove unnecessary query of all ports on ports page lists make locations menu available to non-admins for the legacy menu fix a few issues with the old network-map * fix graphs * fix oxidized query * added rfc1628 compat and removed discovery file * small changes to verbiage * Changes to display * Fixed test on over section * Removed Current graph. Not available from this device. * Locations UI and editing (#9480) * Better handling of errors Mapquest seems to return the center of the US on error....... * Editable locations WIP * Change to bootgrid ajax table WIP * Graphs working, using handlebars update js libs add current location button * remove sql query, change icon * Add the map to the device view, only when gps is expanded. Allow edit on device page, share js code * fix chevron rotation, improve click area * extra warning * fix overview layout (remove containers) * fix style * fix html divs, change collapse ui a bit move css, update css/js versions * start zoomed out on new locations * don't double load scripts, zoom to 17 * fix php-md errors, remove unused use statement * improve non-admin experience * Move locations page to Laravel More functions in Url and Html util classes reduce code duplication * translation buttons too * fix whitespace * move formatters to the frontend * small changes * disable traffic for locations with no devices * change down 0 to green from gray * missing " * Fix paginate all * working fix for paginate all * allow sort by counts * fix down sort * a little safety * Don't call the function twice * btn-xs * Added json test data * Fix locations page search (#9501) * Add bing layer to leaflet (#9497) Also, polyfill for IE used by both bing and google maps * Change locations default sort order (#9502) * changed variable name to resolve issue with Gitlab transport * removed else to satisfy codeclimate checks * changed tabs to spaces * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Added changelog for 1.46 release (#9510) * Add additional composite index to speed up display of pages where a device has a lot of syslogs. In our environment, this took page loads for some devices from over 60 seconds to nearly instant * Forgot to add db_schema.yaml in previous commit * Update cucs mib to fix warnings (#9517) * Added HPE Comware temperature limit (#9518) Changed the Temperature High threshold for a HPE Comware Switch to the values provided by snmp. This means the actual threshold configured in the switch is used over any predefined/auto calculated thresholds by LibreNMS. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Comtrol device detection (#9491) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed integers fields in alert rules to be string (#9496) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Focus and select location on override (#9503) * Focus and select location on override * Submit location on enter key * SAF CFM wireless device support (#9450) * Added support for SAF CFM L4 wireless device * Added copyright statement according to LibreNMS documentation * Added snmp test data and excluded some discover modules from os definition * Style issue fixed * More descriptive function * MIB file rename * Rename MIB file and change other files accordingly * Added test data * Removed debug statement * Last checks * Style changes * Style changes * Style changes * Style changes * Code restructure to make it more readable * Fixed error in foreach * Style issues * Formatting of states within Yaml changed to make it more readable * Omit default arguments * Better code and modules only in CFM-M4P-MUX * Chaged cfml4 to cfm * Update Sensor.php * Update Sensor.php * Better handling of scientific numbers * Better handling of scientific numbers * New test data * Correction on handling trailing zeros * Different way of cleaning the numbers based on Tony's input * Audiocodes initial support (#9508) * Create audiocodes family with very basic sensors * audiocode polling php and test files * audiocode polling php and test files * audiocode test files * audiocode cleaning * tests with selective polling disabled * GitHub test script updates (#9507) * GitHub test script updates add --reject to apply so it will skip binary files since GitHub does not create diffs for them correctly Add new directories to the removal cleanup. Remove non-existant ones. * Cleaner way to apply skip png files explicitly. That way patches are still atomic. * [UI] Fix last column of table (#9506) * [UI] Fix last column of table * move td outside of if and remove else * Add Device Dragonwave Harmony Enhanced (#9499) * Add Dragonwave Harmony Enhanced MC Device * Remove single quote from null and 10 divisor * Update and rename HarmonyEnhancedMc.php to HarmonyEnhanced.php * Rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Update and rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Rename harmony-enhanced-mc.inc.php to harmony-enhanced.inc.php * Rename harmony-enhanced-mc.snmprec to harmony-enhanced.snmprec * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * More Code Climate Fixes * Create harmony-enhanced.json * Dynamic_discovery_get_value in can_skip_sensor to use all oids in skip_values (#9495) * Use of dynamic_discovery_get_value in can_skip_sensor in order to use all available oids in skip_values * Use LibreNMS\Device\YamlDiscovery code instead of keeping duplicated function can_skip_sensor * Fix Travis errors * Device management fall back to http if https isn't available. Adds a slight delay on management clicking, may be blocked by popup blocker... * Updated harmony OS poller to use multi get (#9525) * docs: fix images doc (#9527) There is no capital I in the password... * fix error when location is missing from the DB (#9523) * get geolocation at first poll (#9522) * get geolocation at first poll based on the logic of code, we will have to wait 2 days from adding new device for lat and lng to be updated * Update Location.php * Update Location.php * Fixed Typo in YamlDiscovery.php (#9530) Hi, As far as I understand the code, it seems that array_reduce should be array_replace in this line, isn't it ? PipoCanaja 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed alert log showing only green instead of all by default (#9529) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. By default, when you access Alert History it was showing only OK (Green) ones instead of all. You had to hit filter to show them. * Fixed customers page (#9521) move customers table backend to Laravel 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added detection if this is a git based install or not. (#9379) Not sure about the warning or text. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change snmp-scan heading (#9492) * Fixed plugins using d_echo (#9498) Move d_echo to helpers.php and include in autoload Don't remove from common.php yet to be extra safe. * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * test github * test github * test git * test git * Added Network Access Control polling and store on DB * Added Network Access Control polling and store on DB * Added NAC tab on device page * Added NAC tab on device page * Added NAC tab page on device main page * Added NAC tab page on device main page * Fixed Auth ID data parsing * Fixed Auth ID data parsing * Filter Device ID on NAC Tab page * Filter Device ID on NAC Tab page * Converted IP Address form HEX to DEC format * Converted IP Address form HEX to DEC format * Formated grid on NAC print page * Formated grid on NAC print page * Added AuthC status * Added AuthC status * removed useless lines * removed useless lines * Fix some typos * Fix some typos * Fix Code Climate Issues * Fix Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * converted dbQuery() to dbUpdate() * converted dbQuery() to dbUpdate() * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Removed Hex to Dec test codes * Removed Hex to Dec test codes * removed unused classes * removed unused classes * Change my own IP Hex to Dec conversion to IP::fromHexString Class * Change my own IP Hex to Dec conversion to IP::fromHexString Class * CLA Signature * CLA Signature * Merge all dbUpdate on only one call * Merge all dbUpdate on only one call * Replaced Table to Bootgrid * Replaced Table to Bootgrid * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * no way to set device attrib and no need... * no way to set device attrib and no need... * add db schema * add db schema * fix link in device page, links for ports * fix link in device page, links for ports * Use ajax for table * Use ajax for table * fix tests * fix tests * change the columns to find existing entries to port_id and PortAuthSessionDomain * change the columns to find existing entries to port_id and PortAuthSessionDomain * Update 274.sql * Update 274.sql * Reorder Columns on NAC Page to Better Presentation * Reorder Columns on NAC Page to Better Presentation * rename database columns and update schema * rename database columns and update schema * add iftype to test data, rename variable * add iftype to test data, rename variable * correct types... * correct types... * Update 274.sql * Update 274.sql * order capture output * Add model observer for nicer discovery output * Add copyright to poller module * Handle multiAuth, multiDomain and normal modes seperatly for determining unique entries. * Use mac_address as the unique identifier * update index * Improve the data variety a bit * remove accidental schema
2018-12-20 03:18:30 +00:00
- { Field: auth_id, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
NAC Polling (Network Access Control) (#9227) * RouterOS wireless sensors update (#9401) * bug-fix and new features Fixed incorrect OID for rate, renamed rate to TX-Rate as per update from mikrotik. Added support for link distance * Fixed indent issue * Added support for using Transport name in templates (#9411) * Added ability to sort alert schedules by status (#9257) Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixed alert util (#9428) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed AlertUtil - again (#9429) * Update BEGEMOT-HAST-MIB (#9427) FIX: Due to a missing import and the uppercase after some SYNTAX this mib is not bein compiled correctly everywhere. For example the one from Horizon OpenNMS fails with some errors ERROR: Cannot find symbol UNSIGNED32, Source: BEGEMOT-HAST-MIB.txt, Row: 321, Col: 17 The proposed change prevent the errors. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Fixes delta calculation for bgpPeers_cbgp metrics (#9431) The values in the $peer['c_update'][$oid] array are set only if they have changed. If the value has not changed, then zero is substituted for real values, which leads to incorrect calculation of delta values and records in the database: SELECT AcceptedPrefixes,AcceptedPrefixes_prev,AcceptedPrefixes_delta FROM bgpPeers_cbgp WHERE device_id=115; | AcceptedPrefixes | AcceptedPrefixes_prev | AcceptedPrefixes_delta | |------------------|-----------------------|------------------------| | 21 | 21 | -21 | 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Improve Junos state sensor discovery (#9426) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. Tested on MX and EX series, works fine. Skip slots that are empty and pull all sensors in jnxFruTable, data from old code is preserved. * Added alerts schedule notes into device notes (#9258) * Add alerts schedule notes into device notes Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Update preferences.inc.php * Show port description and dns name in FDB table (#9370) - Added Port Description field to FDB Table - Added DNS Name field to FDB Table - Fixed sorting by port in FDB Table 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update draytek.inc.php (#9432) * Removed unnecessary model checks in HiveOS Wireless (#9409) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added format field to Telegram Messages (#9404) * Add format field to Telegram Messages Added Telegram field to send formatted messages as Mardown or HTML * Update Telegram.php * Correct Mistypo. * Correct mistypo * Correct Mistypo * Correct mistypo * Update Transports.md * Add Format field on Telegram Examples * Change Telegram Format field to type select * Add "blank" option to Format field * Update Telegram.php * Update Telegram.php * Update Telegram.php * Disable page refresh on health sensors pages, autorefresh most tables (#9386) * Disable page refresh on health sensors pages Refresh all bootgrid tables every 5 minutes * Update legacy_index.php * Update librenmsv1.blade.php * Style cleanup in hiveos file (#9440) Fix code style check for https://github.com/librenms/librenms/pull/9438 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Ensure the checks for ASA context devices are strict (#9441) * Show visually in webui + cli when using deprecated templates or transports (#9413) * Show visually in webui + cli when using deprecated templates or transports * Fixed query * Added Bing geocode lookup support (#9434) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added ScreenOS Syslog Hook (#9438) * Add ScreenOS Syslog Hook Adds Syslog Hook for ScreenOS https://community.librenms.org/t/juniper-screenos-syslog-hook/6146 * Update Syslog.md * Update syslog-notify-oxidized.php * Discovery YAML. Do not implicitly append $index (#9315) Require it explicitly. Makes it easier to understand and matches the style of other values Questionable YAML changes (either broken before or now broken): secureplatform: haStatCode ptp600: receiveModulationMode 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Syslog.md (#9443) Fixed the screenOS output added in #9438 which was confusing mkdocs output. Refer to the docs currently https://docs.librenms.org/Extensions/Syslog/ - It's all mashed up at the bottom 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fix ping.php poller groups setting confusion between dispatch(new PingCheck($groups)) and PingCheck::dispatch($groups) * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Created sql-schema (261) * Created sql-schema (261) * Update docs for virtual images (#9456) * Added Traffic to the Windows OS overlib graph (#9445) WebUI: added Traffic to the Windows OS overlib graph 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update World-Map.md to include pros/cons (#9442) 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. - [ ] 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added allow ipv6 address localhost nginx-status docs (#9458) Following the modification of the SNMP Nginx agent (https://github.com/librenms/librenms-agent/commit/e0dcd4a064cedb09241e4af17198bf61e8fd1bf3), linux distributions make requests in IPV6, so you must allow ::1 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed altering transport mapping in rules clearing all mappings (#9455) * Change unpolled devices toast to be based on rrd step (#9391) * Change unpolled devices toast to be based on rrd step * Update message Change it back to 3x * Added resources/links and devices/hostname/links API calls for xDP (#9444) * api: Add list_links and get_link api calls Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * api: Add get_links api call Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * Update detection for Allied and Radlan OS (#9454) "1.3.6.1.4.1.207.1.4.128" is currently reporting as allied, when it should be reporting as radlan. Refer to https://community.librenms.org/t/allied-telesis-discovery/6189/8 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Updated HiveOS wireless detection (#9459) * Added ability to record traceroutes for devices down due to ICMP (#9457) * Added ability to record traceroutes for devices down due to ICMP * Update Templates.md * Updated schema * Update dev-overview-data.inc.php * Filter email options based on backend in Alert settings (#9461) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Configuration.md * Updated detection for AKCP devices (#9460) * Updated support for Avocent devices (#9462) * Updated support for Avocent devices * Add ACS8048 hardware to json * Update avocent.inc.php * Update avocent_8000.json * Syslog name translation (#9463) * Check to see if a host exists in a lookup table to translate received name to what LibreNMS knows * Added some documentation on how this is configured * Use \LibreNMS\Config instead of accessing $config directly * Fix codeclimate finding: Additional blank lines after USE statement * murrant suggested a much cleaner way of doing this! * fix snmp engine time (#9470) * Added more sensors for IRD (PBI Digital Decoder) (#9339) * added over bitrate graph * added bitrate * added more state sensors * Update ird.snmprec * Update ird.json * Update Ird.php * Update Ird.php * Update Ird.php * Update ird.json * Updated json test data * Update ird.snmprec * Updated json data * fix test value * fix num_oid * Add new sysDescr string for AlliedWare Plus products. (#9430) * Add new sysDescr string for AlliedWare Plus products. Release 5.4.8-2.1 of AlliedWare Plus will change the format of the sysDescr string. This patch updates Allied Telesis yaml files to work with this change. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * save-test-data.php: Use correct variable for 'os' argument. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * Create awplus_5.4.8-2.json * Update awplus_5.4.8-2.json * add a tool for working with JSON apps (#9084) * add initial work on script for working with json apps * finish the code portion * -h now done * rename it to be slightly more accurate * make hash key strings * exit if -a is not present * now exit after checking the file if -s or -t is given * now properly add the applications key * snmp_max_oid per Os support and snmpv1 multi_oid fix (#9343) * Added snmp_max_oid config at Os level. * Added check for snmpv1 on multi_oid requests. * Check device_oid_limit on multi get * Use array_chunk * Update snmp.inc.php * remove dump, unused variable and extra plodes * per device settings should take priority over OS * Update Settings.md * don't discard the data :P * fixing option to let user pick saved test data filename, exit if ther… (#9242) * fixing option to let user pick saved test data filename, exit if there are many os/variant combination for a single output filename * fixing style issues * Update save-test-data.php * Update save-test-data.php * Add support for Firebrick Hardware (#9403) * Added support for Firebrick devices * Added support for Firebrick devices * Update firebrick.inc.php * Update firebrick.inc.php * Update firebrick.svg * Update firebrick.svg * Added SNMP Check * Added SVG View Box * Display XML in config tab * Update firebrick.svg * Update firebrick.yaml * Update showconfig.inc.php * Create firebrick.json * Check sysDescr for JunOS version. (#9247) * Cisco: change notKnown status to unknown and not warning (#9222) * Cisco: change notKnown status to unknown and not warning * Update cisco.inc.php * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Update SQL-Schema File Name * Update SQL-Schema File Name * add app for getting status of TCP connections for specified services (#8090) * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * remove dump of get_portactivity_ports function added during rebase * update to the current json_app_get * add portactivity snmprec * add the portactivity test data * whoops bad merge when rebasing... fix * minor formatting cleanup and add a missing comma * fix some odditities with what one of the tests is doing * whoops... include the use for the exception * set the response to okay * attempt to make snmpsim array check happy again * the json now lints * more making metric testing happy * one more update to make travis-ci happy * now flattens arrays also add array_flatten * rename array_flatten to data_flatten as pre-commit chokes on it as laravel has something similarly named * go through and properly add all the metrics * tested with the newest one and it works * whoops, clean up json and remove prototype that was used when putting it together * doh! make it happy with laravel now * see if a minor changing in formatting for the numbers makes the polling unit test happy * order them properly * remove a comma * a few more minor fixes * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * Fix do not include template text in HTML page (#9476) * Fixed $speed lenght in port parser when > 32 characters (#9479) * Fix global read check for demo account (#9482) * Improve documentation for service plugins (#9414) * Begin adding preinstalled plugin documentation. Also add information about how the titles of the plugins are displayed and detected. Make page visible on the websites Table of Contents. * Add note about plugin loading based on file name. * Added all monitoring-plugins URLs. * Format URLs on the service plugin docs list. * Correct a URL on the plugins list. * Removed leftover text from plugin list docs. * Add pkg-nagios-plugins-contrib plugins to docs. * Add DSA pkg-nagios-plugins-contrib plugins to docs * Added a few missing lines of pkg-nagios-plugins-contrib text. * Remove links plugins we dont have URL for. Add a few more pkg-nagios-plugins-contrib ones. * Remove list. Point to the main sources directly. * order by sensor_descr aswell (#9478) Sort sensors by sensor_descr * Fix os additional information for some that were broke (#9466) * Fix os additional information for several OS. $poll_device is not available, use $device * fix draytek test data * Fixed Procera ports ifIndex and ports added by the poller (#9384) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change group owner for php/session for CentOS 7 nginx install (#9393) By default on CentOS 7, /var/lib/php/session is root:root. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Refactored and update Location Geocoding (#9359) - Fix location so it is a regular database relation (this allows multiple devices to be accurately linked to one location and saves api calls) - Parse coordinates from the location more consistently - Add settings to webui - ~~Used [PHP Geocoder](http://geocoder-php.org/), which has lots of backends and is well tested. (also includes reverse and geoip)~~ - Google Maps, Bing, Mapquest, and OpenStreetMap supported initially. - Default to OpenStreetMap, which doesn't require a key. They will liberally hand out bans if you exceed 1 query per second though. - All other Geocoding APIs require an API key. (Google requires a credit card on file, but seems to be the most accurate) - Update all (I think) sql queries to handle the new structure - Remove final vestiges of override_sysLocation as a device attribute - Update existing device groups and rules in DB - Tested all APIs with good/bad location, no/bad/good key, and no connection. - Cannot fix advanced queries that use location This blocks #8868 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Aprisa support (#9435) * Created 4RF Aprisa XE support * Made requesed change by @laf * cleanup * Fix sensor index and add test data * Added support for Waystream products (#9481) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. This has been running in two production networks for > 3 months without any issues. * Marathon detection * support for Marathon based UPSs * added Marathon Power logo * testing marathon ups * Fix for #9485 (#9486) * Fix for #9485 * Update ajax_search.php * Testing Maraton ups device type * Fix issues cause by new location and other misc (#9490) * Fix issues cause by new location and other misc fix some queries so we return devices with null locations remove unnecessary query of all ports on ports page lists make locations menu available to non-admins for the legacy menu fix a few issues with the old network-map * fix graphs * fix oxidized query * added rfc1628 compat and removed discovery file * small changes to verbiage * Changes to display * Fixed test on over section * Removed Current graph. Not available from this device. * Locations UI and editing (#9480) * Better handling of errors Mapquest seems to return the center of the US on error....... * Editable locations WIP * Change to bootgrid ajax table WIP * Graphs working, using handlebars update js libs add current location button * remove sql query, change icon * Add the map to the device view, only when gps is expanded. Allow edit on device page, share js code * fix chevron rotation, improve click area * extra warning * fix overview layout (remove containers) * fix style * fix html divs, change collapse ui a bit move css, update css/js versions * start zoomed out on new locations * don't double load scripts, zoom to 17 * fix php-md errors, remove unused use statement * improve non-admin experience * Move locations page to Laravel More functions in Url and Html util classes reduce code duplication * translation buttons too * fix whitespace * move formatters to the frontend * small changes * disable traffic for locations with no devices * change down 0 to green from gray * missing " * Fix paginate all * working fix for paginate all * allow sort by counts * fix down sort * a little safety * Don't call the function twice * btn-xs * Added json test data * Fix locations page search (#9501) * Add bing layer to leaflet (#9497) Also, polyfill for IE used by both bing and google maps * Change locations default sort order (#9502) * changed variable name to resolve issue with Gitlab transport * removed else to satisfy codeclimate checks * changed tabs to spaces * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Added changelog for 1.46 release (#9510) * Add additional composite index to speed up display of pages where a device has a lot of syslogs. In our environment, this took page loads for some devices from over 60 seconds to nearly instant * Forgot to add db_schema.yaml in previous commit * Update cucs mib to fix warnings (#9517) * Added HPE Comware temperature limit (#9518) Changed the Temperature High threshold for a HPE Comware Switch to the values provided by snmp. This means the actual threshold configured in the switch is used over any predefined/auto calculated thresholds by LibreNMS. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Comtrol device detection (#9491) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed integers fields in alert rules to be string (#9496) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Focus and select location on override (#9503) * Focus and select location on override * Submit location on enter key * SAF CFM wireless device support (#9450) * Added support for SAF CFM L4 wireless device * Added copyright statement according to LibreNMS documentation * Added snmp test data and excluded some discover modules from os definition * Style issue fixed * More descriptive function * MIB file rename * Rename MIB file and change other files accordingly * Added test data * Removed debug statement * Last checks * Style changes * Style changes * Style changes * Style changes * Code restructure to make it more readable * Fixed error in foreach * Style issues * Formatting of states within Yaml changed to make it more readable * Omit default arguments * Better code and modules only in CFM-M4P-MUX * Chaged cfml4 to cfm * Update Sensor.php * Update Sensor.php * Better handling of scientific numbers * Better handling of scientific numbers * New test data * Correction on handling trailing zeros * Different way of cleaning the numbers based on Tony's input * Audiocodes initial support (#9508) * Create audiocodes family with very basic sensors * audiocode polling php and test files * audiocode polling php and test files * audiocode test files * audiocode cleaning * tests with selective polling disabled * GitHub test script updates (#9507) * GitHub test script updates add --reject to apply so it will skip binary files since GitHub does not create diffs for them correctly Add new directories to the removal cleanup. Remove non-existant ones. * Cleaner way to apply skip png files explicitly. That way patches are still atomic. * [UI] Fix last column of table (#9506) * [UI] Fix last column of table * move td outside of if and remove else * Add Device Dragonwave Harmony Enhanced (#9499) * Add Dragonwave Harmony Enhanced MC Device * Remove single quote from null and 10 divisor * Update and rename HarmonyEnhancedMc.php to HarmonyEnhanced.php * Rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Update and rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Rename harmony-enhanced-mc.inc.php to harmony-enhanced.inc.php * Rename harmony-enhanced-mc.snmprec to harmony-enhanced.snmprec * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * More Code Climate Fixes * Create harmony-enhanced.json * Dynamic_discovery_get_value in can_skip_sensor to use all oids in skip_values (#9495) * Use of dynamic_discovery_get_value in can_skip_sensor in order to use all available oids in skip_values * Use LibreNMS\Device\YamlDiscovery code instead of keeping duplicated function can_skip_sensor * Fix Travis errors * Device management fall back to http if https isn't available. Adds a slight delay on management clicking, may be blocked by popup blocker... * Updated harmony OS poller to use multi get (#9525) * docs: fix images doc (#9527) There is no capital I in the password... * fix error when location is missing from the DB (#9523) * get geolocation at first poll (#9522) * get geolocation at first poll based on the logic of code, we will have to wait 2 days from adding new device for lat and lng to be updated * Update Location.php * Update Location.php * Fixed Typo in YamlDiscovery.php (#9530) Hi, As far as I understand the code, it seems that array_reduce should be array_replace in this line, isn't it ? PipoCanaja 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed alert log showing only green instead of all by default (#9529) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. By default, when you access Alert History it was showing only OK (Green) ones instead of all. You had to hit filter to show them. * Fixed customers page (#9521) move customers table backend to Laravel 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added detection if this is a git based install or not. (#9379) Not sure about the warning or text. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change snmp-scan heading (#9492) * Fixed plugins using d_echo (#9498) Move d_echo to helpers.php and include in autoload Don't remove from common.php yet to be extra safe. * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * test github * test github * test git * test git * Added Network Access Control polling and store on DB * Added Network Access Control polling and store on DB * Added NAC tab on device page * Added NAC tab on device page * Added NAC tab page on device main page * Added NAC tab page on device main page * Fixed Auth ID data parsing * Fixed Auth ID data parsing * Filter Device ID on NAC Tab page * Filter Device ID on NAC Tab page * Converted IP Address form HEX to DEC format * Converted IP Address form HEX to DEC format * Formated grid on NAC print page * Formated grid on NAC print page * Added AuthC status * Added AuthC status * removed useless lines * removed useless lines * Fix some typos * Fix some typos * Fix Code Climate Issues * Fix Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * converted dbQuery() to dbUpdate() * converted dbQuery() to dbUpdate() * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Removed Hex to Dec test codes * Removed Hex to Dec test codes * removed unused classes * removed unused classes * Change my own IP Hex to Dec conversion to IP::fromHexString Class * Change my own IP Hex to Dec conversion to IP::fromHexString Class * CLA Signature * CLA Signature * Merge all dbUpdate on only one call * Merge all dbUpdate on only one call * Replaced Table to Bootgrid * Replaced Table to Bootgrid * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * no way to set device attrib and no need... * no way to set device attrib and no need... * add db schema * add db schema * fix link in device page, links for ports * fix link in device page, links for ports * Use ajax for table * Use ajax for table * fix tests * fix tests * change the columns to find existing entries to port_id and PortAuthSessionDomain * change the columns to find existing entries to port_id and PortAuthSessionDomain * Update 274.sql * Update 274.sql * Reorder Columns on NAC Page to Better Presentation * Reorder Columns on NAC Page to Better Presentation * rename database columns and update schema * rename database columns and update schema * add iftype to test data, rename variable * add iftype to test data, rename variable * correct types... * correct types... * Update 274.sql * Update 274.sql * order capture output * Add model observer for nicer discovery output * Add copyright to poller module * Handle multiAuth, multiDomain and normal modes seperatly for determining unique entries. * Use mac_address as the unique identifier * update index * Improve the data variety a bit * remove accidental schema
2018-12-20 03:18:30 +00:00
- { Field: domain, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: username, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: mac_address, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: ip_address, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: host_mode, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: authz_status, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: authz_by, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: authc_status, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: method, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: timeout, Type: varchar(50), 'Null': false, Extra: '' }
- { Field: time_left, Type: varchar(50), 'Null': true, Extra: '' }
- { Field: vlan, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: time_elapsed, Type: varchar(50), 'Null': true, Extra: '' }
NAC Polling (Network Access Control) (#9227) * RouterOS wireless sensors update (#9401) * bug-fix and new features Fixed incorrect OID for rate, renamed rate to TX-Rate as per update from mikrotik. Added support for link distance * Fixed indent issue * Added support for using Transport name in templates (#9411) * Added ability to sort alert schedules by status (#9257) Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixed alert util (#9428) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed AlertUtil - again (#9429) * Update BEGEMOT-HAST-MIB (#9427) FIX: Due to a missing import and the uppercase after some SYNTAX this mib is not bein compiled correctly everywhere. For example the one from Horizon OpenNMS fails with some errors ERROR: Cannot find symbol UNSIGNED32, Source: BEGEMOT-HAST-MIB.txt, Row: 321, Col: 17 The proposed change prevent the errors. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Fixes delta calculation for bgpPeers_cbgp metrics (#9431) The values in the $peer['c_update'][$oid] array are set only if they have changed. If the value has not changed, then zero is substituted for real values, which leads to incorrect calculation of delta values and records in the database: SELECT AcceptedPrefixes,AcceptedPrefixes_prev,AcceptedPrefixes_delta FROM bgpPeers_cbgp WHERE device_id=115; | AcceptedPrefixes | AcceptedPrefixes_prev | AcceptedPrefixes_delta | |------------------|-----------------------|------------------------| | 21 | 21 | -21 | 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Improve Junos state sensor discovery (#9426) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. Tested on MX and EX series, works fine. Skip slots that are empty and pull all sensors in jnxFruTable, data from old code is preserved. * Added alerts schedule notes into device notes (#9258) * Add alerts schedule notes into device notes Signed-off-by: Rémy Jacquin <remy@remyj.fr> * Update preferences.inc.php * Show port description and dns name in FDB table (#9370) - Added Port Description field to FDB Table - Added DNS Name field to FDB Table - Fixed sorting by port in FDB Table 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update draytek.inc.php (#9432) * Removed unnecessary model checks in HiveOS Wireless (#9409) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added format field to Telegram Messages (#9404) * Add format field to Telegram Messages Added Telegram field to send formatted messages as Mardown or HTML * Update Telegram.php * Correct Mistypo. * Correct mistypo * Correct Mistypo * Correct mistypo * Update Transports.md * Add Format field on Telegram Examples * Change Telegram Format field to type select * Add "blank" option to Format field * Update Telegram.php * Update Telegram.php * Update Telegram.php * Disable page refresh on health sensors pages, autorefresh most tables (#9386) * Disable page refresh on health sensors pages Refresh all bootgrid tables every 5 minutes * Update legacy_index.php * Update librenmsv1.blade.php * Style cleanup in hiveos file (#9440) Fix code style check for https://github.com/librenms/librenms/pull/9438 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Ensure the checks for ASA context devices are strict (#9441) * Show visually in webui + cli when using deprecated templates or transports (#9413) * Show visually in webui + cli when using deprecated templates or transports * Fixed query * Added Bing geocode lookup support (#9434) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added ScreenOS Syslog Hook (#9438) * Add ScreenOS Syslog Hook Adds Syslog Hook for ScreenOS https://community.librenms.org/t/juniper-screenos-syslog-hook/6146 * Update Syslog.md * Update syslog-notify-oxidized.php * Discovery YAML. Do not implicitly append $index (#9315) Require it explicitly. Makes it easier to understand and matches the style of other values Questionable YAML changes (either broken before or now broken): secureplatform: haStatCode ptp600: receiveModulationMode 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Syslog.md (#9443) Fixed the screenOS output added in #9438 which was confusing mkdocs output. Refer to the docs currently https://docs.librenms.org/Extensions/Syslog/ - It's all mashed up at the bottom 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fix ping.php poller groups setting confusion between dispatch(new PingCheck($groups)) and PingCheck::dispatch($groups) * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Created sql-schema (261) * Created sql-schema (261) * Update docs for virtual images (#9456) * Added Traffic to the Windows OS overlib graph (#9445) WebUI: added Traffic to the Windows OS overlib graph 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update World-Map.md to include pros/cons (#9442) 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. - [ ] 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added allow ipv6 address localhost nginx-status docs (#9458) Following the modification of the SNMP Nginx agent (https://github.com/librenms/librenms-agent/commit/e0dcd4a064cedb09241e4af17198bf61e8fd1bf3), linux distributions make requests in IPV6, so you must allow ::1 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed altering transport mapping in rules clearing all mappings (#9455) * Change unpolled devices toast to be based on rrd step (#9391) * Change unpolled devices toast to be based on rrd step * Update message Change it back to 3x * Added resources/links and devices/hostname/links API calls for xDP (#9444) * api: Add list_links and get_link api calls Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * api: Add get_links api call Signed-off-by: Misha Komarovskiy <zombah@gmail.com> * Update detection for Allied and Radlan OS (#9454) "1.3.6.1.4.1.207.1.4.128" is currently reporting as allied, when it should be reporting as radlan. Refer to https://community.librenms.org/t/allied-telesis-discovery/6189/8 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Updated HiveOS wireless detection (#9459) * Added ability to record traceroutes for devices down due to ICMP (#9457) * Added ability to record traceroutes for devices down due to ICMP * Update Templates.md * Updated schema * Update dev-overview-data.inc.php * Filter email options based on backend in Alert settings (#9461) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Update Configuration.md * Updated detection for AKCP devices (#9460) * Updated support for Avocent devices (#9462) * Updated support for Avocent devices * Add ACS8048 hardware to json * Update avocent.inc.php * Update avocent_8000.json * Syslog name translation (#9463) * Check to see if a host exists in a lookup table to translate received name to what LibreNMS knows * Added some documentation on how this is configured * Use \LibreNMS\Config instead of accessing $config directly * Fix codeclimate finding: Additional blank lines after USE statement * murrant suggested a much cleaner way of doing this! * fix snmp engine time (#9470) * Added more sensors for IRD (PBI Digital Decoder) (#9339) * added over bitrate graph * added bitrate * added more state sensors * Update ird.snmprec * Update ird.json * Update Ird.php * Update Ird.php * Update Ird.php * Update ird.json * Updated json test data * Update ird.snmprec * Updated json data * fix test value * fix num_oid * Add new sysDescr string for AlliedWare Plus products. (#9430) * Add new sysDescr string for AlliedWare Plus products. Release 5.4.8-2.1 of AlliedWare Plus will change the format of the sysDescr string. This patch updates Allied Telesis yaml files to work with this change. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * save-test-data.php: Use correct variable for 'os' argument. Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz> * Create awplus_5.4.8-2.json * Update awplus_5.4.8-2.json * add a tool for working with JSON apps (#9084) * add initial work on script for working with json apps * finish the code portion * -h now done * rename it to be slightly more accurate * make hash key strings * exit if -a is not present * now exit after checking the file if -s or -t is given * now properly add the applications key * snmp_max_oid per Os support and snmpv1 multi_oid fix (#9343) * Added snmp_max_oid config at Os level. * Added check for snmpv1 on multi_oid requests. * Check device_oid_limit on multi get * Use array_chunk * Update snmp.inc.php * remove dump, unused variable and extra plodes * per device settings should take priority over OS * Update Settings.md * don't discard the data :P * fixing option to let user pick saved test data filename, exit if ther… (#9242) * fixing option to let user pick saved test data filename, exit if there are many os/variant combination for a single output filename * fixing style issues * Update save-test-data.php * Update save-test-data.php * Add support for Firebrick Hardware (#9403) * Added support for Firebrick devices * Added support for Firebrick devices * Update firebrick.inc.php * Update firebrick.inc.php * Update firebrick.svg * Update firebrick.svg * Added SNMP Check * Added SVG View Box * Display XML in config tab * Update firebrick.svg * Update firebrick.yaml * Update showconfig.inc.php * Create firebrick.json * Check sysDescr for JunOS version. (#9247) * Cisco: change notKnown status to unknown and not warning (#9222) * Cisco: change notKnown status to unknown and not warning * Update cisco.inc.php * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Update SQL-Schema File Name * Update SQL-Schema File Name * add app for getting status of TCP connections for specified services (#8090) * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * add the poller for portactivity * add the ability to get monitor ports for portactivity * add the graphs for displaying stuff for the portactivity app * add the portactivity app page * update the docs for Portactivity * remove extra line * minor doc update for Portactivity * add update_application line * convert to use json_app_get * convert curly brackets to square * style fix * remote error, errorString, and version after they stop being important so they are not processed * add alert rule examples * remove dump of get_portactivity_ports function added during rebase * update to the current json_app_get * add portactivity snmprec * add the portactivity test data * whoops bad merge when rebasing... fix * minor formatting cleanup and add a missing comma * fix some odditities with what one of the tests is doing * whoops... include the use for the exception * set the response to okay * attempt to make snmpsim array check happy again * the json now lints * more making metric testing happy * one more update to make travis-ci happy * now flattens arrays also add array_flatten * rename array_flatten to data_flatten as pre-commit chokes on it as laravel has something similarly named * go through and properly add all the metrics * tested with the newest one and it works * whoops, clean up json and remove prototype that was used when putting it together * doh! make it happy with laravel now * see if a minor changing in formatting for the numbers makes the polling unit test happy * order them properly * remove a comma * a few more minor fixes * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * Fix do not include template text in HTML page (#9476) * Fixed $speed lenght in port parser when > 32 characters (#9479) * Fix global read check for demo account (#9482) * Improve documentation for service plugins (#9414) * Begin adding preinstalled plugin documentation. Also add information about how the titles of the plugins are displayed and detected. Make page visible on the websites Table of Contents. * Add note about plugin loading based on file name. * Added all monitoring-plugins URLs. * Format URLs on the service plugin docs list. * Correct a URL on the plugins list. * Removed leftover text from plugin list docs. * Add pkg-nagios-plugins-contrib plugins to docs. * Add DSA pkg-nagios-plugins-contrib plugins to docs * Added a few missing lines of pkg-nagios-plugins-contrib text. * Remove links plugins we dont have URL for. Add a few more pkg-nagios-plugins-contrib ones. * Remove list. Point to the main sources directly. * order by sensor_descr aswell (#9478) Sort sensors by sensor_descr * Fix os additional information for some that were broke (#9466) * Fix os additional information for several OS. $poll_device is not available, use $device * fix draytek test data * Fixed Procera ports ifIndex and ports added by the poller (#9384) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change group owner for php/session for CentOS 7 nginx install (#9393) By default on CentOS 7, /var/lib/php/session is root:root. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Refactored and update Location Geocoding (#9359) - Fix location so it is a regular database relation (this allows multiple devices to be accurately linked to one location and saves api calls) - Parse coordinates from the location more consistently - Add settings to webui - ~~Used [PHP Geocoder](http://geocoder-php.org/), which has lots of backends and is well tested. (also includes reverse and geoip)~~ - Google Maps, Bing, Mapquest, and OpenStreetMap supported initially. - Default to OpenStreetMap, which doesn't require a key. They will liberally hand out bans if you exceed 1 query per second though. - All other Geocoding APIs require an API key. (Google requires a credit card on file, but seems to be the most accurate) - Update all (I think) sql queries to handle the new structure - Remove final vestiges of override_sysLocation as a device attribute - Update existing device groups and rules in DB - Tested all APIs with good/bad location, no/bad/good key, and no connection. - Cannot fix advanced queries that use location This blocks #8868 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Aprisa support (#9435) * Created 4RF Aprisa XE support * Made requesed change by @laf * cleanup * Fix sensor index and add test data * Added support for Waystream products (#9481) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. This has been running in two production networks for > 3 months without any issues. * Marathon detection * support for Marathon based UPSs * added Marathon Power logo * testing marathon ups * Fix for #9485 (#9486) * Fix for #9485 * Update ajax_search.php * Testing Maraton ups device type * Fix issues cause by new location and other misc (#9490) * Fix issues cause by new location and other misc fix some queries so we return devices with null locations remove unnecessary query of all ports on ports page lists make locations menu available to non-admins for the legacy menu fix a few issues with the old network-map * fix graphs * fix oxidized query * added rfc1628 compat and removed discovery file * small changes to verbiage * Changes to display * Fixed test on over section * Removed Current graph. Not available from this device. * Locations UI and editing (#9480) * Better handling of errors Mapquest seems to return the center of the US on error....... * Editable locations WIP * Change to bootgrid ajax table WIP * Graphs working, using handlebars update js libs add current location button * remove sql query, change icon * Add the map to the device view, only when gps is expanded. Allow edit on device page, share js code * fix chevron rotation, improve click area * extra warning * fix overview layout (remove containers) * fix style * fix html divs, change collapse ui a bit move css, update css/js versions * start zoomed out on new locations * don't double load scripts, zoom to 17 * fix php-md errors, remove unused use statement * improve non-admin experience * Move locations page to Laravel More functions in Url and Html util classes reduce code duplication * translation buttons too * fix whitespace * move formatters to the frontend * small changes * disable traffic for locations with no devices * change down 0 to green from gray * missing " * Fix paginate all * working fix for paginate all * allow sort by counts * fix down sort * a little safety * Don't call the function twice * btn-xs * Added json test data * Fix locations page search (#9501) * Add bing layer to leaflet (#9497) Also, polyfill for IE used by both bing and google maps * Change locations default sort order (#9502) * changed variable name to resolve issue with Gitlab transport * removed else to satisfy codeclimate checks * changed tabs to spaces * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Added changelog for 1.46 release (#9510) * Add additional composite index to speed up display of pages where a device has a lot of syslogs. In our environment, this took page loads for some devices from over 60 seconds to nearly instant * Forgot to add db_schema.yaml in previous commit * Update cucs mib to fix warnings (#9517) * Added HPE Comware temperature limit (#9518) Changed the Temperature High threshold for a HPE Comware Switch to the values provided by snmp. This means the actual threshold configured in the switch is used over any predefined/auto calculated thresholds by LibreNMS. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added Comtrol device detection (#9491) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed integers fields in alert rules to be string (#9496) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Focus and select location on override (#9503) * Focus and select location on override * Submit location on enter key * SAF CFM wireless device support (#9450) * Added support for SAF CFM L4 wireless device * Added copyright statement according to LibreNMS documentation * Added snmp test data and excluded some discover modules from os definition * Style issue fixed * More descriptive function * MIB file rename * Rename MIB file and change other files accordingly * Added test data * Removed debug statement * Last checks * Style changes * Style changes * Style changes * Style changes * Code restructure to make it more readable * Fixed error in foreach * Style issues * Formatting of states within Yaml changed to make it more readable * Omit default arguments * Better code and modules only in CFM-M4P-MUX * Chaged cfml4 to cfm * Update Sensor.php * Update Sensor.php * Better handling of scientific numbers * Better handling of scientific numbers * New test data * Correction on handling trailing zeros * Different way of cleaning the numbers based on Tony's input * Audiocodes initial support (#9508) * Create audiocodes family with very basic sensors * audiocode polling php and test files * audiocode polling php and test files * audiocode test files * audiocode cleaning * tests with selective polling disabled * GitHub test script updates (#9507) * GitHub test script updates add --reject to apply so it will skip binary files since GitHub does not create diffs for them correctly Add new directories to the removal cleanup. Remove non-existant ones. * Cleaner way to apply skip png files explicitly. That way patches are still atomic. * [UI] Fix last column of table (#9506) * [UI] Fix last column of table * move td outside of if and remove else * Add Device Dragonwave Harmony Enhanced (#9499) * Add Dragonwave Harmony Enhanced MC Device * Remove single quote from null and 10 divisor * Update and rename HarmonyEnhancedMc.php to HarmonyEnhanced.php * Rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Update and rename harmony-enhanced-mc.yaml to harmony-enhanced.yaml * Rename harmony-enhanced-mc.inc.php to harmony-enhanced.inc.php * Rename harmony-enhanced-mc.snmprec to harmony-enhanced.snmprec * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * Update HarmonyEnhanced.php * More Code Climate Fixes * Create harmony-enhanced.json * Dynamic_discovery_get_value in can_skip_sensor to use all oids in skip_values (#9495) * Use of dynamic_discovery_get_value in can_skip_sensor in order to use all available oids in skip_values * Use LibreNMS\Device\YamlDiscovery code instead of keeping duplicated function can_skip_sensor * Fix Travis errors * Device management fall back to http if https isn't available. Adds a slight delay on management clicking, may be blocked by popup blocker... * Updated harmony OS poller to use multi get (#9525) * docs: fix images doc (#9527) There is no capital I in the password... * fix error when location is missing from the DB (#9523) * get geolocation at first poll (#9522) * get geolocation at first poll based on the logic of code, we will have to wait 2 days from adding new device for lat and lng to be updated * Update Location.php * Update Location.php * Fixed Typo in YamlDiscovery.php (#9530) Hi, As far as I understand the code, it seems that array_reduce should be array_replace in this line, isn't it ? PipoCanaja 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Fixed alert log showing only green instead of all by default (#9529) 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. By default, when you access Alert History it was showing only OK (Green) ones instead of all. You had to hit filter to show them. * Fixed customers page (#9521) move customers table backend to Laravel 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Added detection if this is a git based install or not. (#9379) Not sure about the warning or text. 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` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. * Change snmp-scan heading (#9492) * Fixed plugins using d_echo (#9498) Move d_echo to helpers.php and include in autoload Don't remove from common.php yet to be extra safe. * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * test github * test github * test git * test git * Added Network Access Control polling and store on DB * Added Network Access Control polling and store on DB * Added NAC tab on device page * Added NAC tab on device page * Added NAC tab page on device main page * Added NAC tab page on device main page * Fixed Auth ID data parsing * Fixed Auth ID data parsing * Filter Device ID on NAC Tab page * Filter Device ID on NAC Tab page * Converted IP Address form HEX to DEC format * Converted IP Address form HEX to DEC format * Formated grid on NAC print page * Formated grid on NAC print page * Added AuthC status * Added AuthC status * removed useless lines * removed useless lines * Fix some typos * Fix some typos * Fix Code Climate Issues * Fix Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Fixed more Code Climate Issues * converted dbQuery() to dbUpdate() * converted dbQuery() to dbUpdate() * Fixed more Code Climate Issues * Fixed more Code Climate Issues * Removed Hex to Dec test codes * Removed Hex to Dec test codes * removed unused classes * removed unused classes * Change my own IP Hex to Dec conversion to IP::fromHexString Class * Change my own IP Hex to Dec conversion to IP::fromHexString Class * CLA Signature * CLA Signature * Merge all dbUpdate on only one call * Merge all dbUpdate on only one call * Replaced Table to Bootgrid * Replaced Table to Bootgrid * Converted Polling From Ports to New Module (cisco-nac) * Converted Polling From Ports to New Module (cisco-nac) * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate Issues * Fixing Travis CI and Code Climate More Issues * Fixing Travis CI and Code Climate More Issues * Replaced Other to Disabled on Metod Column * Replaced Other to Disabled on Metod Column * Removed Extra Character < on Authz Icon * Removed Extra Character < on Authz Icon * Improve the Logical Checking if Data Exist on DB * Improve the Logical Checking if Data Exist on DB * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Replace dbFetchRows to dbFetchRow on Some Exist Checks * Fix Some Code Climate Issues * Fix Some Code Climate Issues * Fixed More Code Climate Issues * Fixed More Code Climate Issues * added CISCO-NAC-TC-MIB * added CISCO-NAC-TC-MIB * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * Use Eloquent for DB access Move print-nac into nac.inc.php Rename module to generic nac, If implemented for other OS later this can be extended but the name should be the same Add items required for testing * no way to set device attrib and no need... * no way to set device attrib and no need... * add db schema * add db schema * fix link in device page, links for ports * fix link in device page, links for ports * Use ajax for table * Use ajax for table * fix tests * fix tests * change the columns to find existing entries to port_id and PortAuthSessionDomain * change the columns to find existing entries to port_id and PortAuthSessionDomain * Update 274.sql * Update 274.sql * Reorder Columns on NAC Page to Better Presentation * Reorder Columns on NAC Page to Better Presentation * rename database columns and update schema * rename database columns and update schema * add iftype to test data, rename variable * add iftype to test data, rename variable * correct types... * correct types... * Update 274.sql * Update 274.sql * order capture output * Add model observer for nicer discovery output * Add copyright to poller module * Handle multiAuth, multiDomain and normal modes seperatly for determining unique entries. * Use mac_address as the unique identifier * update index * Improve the data variety a bit * remove accidental schema
2018-12-20 03:18:30 +00:00
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [ports_nac_id], Unique: true, Type: BTREE }
ports_nac_device_id_index: { Name: ports_nac_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
ports_nac_port_id_mac_address_index: { Name: ports_nac_port_id_mac_address_index, Columns: [port_id, mac_address], Unique: false, Type: BTREE }
ports_perms:
Columns:
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
ports_stack:
Columns:
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id_high, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id_low, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: ifStackStatus, Type: varchar(32), 'Null': false, Extra: '' }
Indexes:
ports_stack_device_id_port_id_high_port_id_low_unique: { Name: ports_stack_device_id_port_id_high_port_id_low_unique, Columns: [device_id, port_id_high, port_id_low], Unique: true, Type: BTREE }
ports_statistics:
Columns:
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: ifInNUcastPkts, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInNUcastPkts_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInNUcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInNUcastPkts_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutNUcastPkts_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifInDiscards, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInDiscards_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInDiscards_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInDiscards_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifOutDiscards, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutDiscards_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutDiscards_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutDiscards_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInUnknownProtos_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInBroadcastPkts_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutBroadcastPkts_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifInMulticastPkts_rate, Type: int, 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts_prev, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
- { Field: ifOutMulticastPkts_rate, Type: int, 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_id], Unique: true, Type: BTREE }
ports_stp:
Columns:
- { Field: port_stp_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: priority, Type: 'tinyint unsigned', 'Null': false, Extra: '' }
- { Field: state, Type: varchar(11), 'Null': false, Extra: '' }
- { Field: enable, Type: varchar(8), 'Null': false, Extra: '' }
- { Field: pathCost, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: designatedRoot, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: designatedCost, Type: 'smallint unsigned', 'Null': false, Extra: '' }
- { Field: designatedBridge, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: designatedPort, Type: mediumint, 'Null': false, Extra: '' }
- { Field: forwardTransitions, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_stp_id], Unique: true, Type: BTREE }
ports_stp_device_id_port_id_unique: { Name: ports_stp_device_id_port_id_unique, Columns: [device_id, port_id], Unique: true, Type: BTREE }
ports_vlans:
Columns:
- { Field: port_vlan_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: vlan, Type: int, 'Null': false, Extra: '' }
- { Field: baseport, Type: int, 'Null': false, Extra: '' }
- { Field: priority, Type: bigint, 'Null': false, Extra: '' }
- { Field: state, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: cost, Type: int, 'Null': false, Extra: '' }
- { Field: untagged, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [port_vlan_id], Unique: true, Type: BTREE }
ports_vlans_device_id_port_id_vlan_unique: { Name: ports_vlans_device_id_port_id_vlan_unique, Columns: [device_id, port_id, vlan], Unique: true, Type: BTREE }
processes:
Columns:
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: pid, Type: int, 'Null': false, Extra: '' }
- { Field: vsz, Type: int, 'Null': false, Extra: '' }
- { Field: rss, Type: int, '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:
processes_device_id_index: { Name: processes_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
processors:
Columns:
- { Field: processor_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: entPhysicalIndex, Type: int, 'Null': false, Extra: '', Default: '0' }
- { Field: hrDeviceIndex, Type: int, 'Null': true, Extra: '' }
- { Field: device_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: processor_descr, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: processor_precision, Type: int, 'Null': false, Extra: '', Default: '1' }
- { Field: processor_perc_warn, Type: int, 'Null': true, Extra: '', Default: '75' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [processor_id], Unique: true, Type: BTREE }
processors_device_id_index: { Name: processors_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
proxmox:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: vmid, Type: int, '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 }
proxmox_cluster_vmid_unique: { Name: proxmox_cluster_vmid_unique, Columns: [cluster, vmid], Unique: true, Type: BTREE }
proxmox_ports:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: vm_id, Type: int, '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 }
proxmox_ports_vm_id_port_unique: { Name: proxmox_ports_vm_id_port_unique, Columns: [vm_id, port], Unique: true, Type: BTREE }
pseudowires:
Columns:
- { Field: pseudowire_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: peer_device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: peer_ldp_id, Type: int, 'Null': false, Extra: '' }
- { Field: cpwVcID, Type: int, 'Null': false, Extra: '' }
- { Field: cpwOid, Type: int, '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, 'Null': false, Extra: '' }
- { Field: pw_peer_mtu, Type: int, '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: route_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: created_at, Type: timestamp, 'Null': true, Extra: '' }
- { Field: updated_at, Type: timestamp, 'Null': true, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: context_name, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: inetCidrRouteIfIndex, Type: bigint, 'Null': false, Extra: '' }
- { Field: inetCidrRouteType, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: inetCidrRouteProto, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: inetCidrRouteNextHopAS, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: inetCidrRouteMetric1, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: inetCidrRouteDestType, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: inetCidrRouteDest, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: inetCidrRouteNextHopType, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: inetCidrRouteNextHop, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: inetCidrRoutePolicy, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: inetCidrRoutePfxLen, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [route_id], Unique: true, Type: BTREE }
sensors:
Columns:
- { Field: sensor_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: sensor_deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: sensor_class, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int 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: group, Type: varchar(255), 'Null': true, Extra: '' }
- { Field: sensor_divisor, Type: bigint, 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_multiplier, Type: int, 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_current, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit_warn, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit_low, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit_low_warn, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_alert, Type: tinyint, '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: double, 'Null': true, Extra: '' }
- { Field: user_func, Type: varchar(100), 'Null': true, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sensor_id], Unique: true, Type: BTREE }
sensors_device_id_index: { Name: sensors_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
sensors_sensor_class_index: { Name: sensors_sensor_class_index, Columns: [sensor_class], Unique: false, Type: BTREE }
sensors_sensor_type_index: { Name: sensors_sensor_type_index, Columns: [sensor_type], Unique: false, Type: BTREE }
Constraints:
sensors_device_id_foreign: { name: sensors_device_id_foreign, foreign_key: device_id, table: devices, key: device_id, extra: 'ON DELETE CASCADE' }
sensors_to_state_indexes:
Columns:
- { Field: sensors_to_state_translations_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: sensor_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: state_index_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sensors_to_state_translations_id], Unique: true, Type: BTREE }
sensors_to_state_indexes_sensor_id_state_index_id_unique: { Name: sensors_to_state_indexes_sensor_id_state_index_id_unique, Columns: [sensor_id, state_index_id], Unique: true, Type: BTREE }
sensors_to_state_indexes_state_index_id_index: { Name: sensors_to_state_indexes_state_index_id_index, Columns: [state_index_id], Unique: false, Type: BTREE }
Constraints:
sensors_to_state_indexes_ibfk_1: { name: sensors_to_state_indexes_ibfk_1, foreign_key: state_index_id, table: state_indexes, key: state_index_id, extra: '' }
sensors_to_state_indexes_sensor_id_foreign: { name: sensors_to_state_indexes_sensor_id_foreign, foreign_key: sensor_id, table: sensors, key: sensor_id, extra: 'ON DELETE CASCADE' }
services:
Columns:
- { Field: service_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: service_status, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: service_changed, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: service_message, Type: text, 'Null': false, Extra: '' }
- { Field: service_disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: service_ds, Type: text, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [service_id], Unique: true, Type: BTREE }
services_device_id_index: { Name: services_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
session:
Columns:
- { Field: session_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [session_id], Unique: true, Type: BTREE }
session_session_value_unique: { Name: session_session_value_unique, Columns: [session_value], Unique: true, Type: BTREE }
slas:
Columns:
- { Field: sla_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: sla_nr, Type: int, '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, 'Null': false, Extra: '' }
- { Field: opstatus, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sla_id], Unique: true, Type: BTREE }
slas_device_id_index: { Name: slas_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
slas_device_id_sla_nr_unique: { Name: slas_device_id_sla_nr_unique, Columns: [device_id, sla_nr], Unique: true, Type: BTREE }
state_indexes:
Columns:
- { Field: state_index_id, Type: 'int unsigned', '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_indexes_state_name_unique: { Name: state_indexes_state_name_unique, Columns: [state_name], Unique: true, Type: BTREE }
state_translations:
Columns:
- { Field: state_translation_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: state_index_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: state_descr, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: state_draw_graph, Type: tinyint, 'Null': false, Extra: '' }
- { Field: state_value, Type: smallint, 'Null': false, Extra: '', Default: '0' }
- { Field: state_generic_value, Type: tinyint, '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_translations_state_index_id_state_value_unique: { Name: state_translations_state_index_id_state_value_unique, Columns: [state_index_id, state_value], Unique: true, Type: BTREE }
storage:
Columns:
- { Field: storage_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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, 'Null': false, Extra: '' }
- { Field: storage_units, Type: int, 'Null': false, Extra: '' }
- { Field: storage_used, Type: bigint, 'Null': false, Extra: '', Default: '0' }
- { Field: storage_free, Type: bigint, 'Null': false, Extra: '', Default: '0' }
- { Field: storage_perc, Type: int, 'Null': false, Extra: '', Default: '0' }
- { Field: storage_perc_warn, Type: int, 'Null': true, Extra: '', Default: '60' }
- { Field: storage_deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [storage_id], Unique: true, Type: BTREE }
storage_device_id_index: { Name: storage_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
storage_device_id_storage_mib_storage_index_unique: { Name: storage_device_id_storage_mib_storage_index_unique, Columns: [device_id, storage_mib, storage_index], Unique: true, Type: BTREE }
stp:
Columns:
- { Field: stp_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: rootBridge, Type: tinyint, 'Null': false, Extra: '' }
- { Field: bridgeAddress, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: protocolSpecification, Type: varchar(16), 'Null': false, Extra: '' }
- { Field: priority, Type: mediumint, 'Null': false, Extra: '' }
- { Field: timeSinceTopologyChange, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: topChanges, Type: mediumint, 'Null': false, Extra: '' }
- { Field: designatedRoot, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: rootCost, Type: mediumint, 'Null': false, Extra: '' }
- { Field: rootPort, Type: int, 'Null': true, Extra: '' }
- { Field: maxAge, Type: mediumint, 'Null': false, Extra: '' }
- { Field: helloTime, Type: mediumint, 'Null': false, Extra: '' }
- { Field: holdTime, Type: mediumint, 'Null': false, Extra: '' }
- { Field: forwardDelay, Type: mediumint, 'Null': false, Extra: '' }
- { Field: bridgeMaxAge, Type: smallint, 'Null': false, Extra: '' }
- { Field: bridgeHelloTime, Type: smallint, 'Null': false, Extra: '' }
- { Field: bridgeForwardDelay, Type: smallint, 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [stp_id], Unique: true, Type: BTREE }
stp_device_id_index: { Name: stp_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
syslog:
Columns:
- { Field: device_id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: auto_increment }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [seq], Unique: true, Type: BTREE }
syslog_device_id_index: { Name: syslog_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
syslog_device_id_timestamp_index: { Name: syslog_device_id_timestamp_index, Columns: [device_id, timestamp], Unique: false, Type: BTREE }
syslog_priority_level_index: { Name: syslog_priority_level_index, Columns: [priority, level], Unique: false, Type: BTREE }
syslog_program_index: { Name: syslog_program_index, Columns: [program], Unique: false, Type: BTREE }
syslog_timestamp_index: { Name: syslog_timestamp_index, Columns: [timestamp], Unique: false, Type: BTREE }
tnmsneinfo:
Columns:
- { Field: id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: neID, Type: int, '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 }
tnmsneinfo_device_id_index: { Name: tnmsneinfo_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
tnmsneinfo_neid_index: { Name: tnmsneinfo_neid_index, Columns: [neID], Unique: false, Type: BTREE }
toner:
Columns:
- { Field: toner_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: toner_index, Type: int, '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, 'Null': false, Extra: '', Default: '0' }
- { Field: toner_current, Type: int, '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 }
toner_device_id_index: { Name: toner_device_id_index, 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 19:34:59 +00:00
transport_group_transport:
Columns:
- { Field: transport_group_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: transport_id, Type: 'int unsigned', 'Null': false, Extra: '' }
ucd_diskio:
Columns:
- { Field: diskio_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: diskio_index, Type: int, 'Null': false, Extra: '' }
- { Field: diskio_descr, Type: varchar(32), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [diskio_id], Unique: true, Type: BTREE }
ucd_diskio_device_id_index: { Name: ucd_diskio_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
users:
Columns:
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: auth_type, Type: varchar(32), 'Null': true, Extra: '' }
- { Field: auth_id, Type: int, 'Null': true, Extra: '' }
- { 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, 'Null': false, Extra: '', Default: '0' }
- { Field: can_modify_passwd, Type: tinyint, '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: '' }
- { Field: enabled, Type: tinyint, 'Null': false, Extra: '', Default: '1' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [user_id], Unique: true, Type: BTREE }
users_auth_type_username_unique: { Name: users_auth_type_username_unique, Columns: [auth_type, username], Unique: true, Type: BTREE }
users_prefs:
Columns:
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: pref, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: value, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
users_prefs_user_id_pref_unique: { Name: users_prefs_user_id_pref_unique, Columns: [user_id, pref], Unique: true, Type: BTREE }
users_widgets:
Columns:
- { Field: user_widget_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: user_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: widget_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: col, Type: tinyint, 'Null': false, Extra: '' }
- { Field: row, Type: tinyint, 'Null': false, Extra: '' }
- { Field: size_x, Type: tinyint, 'Null': false, Extra: '' }
- { Field: size_y, Type: tinyint, 'Null': false, Extra: '' }
- { Field: title, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: refresh, Type: tinyint, 'Null': false, Extra: '', Default: '60' }
- { Field: settings, Type: text, 'Null': false, Extra: '' }
- { Field: dashboard_id, Type: 'int unsigned', '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: vlan_vlan, Type: int, 'Null': true, Extra: '' }
- { Field: vlan_domain, Type: int, '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, '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 unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: vm_type, Type: varchar(16), 'Null': false, Extra: '', Default: vmware }
- { Field: vmwVmVMID, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmDisplayName, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmGuestOS, Type: varchar(128), 'Null': false, Extra: '' }
- { Field: vmwVmMemSize, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmCpus, Type: int, 'Null': false, Extra: '' }
- { Field: vmwVmState, Type: varchar(128), 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [id], Unique: true, Type: BTREE }
vminfo_device_id_index: { Name: vminfo_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
vminfo_vmwvmvmid_index: { Name: vminfo_vmwvmvmid_index, Columns: [vmwVmVMID], Unique: false, Type: BTREE }
vrfs:
Columns:
- { Field: vrf_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: vrf_oid, Type: varchar(256), 'Null': false, Extra: '' }
- { Field: vrf_name, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: bgpLocalAs, Type: 'int unsigned', 'Null': true, Extra: '' }
- { Field: mplsVpnVrfRouteDistinguisher, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: mplsVpnVrfDescription, Type: text, 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int unsigned', 'Null': false, Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [vrf_id], Unique: true, Type: BTREE }
vrfs_device_id_index: { Name: vrfs_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
vrf_lite_cisco:
Columns:
- { Field: vrf_lite_cisco_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_id, Type: 'int unsigned', '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_lite_cisco_context_name_index: { Name: vrf_lite_cisco_context_name_index, Columns: [context_name], Unique: false, Type: BTREE }
vrf_lite_cisco_device_id_context_name_vrf_name_index: { Name: vrf_lite_cisco_device_id_context_name_vrf_name_index, Columns: [device_id, context_name, vrf_name], Unique: false, Type: BTREE }
vrf_lite_cisco_device_id_index: { Name: vrf_lite_cisco_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
vrf_lite_cisco_vrf_name_index: { Name: vrf_lite_cisco_vrf_name_index, Columns: [vrf_name], Unique: false, Type: BTREE }
widgets:
Columns:
- { Field: widget_id, Type: 'int unsigned', '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 }
widgets_widget_unique: { Name: widgets_widget_unique, 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-02 04:49:11 +00:00
wireless_sensors:
Columns:
- { Field: sensor_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: sensor_deleted, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: sensor_class, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: device_id, Type: 'int 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, 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_multiplier, Type: int, 'Null': false, Extra: '', Default: '1' }
- { Field: sensor_aggregator, Type: varchar(16), 'Null': false, Extra: '', Default: sum }
- { Field: sensor_current, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_prev, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit_warn, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit_low, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_limit_low_warn, Type: double, 'Null': true, Extra: '' }
- { Field: sensor_alert, Type: tinyint, '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 unsigned', '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-02 04:49:11 +00:00
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [sensor_id], Unique: true, Type: BTREE }
wireless_sensors_device_id_index: { Name: wireless_sensors_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
wireless_sensors_sensor_class_index: { Name: wireless_sensors_sensor_class_index, Columns: [sensor_class], Unique: false, Type: BTREE }
wireless_sensors_sensor_type_index: { Name: wireless_sensors_sensor_type_index, Columns: [sensor_type], Unique: false, Type: BTREE }
Constraints:
wireless_sensors_device_id_foreign: { name: wireless_sensors_device_id_foreign, foreign_key: device_id, table: devices, key: device_id, extra: 'ON DELETE CASCADE' }