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

Allow regular expression to change single character in locations

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Web Interface

    Description

      Hello

      Can we get possibility to change noncompatible chars in device's location string by using regexp so it will change only one character

      Also very useful would be to set a list of regular expressions and get rid of all possible noncompatible chars. In conclusion device will be set up with correct char.

      Attachments

        Activity

          [OBS-4377] Allow regular expression to change single character in locations

          Added ability in r12486.

          landy Mike Stupalov added a comment - Added ability in r12486.

          yah, incorrectly encoded utf.
          should be:

          50 C3 A4 72 6E 75

          instead

          50 43 24 72 6E 75

          landy Mike Stupalov added a comment - yah, incorrectly encoded utf. should be: 50 C3 A4 72 6E 75 instead 50 43 24 72 6E 75

          Hello Mike,

           

          Here it is:

          .1.3.6.1.2.1.1.6.0 = Hex-STRING: 50 43 24 72 6E 75 

          maksimj Maksim Jelizarov added a comment - Hello Mike,   Here it is: .1.3.6.1.2.1.1.6.0 = Hex-STRING: 50 43 24 72 6E 75 

          This not very usefull, I need to see snmp output.. Make please this minimum snmp walk:

          snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.2.1.1.6

          landy Mike Stupalov added a comment - This not very usefull, I need to see snmp output.. Make please this minimum snmp walk: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.2.1.1.6

          Device is cisco switch, I dont see any options to change encoding on cisco devices.

           

          [sysContact]                => string(0) ""
            [version]                   => string(9) "15.2(7)E2"
            [hardware]                  => string(16) "WS-C2960CX-8TC-L"
            [vendor]                    => string(5) "Cisco"
            [features]                  => string(11) "UNIVERSALK9"
            [location]                  => string(1; UTF-8) "ä"
            [os]                        => string(3) "ios"
            [status]                    => string(1) "1"
            [status_type]               => string(2) "ok"
            [ignore]                    => string(1) "0"
            [ignore_until]              => null

          maksimj Maksim Jelizarov added a comment - Device is cisco switch, I dont see any options to change encoding on cisco devices.   [sysContact]                => string(0) ""   [version]                   => string(9) "15.2(7)E2"   [hardware]                  => string(16) "WS-C2960CX-8TC-L"   [vendor]                    => string(5) "Cisco"   [features]                  => string(11) "UNIVERSALK9"   [location]                  => string(1; UTF-8) "ä"   [os]                        => string(3) "ios"   [status]                    => string(1) "1"   [status_type]               => string(2) "ok"   [ignore]                    => string(1) "0"   [ignore_until]              => null

          location map ability is not for this.

          It seems as incorrect UTF-8 encoding on device.
          Can you attach poller debug:

          ./poller.php -d -m system -h <device>
          

          landy Mike Stupalov added a comment - location map ability is not for this. It seems as incorrect UTF-8 encoding on device. Can you attach poller debug: ./poller.php -d -m system -h <device>

          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 -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -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 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -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
            maksimj Maksim Jelizarov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: