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
          landy Mike Stupalov made changes -
          Assignee Original: Adam Armstrong [ adama ] New: Mike Stupalov [ landy ]
          Resolution New: Fixed [ 1 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]

          Added ability in r12486.

          landy Mike Stupalov added a comment - Added ability in r12486.
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          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
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]

          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 
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          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
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]

          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

          People

            landy Mike Stupalov
            maksimj Maksim Jelizarov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: