Ad Widget

Collapse

Windows performance counters not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arli
    Member
    • Jan 2008
    • 71

    #1

    Windows performance counters not working

    I'm trying to get Windows performance counter values as described in the documentation:
    http://www.zabbix.com/documentation/...mance_counters

    I decided to start with the same simple example, so I made sure, that the "Processor(0)\Interrupts/sec" existed, by running typeperf -qx.

    Then I tried to query this through agent:
    zabbix_get -s myserver -k perf_counter["Processor(0)\Interrupts/sec"]
    But it returned ZBX_NOTSUPPORTED

    Checked the agent logs and there was:
    Can't get required buffer size. Counter path is "Processor(0)\Interrupts/sec": The specified counter path could not be interpreted.

    I looked into the agent's source perfmon.c and what I saw there was indicating some kind of memory allocation error.
    What can it mean?
    Can this be caused by let's say some conflict regarding 32bit/64bit agent software running on 32bit/64bit OS? The server I was testing was 32bit XP and I don't think the 64bit agent would even run on it? Is there a way to determine if I'm running a 32bit or 64bit agent?

    I'm using a slightly modified installer from http://www.suiviperf.com/zabbix/ and my agent version is 1.8.5
    Last edited by arli; 13-12-2011, 10:50.
  • arli
    Member
    • Jan 2008
    • 71

    #2
    Well.. any ideas?
    In the mean time, I installed latest stable precompiled 32bit agent (1.8.5 (revision 19047)) on my 32bit win xp, from zabbix.com and the result is exactly the same.
    It's starting to look like a bug to me... but why I'm the only one with this problem and on all of my windows servers.. there's something fishy going on.

    Comment

    • Navoyenok
      Senior Member
      • Dec 2011
      • 101

      #3
      Hi!

      May be enough right for Zabbix-service user for reading this performance counter.

      Best regards!

      Comment

      • arli
        Member
        • Jan 2008
        • 71

        #4
        To rule out the permission issue, I created a new local user, who is belonging to local Administators group and ran zabbix agent with it's privileges, but error remains the same.

        Comment

        • Navoyenok
          Senior Member
          • Dec 2011
          • 101

          #5
          Dear, Arli.

          Did you check Performance Counters list on your Windows XP computer?

          Performance Counter in Zabbix must be written exactly.

          Best Regards

          Comment

          • arli
            Member
            • Jan 2008
            • 71

            #6
            Well the typeperf -qx does print a list of counters and the \Processor(0)\Interrupts/sec is also in this list.
            But by reading Navoyenok's comment, I started to think that maybe the backslash in the beginning is also importaint. And guess what... it is working when I also add that. So dear Zabbix team when
            "Processor(0)\Interrupts/sec" doesn't work and
            "\Processor(0)\Interrupts/sec" works,
            WHY DO YOU MAKE AN EXAMPLE LIKE THIS ON DOCUMENTATION
            perf_counter["Processor(0)\Interrupts/sec"]

            WTF guys!!!
            I'm used to trust the documentation and when there's an example without a backslash in the beginning, I'll assume that zabbix is removing it by itself or someting. I'm really frustrated, cause I've spent so much time on debugging someting and that could have been avoided by a correct documentation.

            Comment

            • zalex_ua
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2009
              • 1286

              #7
              arli, as I know that documentation page will be fixed, tomorrow.

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                Sorry, it was just a typo. Fixed by martins:

                http://www.zabbix.com/documentation/...mance_counters
                http://www.zabbix.com/documentation/...s/perfcounters

                Thanks for reporting this.

                Comment

                Working...