Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4608

Filter out docker interfaces (veth -interfaces)

Details

    • Improvement
    • Resolution: Not A Bug
    • Minor
    • None
    • Professional Edition
    • Ports
    • None

    Description

      Hi

       

      I would like to same mechanism to ignore docker/k8s network interfaces from polling and showing up.

      I'm polling our Nutanix Prism Central CVM:s thru SNMP and it's running its some Docker or K8S cluster inside them and its constantly deleting and creating veth -interfaces. So log is saying like:

      vethfd3fe3c0 Interface was marked as DELETED

      vethfd3fe3c0 Interface changed: [ifDescr] '' -> 'vethfd3fe3c0'; [ifType] '' -> 'ethernetCsmacd'; [ifMtu] '' -> '1400'; [ifSpeed] '' -> '10000000000'; [ifPhysAddress] '' -> '7653e2451929'; [ifAdminStatus] '' -> 'down'; [ifOperStatus] '' -> 'down'; [ifName] '' -> 'vethfd3fe3c0'; [ifHighSpeed] '' -> '10000'; [ifPromiscuousMode] '' -> 'false'; [ifConnectorPresent] '' -> 'true'; [port_label] '' -> 'vethfd3fe3c0'; [port_label_short] '' -> 'vethfd3fe3c0'; [port_label_base] '' -> 'vethfd3fe'; [port_label_num] '' -> '3c0'; [ifLastChange] '2023-09-15 11:47:21' -> '2023-09-15 11:45:13'

      this happens many times per hour.

      Attachments

        Activity

          [OBS-4608] Filter out docker interfaces (veth -interfaces)
          landy Mike Stupalov made changes -
          Resolution New: Not A Bug [ 6 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: In Progress [ 3 ]

          Thx for the tip, i will try that.

          ppanula Pekka Panula added a comment - Thx for the tip, i will try that.
          ppanula Pekka Panula added a comment - observium-prism-central-ports-discovery.txt Here is the discovery.
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          ppanula Pekka Panula made changes -

          You always can ignore interfaces (globally) by regex in config.php, based on your example:

          $config['bad_if_regexp'][] = "/^veth([a-f\d]{8})/i";
          

          landy Mike Stupalov added a comment - You always can ignore interfaces (globally) by regex in config.php, based on your example: $config['bad_if_regexp'][] = "/^veth([a-f\d]{8})/i";
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          Please make (as minimum) discovery debug for ports:

          ./discovery.php -d -m ports -h <device>
          

          But better to make full debug as Bot written.

          landy Mike Stupalov added a comment - Please make (as minimum) discovery debug for ports: ./discovery.php -d -m ports -h <device> But better to make full debug as Bot written.
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          ppanula Pekka Panula made changes -
          Attachment New: nutanix-prismcentral-ports.png [ 20908 ]

          People

            landy Mike Stupalov
            ppanula Pekka Panula
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: