Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10200

Allow use of placeholders in parameter values of monitors

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 22.0.0
    • Fix Version/s: 23.0.0
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Similar to XML collectors, allow the use of placeholders in parameter values for service monitors so that the value of a node's asset property can be used for parameter values. Example:

      <service name="OpenNMS-129" interval="300000" user-defined="false" status="on">
        <parameter key="retry" value="1"/>
        <parameter key="timeout" value="3000"/>
        <parameter key="port" value="8080"/>
        <parameter key="url" value="/opennms/event/list"/>
        <parameter key="basic-authentication" value="{username}:{password}"/>
        <parameter key="response" value="200"/>
      </service>

      Assuming that node x with interface 127.0.0.1 which has service OpenNMS-129 and has asset values 'admin' for username and 'admin' for password, the effective value for the basic-authentication parameter for this interface would be 'admin:admin'. However, if node y with interface 10.0.0.1 has service OpenNMS-129 and has asset property username: 'admin', and password: '@dm1n', the effective value would be 'admin:@dm1n'.

       

      Besides asset properties, allow the use of the following additional placeholders:

      • ipAddr|ipAddress
      • nodeId
      • nodeLabel
      • foreignId
      • foreignSource

      PR #2019

       

        Attachments

          Activity

            People

            • Assignee:
              schlend David Schlenk
              Reporter:
              schlend David Schlenk
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: