Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:documentation:06_metaconsole:04_command [2021/08/20 00:22] jimmy.olano [Environment already centralized through Command Center] |
en:documentation:06_metaconsole:04_command [2021/11/05 12:05] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== COMMAND CENTER ====== | ||
- | |||
- | {{indexmenu_n> | ||
- | |||
- | [[: | ||
- | |||
- | ===== Command Center ===== | ||
- | |||
- | From Pandora FMS version 756, the synchronization system for environments with centralized mode has been redesigned from scratch, making it faster and more efficient, since the changes will be replicated to the nodes automatically without the need for manual synchronization, | ||
- | |||
- | This change deems the previous system outdated, so in environments where it was active, it will have to go through the previous automatic merging system to use the new centralization system **and be able to guarantee data integrity.** | ||
- | |||
- | When updating, all already centralized Metaconsole environments will be forced to go through the new **Command Center** to be able to be centralized again correctly. | ||
- | |||
- | [[: | ||
- | |||
- | [[: | ||
- | |||
- | [[: | ||
- | |||
- | The Command Center will mix the different elements of the node and Metaconsole databases (of those that must be managed from Metaconsole) in the following way. An order of priority will be established between the Metaconsole nodes and the Metaconsole itself, placing the elements with the highest priority at the top of the list and at the bottom those with lower priority. | ||
- | |||
- | For example: | ||
- | |||
- | < | ||
- | |||
- | [[: | ||
- | |||
- | <WRAP center round important 60%>\\ | ||
- | Only the nodes configured in the Metaconsole that are not disabled are taken into account for the mixing process.\\ | ||
- | </ | ||
- | |||
- | This priority list is used for cases where the **same element** exists in the different nodes but has **different configurations**. For example, for 2 nodes and the Metaconsole to have the group " | ||
- | |||
- | In another case, if for example only nodes 1 and 2 had a policy called " | ||
- | |||
- | <WRAP center round important 60%>\\ | ||
- | Only for the policy' | ||
- | </ | ||
- | The case of policies would be the most particular one out of all the synchronized elements due to how they are configured, since every module, alert, plugin… is dealt with as an independent element and seeing it only with modules, if you have: | ||
- | |||
- | \\ | ||
- | [[: | ||
- | |||
- | The result of the Command Center would be: | ||
- | |||
- | [[: | ||
- | |||
- | This allows the result to have as many different configurations as possible so that you can now manage them from the Metaconsole. | ||
- | |||
- | ==== Elements centralized by the Command Center ==== | ||
- | |||
- | The following elements are those centralized from the new Command Center: | ||
- | |||
- | * **Users**: It is only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same ID** will be considered the **same user** | ||
- | * **User profiles**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Agent groups**: They are only managed from the Metaconsole. Node management is disabled. | ||
- | * By unifying from the Command Center those with the **same name** | ||
- | |||
- | <WRAP center round info 60%>Make sure you adjust the parameter '' | ||
- | |||
- | </ | ||
- | |||
- | * **File collections**: | ||
- | * **Alert template**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Alert commands**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Alert actions**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **//Server plugins// | ||
- | * **OS**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name **will be considered as the **same OS ** (following the priority rules described previously). | ||
- | * **Module tags**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Module categories**: | ||
- | * **Module groups**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Component group**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Network components**: | ||
- | * **Local components**: | ||
- | * **Component Template**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Inventory module**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name and OS** will be considered as the **same module ** (following the priority rules described previously). | ||
- | * **Monitoring policies**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name** | ||
- | * **Policy modules**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name within a policy with the same name** | ||
- | * **Policy inventory modules**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name and OS within a policy with the same name** | ||
- | * **//Policy plugins// | ||
- | * **Policy collections**: | ||
- | * **Alerts and policy external alerts**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same template on the same module name within a policy with the same name** | ||
- | * **Actions on alerts and policy external alerts**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those with the **same name on the same template on the same module name within a policy with the same name** | ||
- | * **Agents within policies**: They are only managed from the Metaconsole. Node management is disabled. By unifying from the Command Center those within policies with the same name will be considered as the **agents within the same policy**. Agent logs within Metaconsole policies will be discarded and noly node logs will be taken into account (which is where application becomes effective). | ||
- | * **Agents**: Agent management in node is allowed, except for their deletion which should be done from the Metaconsola. | ||
- | The sections where those elements are centrally managed can only be managed from the Metaconsole. In case of accessing those elements from the nodes, you may only list them, and the editing and creating options will disappear. Also a warning that will indicate that the environment is in centralized mode, with a link that will lead to the administrator to the corresponding Metaconsole section for element configuration. | ||
- | |||
- | {{ : | ||
- | |||
- | |||
- | ==== Prerequisites for launching the Command Center database merge ==== | ||
- | |||
- | * The **Metaconsole** | ||
- | |||
- | {{ : | ||
- | |||
- | * **Node consoles** | ||
- | {{ : | ||
- | |||
- | * **Servers **from all nodes must be able to **connect** | ||
- | {{ : | ||
- | |||
- | * Node **servers** | ||
- | |||
- | < | ||
- | console_api_url http:// | ||
- | console_api_pass pandora | ||
- | |||
- | </ | ||
- | |||
- | {{ : | ||
- | |||
- | * Each **node **must be able to **connect **to its own **history database.** | ||
- | |||
- | {{ : | ||
- | |||
- | * All **nodes and the Metaconsole **must be from the same version. | ||
- | * All **nodes and the Metaconsole **must be in the **same MR**. | ||
- | |||
- | {{ : | ||
- | |||
- | * All **nodes and Metaconsole **must have the** same maximum collection size **configured in the **Setup**. | ||
- | |||
- | {{ : | ||
- | |||
- | * To avoid errors, the **Metaconsole and the nodes** | ||
- | * All **nodes and the Metaconsole** | ||
- | * All **nodes and Metaconsole** | ||
- | |||
- | {{ : | ||
- | |||
- | * All **nodes and Metaconsole **must have the computer' | ||
- | |||
- | <WRAP center round info 60%> \\ If all those requirements are not met, nodes will not be mixed and it will return an error. If you check the errors of the result, it will return a message with the requirements still pending. \\ </ | ||
- | |||
- | <WRAP center round important 60%>It is important, once the database unification is done, to set again the corresponding value of '' | ||
- | |||
- | |||
- | ==== Recommendations prior to launching the Command Center ==== | ||
- | |||
- | Although they are notrequisites for database unification process, it is recommended to carry out the following actions too: | ||
- | |||
- | * **Stop the****pandora_server****of all nodes and the Metaconsole for the whole process**. As key elements such as groups are going to be changed, their IDs can be modified, and it is not recommended to have the server process include new references to the environment while it lasts. However, the running server shouldn' | ||
- | * **Stop the****cron **'' | ||
- | <WRAP center round important 60%> \\ When the merging process starts, both the nodes and the Metaconsole go into maintenance mode (not for admins). The purpose of this is the same as the recommendation to stop the servers and '' | ||
- | |||
- | {{ : | ||
- | |||
- | |||
- | ==== Merging process execution ==== | ||
- | |||
- | The merging proces has **2 stages, **a first sitage to **synchronyze the different elements **that can be managed from the Metaconsole and a second stage to **update the references in the events to those centralized elements. **This process is performed that way to allow the console to be accesible again as soon as possible, since event updating is part of the process that can take the longest since it usually entails more information. Both stages are in turn divided into other 2 sub-stages differentiated in 2 progress bars. | ||
- | |||
- | |||
- | === Stage 1 elements === | ||
- | |||
- | In this stage **elements are synchronized **found in the databases from all nodes that can be managed from the Metaconsole. It is the merging process as such and it is sub-divided in other 2 stages, each one with its own progress bar: | ||
- | |||
- | * **Initialize: | ||
- | * **Apply: | ||
- | {{ : | ||
- | |||
- | If there is an error during this process (for example, connection loss with a database), the process itself will try to restore the generated backups (a third red progress bar will be seen that will mark the restoration progress). If the reason for the failure prevents the backups from being recovered, the recovery must be done manually. | ||
- | |||
- | <WRAP center round important 60%> \\ If the source of the failure prevents the backups from being recovered, the recovering shall be performed manually. \\ </ | ||
- | |||
- | <WRAP center round important 60%> \\ Sometimes there might be unexpected failures, for example connection lost for a while between the Metaconsole and a node's database or the impossibility of creating a backup due to not having aenough disk space, so it is possible the error message shown will be generic. If that's the case and you need it, contact Pandora FMS support team to receive assistance. \\ </ | ||
- | |||
- | |||
- | === Stage 2: Event updating === | ||
- | |||
- | In this stage **the existing references to the different synchronized elements in events will be updated ** (for example by groups). The stage is subdivided in the update of the main database events and the history database event update and will only affect those events that existed before launching the merging process. The new generated events after centralizing the nevironment will have all the correct references and won't need to be updated. | ||
- | |||
- | * **Main database: | ||
- | * **History database**: It would be the continuation of the previous point, updating the events in the historical database under the same characteristics already indicated. | ||
- | {{ : | ||
- | |||
- | |||
- | ==== Environment already centralized through Command Center ==== | ||
- | |||
- | Once stage 1 is finished, the environment will be considered centralized, | ||
- | |||
- | When you make a change in the Metaconsole (for example, create a user) this queues the necessary queries to the database for the nodes ('' | ||
- | |||
- | This list of pending queries can be seen from the Metaconsole in the **Consoles setup**. If for some reason any query fails, the node will not continue with the rest, you will see an error in **Consoles setup** and it will be necessary to treat it manually by an administrator. In most cases you should be able to fix it by launching the merging process again in the Command Center. | ||
- | |||
- | {{ : | ||
- | |||
- | {{ : | ||
- | |||
- | |||
- | === Including new nodes === | ||
- | |||
- | If in an already centralized environment you **add** a new node, **edit** one, or **re-enable** an existing one that has been left out of the merge, **it will be necessary to go through the** **Command Center** **again**. | ||
- | |||
- | A message will be displayed warning the administrator to do this task. While it is not performed, the node will remain **locked and inaccessible**, | ||
- | |||
- | {{ : | ||
- | |||
- | <WRAP center round tip 60%>\\ | ||
- | If you need to make a change in the console to fix a bug in the merging process (such as applying an OUM), you may delete the item from the node list to temporarily unlock it.\\ | ||
- | </ | ||
- | |||
- | [[: | ||
- | |||
- | |||
- | |||