Ad Widget

Collapse

Performance counters don't work in Zabbix

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gijs007
    Member
    • Oct 2017
    • 40

    #1

    Performance counters don't work in Zabbix

    I'm using the Processor Counter Monitor to add extra performance counters in Windows, which are specific for CPU's.

    These performance counters show up in perfmon.
    However every time I add them I get the following error:
    Invalid performance counter format
    After some time this error changes to:
    Cannot obtain performance information from collector
    According to TypePerf the name of the performance counter I want to use is:
    \PCM Core Counters(total_)\Clockticks
    I've tried the following performance counters in Zabbix, but I keep getting the errors explained above:
    perf_counter["\PCM Core Counters(total_)\Clockticks"]
    perf_counter["\PCM Core Counters(total_)\Clockticks/sec"]
    perf_counter["\PCM Core Counters(total_)\Clockticks/sec", 60]
    Can anyone tell me what I'm doing wrong? I have the same problem with a couple of other performance counters, but some work fine..
  • Answer selected by Markku at 26-05-2023, 08:46.
    LenR
    Senior Member
    • Sep 2009
    • 1005

    I don't know windows well enough to explain it, but it's like services add to the perf counter schema after boot. Those added after the zabbix agent stats aren't viable to thee zabbix agent until it restarts.

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #2
      If you are looking for examples of how to use perf counters you can peak on
      Zabbix templates. Contribute to kloczek/zabbix-templates development by creating an account on GitHub.

      PS. If you want more details about this template you need to contact my friend Scott Simoons as he spend recently most of the time polishing this template
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • Gijs007
        Member
        • Oct 2017
        • 40

        #3
        The problem was resolved by simply restarting the Zabbig Agent. Very confusing

        Comment

        • LenR
          Senior Member
          • Sep 2009
          • 1005

          #4
          I don't know windows well enough to explain it, but it's like services add to the perf counter schema after boot. Those added after the zabbix agent stats aren't viable to thee zabbix agent until it restarts.

          Comment

          • Gijs007
            Member
            • Oct 2017
            • 40

            #5
            Originally posted by LenR
            I don't know windows well enough to explain it, but it's like services add to the perf counter schema after boot. Those added after the zabbix agent stats aren't viable to thee zabbix agent until it restarts.
            That would be a logical and plausible explanation for the problem.

            Comment

            • LenR
              Senior Member
              • Sep 2009
              • 1005

              #6
              We encountered this on either AD or Exchange, we picked one item that would fail after reboot and created a "nodata" trigger that restarts the zabbix agent on the host. The action has to call a script, the windows guys worked for some time to get it working, I think it has to "start" another process outside the agent to restart the agent. I think powershell was involved, which I avoid as much as I can...

              Comment

              • Chewbakka-Wakka
                Junior Member
                • Feb 2018
                • 25

                #7
                What are those perf counters used for? Do you have any links to documents for them?

                Comment

                Working...