Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1712

broken mon.listening_udp<x> variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.2
    • Component/s: Environment Detection
    • Labels:
      None
    • Platform:
      Linux
    • Found in version (details):
      CFEngine Core

      Description

      what:

      on an ubuntu 14.04 system the variables
      mon.listening_udp4_ports
      and
      mon.listening_udp6_ports
      are always containg just a closing bracket "}"
      never a correct value
      tcp4 and tcp6 values are correct however.

      tested on:

      CFEngine Core 3.6.0
      CFEngine Core 3.6.1 and
      CFEngine Core 3.6.2rc

      how to reproduce:

      input:

      <pre>

      body common control
      {
      bundlesequence =>

      { "main", }

      ;
      }

      bundle agent main
      {
      methods:
      "any" usebundle => test;
      }

      bundle agent test
      {
      reports:
      cfengine::
      "mon.listening_udp4_ports is ${mon.listening_udp4_ports}";
      "mon.listening_tcp4_ports is ${mon.listening_tcp4_ports}";
      "mon.listening_udp6_ports is ${mon.listening_udp6_ports}";
      "mon.listening_tcp6_ports is ${mon.listening_tcp4_ports}";
      }

      </pre>

      output:

      <pre>

      R: mon.listening_udp4_ports is }
      R: mon.listening_tcp4_ports is 25
      R: mon.listening_tcp4_ports is 22
      R: mon.listening_tcp4_ports is 111
      R: mon.listening_tcp4_ports is 59054
      R: mon.listening_tcp4_ports is 3306
      R: mon.listening_tcp4_ports is 199
      R: mon.listening_tcp4_ports is 5308
      R: mon.listening_udp6_ports is }
      R: mon.listening_tcp6_ports is 25
      R: mon.listening_tcp6_ports is 111
      R: mon.listening_tcp6_ports is 44360
      </pre>

      expected results:

      all the udp ports that the system is listening on should be listed

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              robur314@gmail.com tim robur taler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel