Introduction

Managing and monitoring a large network of devices requires a scalable, high availability and easy to manage solution. opHA 3.0.5 brings a new feature that allows you to centralise the configuration files from the Primary and send it to the pollers. The configuration files can be applied in NMIS and OMK. This partial configuration file would override the configuration that the poller has. 

Requirements

Configuring opHA

opHA configuration consists of the following steps:

You can also map a role with a peer. By default, the following roles are available: 

And these roles are assigned: 

Configuration files

Viewing configuration files


On the Views > Configuration > Cluster Configuration page, you can see a list of configured files.

Creating a new configuration file


To start creating a new configuration file, go to View > Configuration and click the New Conf. File button on the Cluster Configuration page.

On the "Create New Configuration file" window that opens -

Click Create
This will open the template in an editor. A generic templated will be loaded if the file is not opCommon (OMK) or Config (NMIS).

considerations:

Pushing a configuration file


To view a list of configured files, from the menu, click Views > Configuration and open the Cluster Configuration page.

Click the Push button icon to push the required configuration file to the configured groups.

On the "Send configuration file to peers" window that opens, you can see if any daemons need to be restarted. 

Click the Push button to complete the configuration push. Open the Log to see the push status and errors, if any. 

Removing a configuration file


To remove a configuration file from the peers it was successfully sent to earlier -

Viewing the resulting configuration


To see the result configuration of a peer, click the View Conf. file button.

Select the peer.

And select the file from the file browser.

Groups

Adding/Editing Peers in a Group


To add/edit a peer in a group -

To add/edit members in an exiting group, select the Group and click the Edit icon above the table.

On the "Add group members" window that opens, add, edit, or remove the peers and click Save


Creating/Editing a Group 


To create a new group or edit an existing group, on the Views > Configuration > Peers Groups page, click the Edit Groups icon.   

To create a new group, click the Create icon.

To edit or delete an existing group, select the group and use the respective icons above the table to edit/delete them. 

Please be aware that, if you remove a group, all group associations will be lost. 

Assigning a Group to a Config file

You can assign a group to a Configuration file on the Views > Configuration > Cluster Configuration page. Click the Edit icon against the required configuration file and add groups on the "Select groups to apply to this config file" window. 


Roles

Role Mapping


To assign a peer to a role, click the Role Mapping button from the Configuration menu.

On the Role Mapping page that opens, you can add new mappings, edit or remove the existing ones.

Note that if a peer has a role assigned, it will not appear under the add button; you will need to edit it. 

What Central Managed Means 

Please note that after you change the NMIS or OMK configuration from the Primary, it shall not be edited from its own poller. 

If a peer role is set to be a poller, opHA menu will not be available:

When you update the configuration in NMIS from a Primary, you cannot edit/update the config from NMIS (on the NMIS configuration screen). 

Restoring a Backup

opHA, by default saves two backup files in every poller in the <nmis>/backups directory or <omk/conf/conf.d/backups> directory. You can change the backup location by editing the opha_backup_master_location file. 

Similarly, you can also change the number of backup files by modifying the same in opha_max_backup_files.

Restoring a backup can only be done manually, in each poller where required. To do so -

Cleanup Utilities

opHA has two utility tools to cleanup orphaned files and orphaned metadata: 

Important: Cleanup utilities run in simulation mode by default. It is a good practice to run as simulation to check all the files that are going to be removed. simulate=f will remove all files and metadata. 

New configuration Items

These are new configuration values: 

New configuration items for nmis:

Considerations

Once a peer is edited from opHA, is important to know: