Ad Widget

Collapse

Error in perf_counter[] special chars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pierre-hoffmann
    Senior Member
    • Jan 2008
    • 133

    #1

    Error in perf_counter[] special chars

    Hi,

    I'm searching for solution for special chars ,for example 'éèà' in french in key name, in perf_counter[].

    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 workarround .... Any Patch [i'm using Zabbix 1.4.5] ??
    Last edited by pierre-hoffmann; 14-04-2008, 16:23.
    P.Hoffmann
    System & Network Admin.
    __________________________
    Zabbix version 1.8.1
    Hosts monitored 1300
    OS Novell SLES 10 SP2
    __________________________
  • cordeiro
    Junior Member
    • Jul 2007
    • 10

    #2
    Just modify a line !

    Hi Pierre,

    I have the same problem.
    I resolved it by modifying the line 393 on file /var/www/html/include/defines.inc.php !

    replace: define('ZBX_EREG_PARAMS', '([[ print:]]+){0,1}');
    by: define('ZBX_EREG_PARAMS', '(.+){0,1}');

    Sincerely,
    Jean Pierre

    Comment

    • pierre-hoffmann
      Senior Member
      • Jan 2008
      • 133

      #3
      Thanks,

      But what impact of this modification ?? Where is this string used ??

      I'm on a production plateform with 350 hosts & 5000 items;
      i don't wan't have database corruption

      i've see that support of utf8 was in progress in v1.5.1 but not usable at this moment .... Downport to 1.4 ??

      :: Added support of UTF-8
      ZABBIX front-end is UTF-8 ready. Note that ZABBIX database
      and ZABBIX server and agent processes are still not ready
      for correct processing of UTF-8 data.
      Best regards,
      Pierre.
      Last edited by pierre-hoffmann; 15-04-2008, 16:47.
      P.Hoffmann
      System & Network Admin.
      __________________________
      Zabbix version 1.8.1
      Hosts monitored 1300
      OS Novell SLES 10 SP2
      __________________________

      Comment

      • pierre-hoffmann
        Senior Member
        • Jan 2008
        • 133

        #4
        Hi,

        I have the same problem.
        I resolved it by modifying the line 393 on file /var/www/html/include/defines.inc.php !
        I've try to modifie php part, but it seem that zabbix_server binary doesn't undertood 'éè..' chars
        and items was allways 'Not supported by ZABBIX agent'

        [Fix:
        it seem that direct edit of mySQL database work
        UPDATE `zabbix`.`items` SET `key_` = 'perf_counter[\\Disque logique(C: )\\% Temps écriture du disque]'
        WHERE `items`.`itemid` =29201 ;]


        Thank for your help.

        Regards,
        Pierre.
        Last edited by pierre-hoffmann; 17-06-2008, 10:42.
        P.Hoffmann
        System & Network Admin.
        __________________________
        Zabbix version 1.8.1
        Hosts monitored 1300
        OS Novell SLES 10 SP2
        __________________________

        Comment

        • luyggy
          Junior Member
          • Aug 2007
          • 2

          #5
          Hi,

          with version 1.6 I still have problems. Someone has to fix it with 1.6?

          Regards,

          Comment

          • sebthebert
            Junior Member
            • Feb 2009
            • 2

            #6
            Change your Perflib Registry key instead, like explained here.

            Comment

            • simtris
              Junior Member
              • Jul 2009
              • 4

              #7
              Hum, maybe no

              Originally posted by sebthebert
              Change your Perflib Registry key instead, like explained here.
              It's maybe not the better idea : if you don't have the possibility to do it or if you have 1000 french serveurs.
              I love the php modif, I'll tell if the is any unespected effects.

              In my zabbix debian, the file is in : "/usr/share/zabbix/include"

              Regards
              Last edited by simtris; 09-07-2009, 11:44.

              Comment

              Working...