|
Configuring Virtual Center Tasks
This test monitors configured VC tasks and reports their current status. By default, the test monitors a pre-defined set of tasks belonging to pre-configured event categories. You can override this default setting by including/excluding specific tasks from an event category. To achieve this, do the following:
- Login to the eG administrative interface.
- To access this page, click on the icon available in the Admin tab.
- Then, select the Settings option in the Agents tile.
- Click on the VCenter Tasks option from the Agent Settings tree. Alternatively, you can also click on the Click here hyperlink that is available above the parameters of this test in the Test configuration page. Either way, v-CENTER TASKS page appears.
- Select a task category from the Task category list to be monitored.
Note:
By default, the Task category list in v-CENTER TASKS page displays a pre-configured set of event categories. You can make more event categories available for selection in this list or remove one/more of the pre-defined categories, if need be. To achieve this, follow the steps given below:
- Edit the eg_tests.ini file in the \manager\config directory.
- In the [VirtualCenterTasks] section of this file, you will find the default event categories that will populate the Event category list of v-CENTER TASKS page, and the individual events of each category. The format of these default entries is:
VCTaskEvtTest:<EventCategory>=<Comma-separated list of events belonging to this category>
- To add a new event category to this default list, you just need to append a line to the [VirtualCenterTasks] section in the format mentioned above. For instance, say, you want to include a category named NfcService to the Event category list of v-CENTER TASKS page. In this case, you will have to insert a line in the [VirtualCenterEvents] section for this category, as mentioned below:
VCTaskEvtTest:NfcService=NfcService.randomAccessOpen,NfcService.randomAccessOpenReadonly,NfcService.getVmFiles,NfcService.putVmFiles,
NfcService.fileManagement,NfcService.systemManagement
- Next, proceed to the [VCTaskFilterTypes] section of the eg_tests.ini file. For every event category that is defined in the
[VirtualCenterETasks] section, a corresponding entry should exist in the [VCTaskFilterTypes] section. If not - i.e., if an event category exists only in the [VirtualCenterTasks] section and not in the [VCTaskFilterTypes] section - then, such an event category will not be listed as an option in the ‘Event Category’ list box of v-CENTER TASKS page.
- Typically, the [VCTaskFilterTypes] section is used to indicate which tasks of a particular category need to be monitored by default, and which are
not to be monitored. The entries to this section need to be of the following format:
VCTaskEvtTest:<EventCategory>=<Comma-separated list of tasks to be included while monitoring>:<Comma-separated list of tasks to be excluded from monitoring>
To include/exclude all tasks of a particular category, use the keyword all, and to ensure that no events of a certain category is included/excluded, use the keyword none.
- For instance, to ensure that all the tasks of the Alarms event category, except the alarm.Alarm.setCustomValue task, is to be monitored by default, your specification would be:
VCTaskEvtTest:Alarms=all:alarm.Alarm.setCustomValue
- Once entries for the new event category are inserted in both the sections, save the eg_tests.ini file.
- Selecting an Event category displays the tasks of the chosen category that are by default included for monitoring in the included tasks list, and those that are by default excluded from monitoring in the excluded tasks list.
Note:
- Every event category that is defined in the [VirtualCenterTasks] section of the eg_tests.ini file (in the <EG_INSTALL_DIR>\manager\config directory) is associated with a set of tasks. Typically, to indicate which of these tasks need to be monitored by default, and which are not to be monitored, the [VCTaskFilterTypes] section of the eg_tests.ini file is used.
- For every event category defined in the [VirtualTaskEvents] section, a corresponding entry should exist in the [VCTaskFilterTypes] section indicating the default set of tasks to be included and/or excluded from monitoring. This entry should be of the following format:
VCTaskEvtTest:<EventCategory>=<Comma-separated list of tasks to be included while monitoring>:<Comma-separated list of tasks to be excluded from monitoring>
- To include/exclude all tasks of a particular category, use the keyword all, and to ensure that no tasks of a certain category is included/excluded, use the keyword none.
- For instance, to ensure that all the tasks of the Alarms event category, except the alarm.Alarm.setCustomValue task, is to be monitored by default, your specification would be:
VCTaskEvtTest:Alarms=all:alarm.Alarm.setCustomValue
- This makes sure that if the Alarms option is chosen from the Event category list of v-CENTER TASKS page, the EXCLUDED TASKS list by default displays the task, alarm.Alarm.setCustomValue, and the INCLUDED TASKS list displays all other tasks associated with the Alarms category.
Note:
- While using the [VCTaskFilterTypes] section to configure specific tasks to be included/excluded by default for an event category, make sure that such tasks are a sub-set of the tasks that have been defined for that category in the [VirtualCenterTasks] section. For instance, say, you do not want to monitor the alarm.Alarm.setCustomValue task of the Alarms category. To ensure this, you will have to include the following line in the [VCTaskFilterTypes] section:
VCTaskEvtTest:Alarms=all:alarm.Alarm.setCustomValue
- However, before adding this line to the [VCTaskFilterTypes] section, verify whether the event, alarm.Alarm.setCustomValueis available in the list of tasks that have been defined for the Alarms category in the [VirtualCenterTasks] section.
- Make sure that entries such as the following are not inserted in the [VCTaskFilterTypes] section:
VCTaskEvtTest:<EventCategory>=all:all
VCTaskEvtTest:<EventCategory>=none:none
- Also, note that the keywords all and/or none should not be part of a comma-separated list.
- To include any of the tasks that are by default listed in the EXCLUDED TASKS list, select the task from the list and click the < button. Similarly, to exclude any of the tasks that are by default available in the INCLUDED TASKS list, select one/more tasks from the list and click the > button.
- Finally, save the changes by clicking on the Update button.
|