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

Not possible to define notification parameters via "Configure notifications" UI

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 18.0.0, 23.0.4
    • Security Level: Default (Default Security Scheme)
    • Horizon 2021 - Apr 14 - Apr 28, Horizon 2021 - Apr 28 - May 12

    Description

      When you set a parameter to a notification using the "Configure Notifications" UI, it actually sets a <varbind> tag in the notifications.xml file.

      Given the UI label I would rather expect a <parameter> tag to be added.

      Example: given the screenshot in attachment, the following notification is created:

          <notification name="BusinessServiceProblem" status="on" writeable="yes">
              <uei>uei.opennms.org/bsm/serviceProblem</uei>
              <description>Launch the major-problem notification path for important business services (ie: when the send_sms parameter value equals true)</description>
              <rule>(IPADDR IPLIKE *.*.*.*)</rule>
              <destinationPath>major-problem</destinationPath>
              <text-message> &lt;p&gt;There are currently one or more problems affecting business service '%parm[businessServiceName]%'. args(%parm[##]%): %parm[all]%&lt;/p&gt;</text-message>
              <subject>Notice #%noticeid%: Business service </subject>
              <numeric-message>111-%noticeid%</numeric-message>
              <varbind>
                  <vbname>send_sms</vbname>
                  <vbvalue>true</vbvalue>
              </varbind>
          </notification>
      

      Attachments

        Issue Links

          Activity

            People

              cpape Christian Pape
              stcyr Cyrille Bollu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: