Once Hosts are added into Opsview Monitor, you can choose to edit them individually by either double-clicking on the relevant row or by clicking the contextual menu next to a Host and clicking 'Edit'.
The other method available for editing Hosts is the 'Bulk edit' mechanism, which is detailed in the sub-sections.
The other method available for editing Hosts is the 'Bulk Edit' mechanism. The Bulk Edit mechanism allows multiple Hosts to be edited at the same time and provides the ability the modify the following fields at a Host level:
- Host Templates
- Check Period
- Check Interval
- Retry Interval
- Max Check Attempts
- Host Check Command
All fields, bar Host Templates and Hashtags, are simply replacement actions, i.e. you can choose to enter a new Host Check Command for 10 Hosts, and on 'submit' the Host Check Commands for those Hosts is changed to the Host Check Command specified.
For Host templates and Hashtags, the actions are a little more powerful ' as a Host can have no Host Templates/Hashtags, or alternatively multiple Host templates/Hashtags. Therefore, in the Bulk Edit mechanism for these two fields there are the following options:
- Add to existing: Choose this option to append a new Hashtag/Host Template to the Hosts.
- Clear field: Choose this option to remove all Hashtags/Host Templates from the Hosts.
- Replace with: Choose this option to remove all Hashtags/Host Templates from the Hosts and add the selected Hashtag/Host templates instead. Essentially, this action clears the fields and then adds the selected items.
- Find and remove: Choose this option to remove the selected Hashtags/Host templates from the selected Hosts. This option is in essence a 'selective delete'.
In this example we want to add the Host Template 'Application 'HTTP' to 10 of our Hosts. To do this, first we need to click on 'Bulk edit' within the 'Settings > Hosts Settings' window. This button is located on the top task bar, to the right of the 'Add New' button.
Click on the 'Bulk edit' button
Once we have clicked the Bulk Edit button, the modal window will appear. In the right hand section is a searchable list of all the Hosts within the Opsview Monitor system. At the top is a free-text search box, and at the bottom is a label displaying the number of Hosts currently selected. In our example we are going to select 10 Hosts that have the word 'opsera' in their Host Title, as shown below:
Example bulk edit window, which search box in use and label displaying that 10 Hosts are selected
As you can see from the screen, we have searched for the word 'opsera' which has filtered the list of our Hosts. We have then selected 10 Hosts by checking the checkbox next to the Hosts. Finally, the counter at the bottom of the list has automatically updated to reflect the number of Hosts selected.
Next, we will configure the Host templates option. First, we will click the checkbox next to 'Host Templates' which enables the relevant drop-down menus. Next, we will select 'Add to existing' (as we want to add a new Host template), and finally we will select the 'Application 'HTTP' Host Template from the drop-down menu (below the 'actions' drop-down menu):
Example bulk edit window, with the action of 'Add to existing.. Application ' HTTP' selected
Clicking Submit applies the changes to the configuration. You will notice the Host list page will now display the 'Modified Host' section, showing the 10 Hosts that have been modified.
To apply the changes, click on the 'Reload' button which will navigate through to 'Settings > Reload'.