Ad Widget

Collapse

Problem Monitoring Items with Special Caracters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hitchhiker
    Junior Member
    • Jun 2007
    • 1

    #1

    Problem Monitoring Items with Special Caracters

    Hi All,

    I have been using Zabbix for quite a while now and I have recently updated to 1.4, I have notice the follow:
    When monitoring an Item with perf_counter Zabbix does not support having [] or () nor % in the Key
    Example:
    \Network Interface(Intel(R) Advanced Network Services Virtual Adapter)\Bytes Received/sec
    \SQLServeratabases(msdb)\Log File(s) Size (KB)
    \Processor(0)\% Processor Time

    Status turns to Not Supported
    MSSQL Express windows internal database service cannot be monitored with service_state because Key does not support special characters
    Example:
    Windows Internal Database (MICROSOFT##SSEE)

    Is this a bug?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It looks like a bug. Thanks for reporting.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • globifrosch
      Member
      • Sep 2005
      • 74

      #3
      problems also with umlauts

      seems that this problem applies also to umlauts (ä ü ö etc.)

      This doesn't work:
      perf_counter[\Physikalischer Datenträger(_Total)\Durchschnittl. Warteschlangelänge der Datenträger-Lesevorgänge]

      Message: Incorrect key format 'key_name[param1,param2,...]'

      This works:
      perf_counter[\Physikalischer Datentraeger(_Total)\Durchschnittl. Warteschlangelaenge der Datentraeger-Lesevorgaenge]

      (works as in "it can be saved, however can't get data)

      (yes german perfcounters have really nice and extra short names)

      i'm using 1.4.1

      - Thomas

      Comment

      • globifrosch
        Member
        • Sep 2005
        • 74

        #4
        ok, i found the in the defines.php ZBX_EREG_PARAMS there was somethin like [[print]] but this matches (the hell knows why) not ä ö ü etc. change it to

        Code:
        define('ZBX_EREG_PARAMS', '(.+){0,1}');
        and now i can save parameter with umlauts.

        - Thomas

        Comment

        • testos
          Member
          • Apr 2007
          • 85

          #5
          Zabbix pre 1.4.2 Revision 4600 - Date 16 Aug, 2007, problem still not fixed.
          I cannot save parameter with umlauts.

          Thanks

          Comment

          • 753713
            Senior Member
            • Apr 2006
            • 137

            #6
            define('ZBX_EREG_PARAMS', '(.+){0,1}');

            Thanks for this "mini howto", its work fine

            Christian
            ______________________________
            Version : 2.0.x
            Server OS: Ubuntu 12.04
            Zabbix Servers: 12
            Monitored Windows Server: ~ 1000
            ______________________________

            Comment

            • 753713
              Senior Member
              • Apr 2006
              • 137

              #7
              Hello,

              I have a next problem with "german umlauts (ÜÄÖ)", after change in defines.php ('ZBX_EREG_PARAMS', '(.+){0,1}') , I cannot export and import my items.

              Any ideas???

              Christian
              Last edited by 753713; 10-09-2007, 08:31.
              ______________________________
              Version : 2.0.x
              Server OS: Ubuntu 12.04
              Zabbix Servers: 12
              Monitored Windows Server: ~ 1000
              ______________________________

              Comment

              • psedo
                Junior Member
                • Aug 2007
                • 10

                #8
                News ?

                There are some news about that ? (patch,...)

                The modification of "defines.inc.php" or enter item keys without special caracters and then to edit mysql "item" table with special caracters, seems to be not very reliable so the only solution, for the moment, for perf_counter (for example) with special caracter is to put into each zabbix_agentd.conf ?


                Thank's in advance
                Last edited by psedo; 13-09-2007, 14:49.

                Comment

                • NOB
                  Senior Member
                  Zabbix Certified Specialist
                  • Mar 2007
                  • 469

                  #9
                  Another character giving problems with perf_counters: #

                  Hi,

                  I have some Windows 2003 SP2 64-bit systems with more than one interface,
                  i.e. four.

                  The interfaces are called, e.g., "Interface", "Interface #2" and "Interface #3".
                  The fourth one is not used.

                  I can, say, request the performance counter for the first one ("Interface") fine,
                  but for the second one the Zabbix Agent (1.4.2) returns "Unsupported".

                  I didn't check the sources, yet, but is this a bug or is it my mistake
                  in not using the right syntax ?

                  The real items (from zabbix_get) used are as follows:

                  This one works fine:

                  Code:
                  zabbix_get -s i14.xxx.org -k 'perf_counter[\Network Interface(Intel[R] PRO_1000 PT Quad Port LP Server Adapter)\Output Queue Length]'
                  The next one doesn't:

                  Code:
                  zabbix_get -s i14.xxx.org -k 'perf_counter[\Network Interface(Intel[R] PRO_1000 PT Quad Port LP Server Adapter #2)\Output Queue Length]'
                  Is there a way to quote the '#' character ?

                  Regards

                  Norbert.

                  Comment

                  • NOB
                    Senior Member
                    Zabbix Certified Specialist
                    • Mar 2007
                    • 469

                    #10
                    No problem with the character # in perf_counter

                    Hi again,

                    sorry, there is no problem with the character #
                    It'll never really appear in the perf_counter because Windows
                    maps the connection / devicename # to a _ !
                    That means "Interface _2" instead of the device name "Interface #2".
                    I did not check the real performance counter because the name was
                    soooo long so it was not visible in the perfmon dialogbox, the windows
                    is not resizable, etc.
                    And I couldn't imagine that Windows maps the # to a _

                    Sorry.

                    Regards

                    Norbert
                    Last edited by NOB; 02-10-2007, 13:13.

                    Comment

                    • pierre-hoffmann
                      Senior Member
                      • Jan 2008
                      • 133

                      #11
                      Hi,

                      I'm searching for solution for special char 'éèà' in french in key name.

                      Example creating:
                      Windows US key: perf_counter[\System\Threads]
                      Windows French key: perf_counter[\Système\Threads]

                      Generate:
                      Incorrect key format 'key_name[param1,param2,...]'

                      Any idea .... Any Patch [i'm using Zabbix 1.4.5]
                      P.Hoffmann
                      System & Network Admin.
                      __________________________
                      Zabbix version 1.8.1
                      Hosts monitored 1300
                      OS Novell SLES 10 SP2
                      __________________________

                      Comment

                      • Laca
                        Junior Member
                        Zabbix Certified Specialist
                        • Apr 2008
                        • 3

                        #12
                        Problem with special characters (é,ő,á,ó)

                        Hi!

                        I have a problem too with this (language-related) special characters, while I try monitor mixed environment. (Win2003ENG; Win2003HUN)

                        I would like to monitor the Average disk read queue length with the following key:

                        perf_counter[\Physical Disk(_Total)\Avg. Disk Read Queue Length]

                        It works perfectly on Win2003ENG.

                        In Windows2003 Hungarian edition the key is:

                        perf_counter[\Fizikai lemez(_Total)\Lemezvezérlő-várólista átlagos hossza]

                        I got the same error message:

                        Incorrect key format 'key_name[param1,param2,...]'

                        Has anybody an working solution to solve this problem?

                        Laca

                        Comment

                        • felipebare
                          Junior Member
                          • Jun 2007
                          • 12

                          #13
                          What about this bug ? It's still happening when I try to create:

                          perf_counter[\PhysicalDisk(_Total)\Média de disco s/leitura]

                          Regards.

                          Felipe.

                          Comment

                          • scott
                            Junior Member
                            • May 2006
                            • 17

                            #14
                            Similar issue

                            Recently upgraded to Zabbix 1.4.5 and now am experiencing issues with any Key with / symbol.

                            Incorrect key format 'key_name[param1,param2,...]'

                            The items still function but I cannot make changes or add new ones with same format. Is the bug back in 1.4.5? Any help and/or recommendations?

                            EDIT: Further testing shows that if brackets are placed around the symbol it will function. Ex:
                            key1/1/1 will fail
                            key[1/1/1] will function
                            Last edited by scott; 28-04-2008, 23:22. Reason: more info

                            Comment

                            • n0name
                              Junior Member
                              • Jul 2008
                              • 11

                              #15
                              I use next perf_counter["counter"]
                              It work.

                              Comment

                              Working...