User Tools
Writing /app/www/public/data/meta/toolsandtechnologies/setting_up_mqtt_vernemq.meta failed
toolsandtechnologies:setting_up_mqtt_vernemq
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| toolsandtechnologies:setting_up_mqtt_vernemq [2020/05/27 13:34] – created adsilva | toolsandtechnologies:setting_up_mqtt_vernemq [2021/06/25 10:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | **vernemq: | ||
| + | |||
| + | VerneMQ is used by Orchestrator to publish the link up/down status of an element, | ||
| + | SnmpManagers can subscribe to this and each SnmpManager will get a unique message(using MQTT shared subscription). | ||
| + | |||
| + | |||
| + | < | ||
| + | sudo yum install vernemq-< | ||
| + | </ | ||
| + | |||
| + | **setup users and topic access** | ||
| + | | ||
| + | config file: | ||
| + | |||
| + | < | ||
| + | vmq_passwd.password_file = / | ||
| + | vmq_acl.acl_file = / | ||
| + | listener.tcp.allowed_protocol_versions = 3,4,5 | ||
| + | #10mb buffer | ||
| + | outgoing_clustering_buffer_size = 10000000 | ||
| + | </ | ||
| + | |||
| + | The above variables are necessary, you may increase the numbers but do not decrease them. | ||
| + | |||
| + | an example vmq.acl will look as follows: | ||
| + | |||
| + | < | ||
| + | user orchestrator | ||
| + | topic write # | ||
| + | topic read # | ||
| + | |||
| + | |||
| + | user subscriber01 | ||
| + | topic read $share/ | ||
| + | |||
| + | |||
| + | user subscriber02 | ||
| + | topic read $share/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | The user `orchestrator` has full access while subscriber01 & 02 only have access to their respective paths. | ||
| + | subscriber01 could be set of EXT SnmpManagers, | ||
| + | |||
| + | Now these users need authentication, | ||
| + | Link is provided below on how to manage users and the file: | ||
| + | |||
| + | an example vmq.passwd file looks like the one below: | ||
| + | < | ||
| + | orchestrator: | ||
| + | subscriber01: | ||
| + | subscriber02: | ||
| + | </ | ||