Ad Widget

Collapse

FeatureRequest: Zabbix-Agent Windows Performance Counters Localisation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yso
    Junior Member
    • Aug 2011
    • 16

    #1

    FeatureRequest: Zabbix-Agent Windows Performance Counters Localisation

    Hi

    If I want to monitor performance-counters from Windows, i've just have to modify them to the language of the operating system.

    So if I install a german system, they have to be in german. In French they have to be in french....

    We have many Terminalservers running, mostly in german and english.

    If we want to monitor some counters ,we have to create 2 Teplates (english/german).

    With the german Templates we have Problems with Umlauts "ä ö ü".

    In the Registry, on a german system they would be in german and english. So I think it should be possible to use the english commands, and convert them on the agent.

    See also Forum-Thread: http://www.zabbix.com/forum/showthread.php?t=7455

    If I can help anything.. or if you need more information.. you can contact me.

    Andy
  • yso
    Junior Member
    • Aug 2011
    • 16

    #2
    It looks like there is just the need to replace the function:

    PdhAddEnglishCounter
    with:
    PdhAddCounter


    Maybe this could be a switch in the config-file?

    Comment

    • yso
      Junior Member
      • Aug 2011
      • 16

      #3
      Did a small patch of perfmon.c:




      wcounterPath = zbx_utf8_to_unicode(counterpath);

      if (NULL == *handle) {
      pdh_status = PdhAddCounter(query, wcounterPath, 0, handle);
      if (pdh_status != ERROR_SUCCESS)
      pdh_status = PdhAddEnglishCounter(query, wcounterPath, 0, handle);
      }




      if (ERROR_SUCCESS != pdh_status && NULL != *handle)
      {
      if (ERROR_SUCCESS == PdhRemoveCounter(*handle))



      .. the problem with this patch is.. it's not compatible with old OS-Versions (< 2008/Vista)

      Maybe there should be a ckeck.. if the function "PdhAddEnglishCounter" is aviable or not.

      Comment

      • yso
        Junior Member
        • Aug 2011
        • 16

        #4
        Opened a FeatureRequest in Jira:

        Comment

        Working...