When creating/editing a Monitoring Policy in TSPS, while adding a Configuration Variable, in the "Value" field, it is not possible to add multiple lines. For example, when monitoring Oracle Database Links, if multiple DB Links need to be monitored, it is only possible to add one DB Link in the "Value" field of Configuration Variables |
Defect DRTMN-121 has been raised for this issue. Workaround: For now, the workaround available to achieve this is requirement is by creating a policy via REST API Below is a REST API example using which we can create a monitoring policy in TSPS for multiple Oracle DB Links monitoring: Example REST API URL: https://<TSPS_ServerName>/tsws/10.0/api/unifiedadmin/MonitoringPolicy/create Example REST API Create Policy query: { "monitoringPolicy": { "id": "8d2629bd-be50-4031-89bb-80d54c32be96", "name": "configvar13", "type": "monitoring", "description": "", "tenant": { "name": "*" }, "precedence": 12, "agentSelectionCriteria": "agentOS CONTAINS \"linux\" ", "associatedUserGroup": "Administrators", "owner": "admin", "rulesetConfiguration": { "rulesets": [ { "variable": "/OracleConfig.ora12cr2.DBLinks.SelectedLinks", "operation": "REPLACE", "value": "PUBLIC.PUBLIC_TEST_LINK\nPUBLIC.PUBLIC_TEST_LINK2\nPUBLIC.PUBLIC_TEST_LINK3\nPUBLIC.PUBLIC_TEST_LINK4" } ] }, "enabled": true, "shared": true } } As shown in the above example, the multiple lines addition to the "Value" field can be achieved by using the '\n' delimiter between each line |