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)

          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.

          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";

          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.

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            If device not support SNMP version 2c, replace -v2c with -v1.

          • If you have problems with discovery or poller processes, please do and attach these debugs:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          People

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

            Dates

              Created:
              Updated:
              Resolved: