Ad Widget

Collapse

[1.4.1] PerfCounter, Alias, etc...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobrivers
    Senior Member
    • Feb 2007
    • 115

    #1

    [1.4.1] PerfCounter, Alias, etc...

    Hi,

    Sorry, but I think that I'm a little dumb... I'm not able to get PerfCounter running. I searched the forum, found some tips, but I'm not able to do it...

    Let me try to explain what I did:

    First I checked if agent was able to read the counter that I want using the following command:

    PHP Code:
    zabbix_agentd.exe -t perf_counter["\Active Server Pages\Requests/Sec"
    and zabbix returned

    PHP Code:
    perf_counter[\Active Server Pages\Requests/Sec]  [d|10.000000
    So, I edited the zabbix_agentd.conf and appended the following line to it:

    PHP Code:
    PerfCounter=perfcounter.iisrequests,"\Active Server Pages\Requests/Sec",60 
    Then I restarted the zabbix server and tried to execute the following command:

    PHP Code:
    zabbix_agentd.exe -t perfcounter.iisrequests 
    but it returns [m|ZBX_NOTSUPPORTED]

    Reading the forum I found the following, suggesting to use Alias instead.



    So I tried to put the following into my config file:

    PHP Code:
    Alias=perfcounter.iisrequests:perf_counter["\Active Server Pages\Requests/Sec"
    But I got the same result.

    I also tried lots of other combinations (removing my "perfcounter" prefix, removind double quotes, puting PerfCounter and Alias together, etc).

    So, please, help!!

    TIA,

    Bob
  • bobrivers
    Senior Member
    • Feb 2007
    • 115

    #2
    Nothing?

    Hi,

    Any clue?

    TIA,

    Bob

    Comment

    • swaterhouse
      Senior Member
      • Apr 2006
      • 268

      #3
      perf_counter["\Active Server Pages\Requests/Sec"]

      that would go in as the key in the php frontend not in the agent conf file.

      The syntax for the preformance counters in the conf file would be

      PerfCounter=perfcounter.iisrequests,"\Active Server Pages\Requests/Sec",60

      All that is fine but I am pretty sure theres an issue with 1.4.1 windows agent and perfomance counters so until that gets fixed you may still have issues. I cant remember what they are (I am still using 1.1.6 agents on all my windows boxes)

      Comment

      • bobrivers
        Senior Member
        • Feb 2007
        • 115

        #4
        perf_count

        Hi,

        Thanks. I'm already doing it. In fact, I'm following what zabbix manual says:

        PHP Code:
        Performance Monitor can be used to obtain list of available counters.
        Note that this parameter will return correct value only for counters that require just one sample (like \System\Threads).
        It will not work as expected for counters that require more that one sample like CPU utilisation
        So I'm using it, WITH SUCCESS, to retrieve data such as [\Memory\Cache Bytes], [\Internet Information Services Global\File Cache Hits], [\Process(inetinfo)\Virtual Bytes], [\Process(_Total)\Page File Bytes], [\Active Server Pages\Requests Queued], etc...

        But, to counters such as Requests/Sec, Page Faults/sec, Errors/Sec, etc... I'm trying to use PerfCounter. I also did the config as manual says to, adding
        PerfCounter=interrupts,"\Processor(0)\Interrupts/sec",60 to my config file then I created a new item into a host. I used "interrupts" as item's key.

        I restarted the agent, but I always receive an NOT SUPORTED and Zabbix deactivates it...

        I tried many combinations: changing its type of information, key (interrupts, perf_counter[interrupts], perf_counter["interrupts"], etc... And nothing.

        Since the manual says to use PerfCounter with item that needs timed samples, I don't think that I'm allowed to use Alias, because it's seems to be a shortcut to perf_count[*], that as stated into the manual, isn't suited for timed samples..

        Does anyone managed to get it working using 1.4.1 (server and agent)?

        TIA,

        Bob
        Last edited by bobrivers; 07-08-2007, 04:39. Reason: typing error

        Comment

        • bobrivers
          Senior Member
          • Feb 2007
          • 115

          #5
          Nobody?

          Does anyone managed to get it working using 1.4.1 (server and agent)?

          Comment

          • rolandsym
            Member
            • Jul 2007
            • 76

            #6
            pre-1.4.2

            Item's with % and / work in the pre-release version of 1.4.2. I couldn't get them to work with 1.4.1. Just the pre-release agent.


            Rolandsym

            Comment

            • sid
              Member
              • Jul 2006
              • 44

              #7
              Did you make sure you are using the correct value for 'Type of Information:" (ie. float, integer).

              If you use a float instead of integer, it could show up as unsupported.

              Comment

              • Frodo
                Junior Member
                • Jun 2007
                • 25

                #8
                The using of the PerfCounter under Zabbix looks a little confusion for me.
                I only use the perf_counter key at the frontend, no entries in the client config and no alias and so on. This is for me the most logical way to work with perf_counter.
                Because i am from germany we have german W2K3-Server installed.
                This is not good for the way, but for TS there is no other chance.
                The problem is that the Frontend can not handel the german umlauts e.g. ä,ö.
                I looked into the table (items) and there is nothing there.
                My workaround is: create a perf_counter without the umlauts and then make a update on the table items. Then it works fine. But never touch the item at the frontend.
                I think there is a bug in the php-code.
                Perhaps someone want to fix it?

                Comment

                • testos
                  Member
                  • Apr 2007
                  • 85

                  #9
                  Try fix proposed by globifrosch in this thread. It work fine.

                  Comment

                  Working...