Ad Widget

Collapse

perf_counter: how to ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    perf_counter: how to ?

    Hi,

    I am trying to request the performance counter for the
    following item:

    Network Interface\InterfaceName\Packets Outbound Errors

    where the interface name is, e.g.
    as displayed in perfmon:

    Intel[R] Pro_1000 MT Dual Port Network Connection

    as displayed in network interfaces:

    Intel(R) Pro/1000 MT Dual Port Network Connection


    However, whatever I try to request as key in zabbix_get the
    answer is always: ZBX_UNSUPPORTED and the agent log file shows:

    Code:
      2596:20070509:090506 Requested [perf_counter[Network Interface(Intel\[R\] Pro_1000 MT Dual Port Network Connection)\Packets Outbound Errors]]
      2596:20070509:090506 Can't add counter [Network Interface(Intel\[R\] [Unable to parse the counter path. Check the format and syntax of the 
    specified path.
    ]
    I am out of ideas.

    What am I doing wrong ?

    Edited: I am using 1.3.6 agent. Is it still a question of the size of the request ?
    I found a definition of the size for the request of 108.

    Regards,

    Norbert.
    Last edited by NOB; 09-05-2007, 09:44.
  • SierraX
    Junior Member
    • Dec 2006
    • 21

    #2
    Test it with the Realname of connection. Like "LAN-Verbindung" in Germany

    Comment

    • NOB
      Senior Member
      Zabbix Certified Specialist
      • Mar 2007
      • 469

      #3
      Thanks for the suggestion

      Originally posted by SierraX
      Test it with the Realname of connection. Like "LAN-Verbindung" in Germany
      but

      Code:
      perf_counter[\Network Interface(MS TCP Loopback interface)\Packets Outbound Errors]'
      works and returns, of course, 0.000000 !

      While the request
      Code:
      perf_counter[\Network Interface(Local Area Connection)\Packets Outbound Errors]
      returns ZBX_UNSUPPORTED

      Looking at the source code, performance counter names containing '['
      are not very likely to be supported. There is just a simple check for '['.
      Unfortunately, there is no debug otuput for the real name of the
      performance counter checked.
      And I can't compile the agent, myself -> no MS Visual Studio, here !

      Norbert.
      Last edited by NOB; 09-05-2007, 14:04.

      Comment

      • SierraX
        Junior Member
        • Dec 2006
        • 21

        #4
        You want errors from a Loop back device (a virtual device without any incoming error messages)? Is like ping to 127.0.0.1 nice to look but very useless.
        We use (on german Windows) the following line to get incoming and outgoing NetTraffic

        PerfCounter=netz.readspersec.bytes, "\Netzwerkschnittstelle(LAN-Verbindung)\Bytes gesendet/s",60

        agentd=1.1.7

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Originally posted by SierraX
          You want errors from a Loop back device (a virtual device without any incoming error messages)? Is like ping to 127.0.0.1 nice to look but very useless.
          We use (on german Windows) the following line to get incoming and outgoing NetTraffic

          PerfCounter=netz.readspersec.bytes, "\Netzwerkschnittstelle(LAN-Verbindung)\Bytes gesendet/s",60

          agentd=1.1.7
          OK. With the loopback interface was just a test case whether the basic notation works, nothing else. The loopback interface does not show
          up in "Network Connections", anyway.

          I tried the following
          Code:
          perf_counter[\Network Interface(Local Area Connection 2)\Packets Outbound Errors]
          but got as answer ZBX_UNSUPPORTED and in the agent log:

          Code:
           2064:20070509:140708 Requested [perf_counter[\Network Interface(Local Area Connection 2)\Packets Outbound Errors]]
            2064:20070509:140708 Can't get counter value [\Network Interface(Local Area Connection 2)\Packets Outbound Errors] [The specified instance is not present.
          ]
          The same result is shown if "Local Area Connection" is used, instead.

          Norbert.

          Comment

          • SierraX
            Junior Member
            • Dec 2006
            • 21

            #6
            Are you really shure the Name of the Test is ok? It must the same Name like in the Windows Performance tool. Ive try to look on an english Windows but nobody use english Windows here. And i dont understand why do you use [ and not " like our line.

            Comment

            • NOB
              Senior Member
              Zabbix Certified Specialist
              • Mar 2007
              • 469

              #7
              Originally posted by SierraX
              Are you really shure the Name of the Test is ok? It must the same Name like in the Windows Performance tool. Ive try to look on an english Windows but nobody use english Windows here. And i dont understand why do you use [ and not " like our line.
              OK, this request is send via the zabbix_get command,
              Code:
              zabbix-get -i i.xxx.org -k perf_counter[...]
              not configured in the zabbix_agentd.conf file.

              The name of the device in the performance tool is exactly like the one
              I used in the request, the name in the "network connection" dialog
              box is different, again.

              Name in performance tool:
              Code:
              Intel[R] PRO_1000 MT Dual Port Network Connection
              Name in "network connection" dialog box:

              Code:
              Intel(R) PRO/1000 MT Dual Port Network Connection
              Either it's the limit of 64 characters per performance counter or
              it's something else that goes wrong.
              Perhaps the agent has changed between zabbix 1.1.x and zabbix 1.3.x
              in this area.

              Norbert.

              Comment

              • SierraX
                Junior Member
                • Dec 2006
                • 21

                #8
                last idea. Did anybody try to change the 'FriendlyName' in the Registry to fix the problem?
                Last edited by SierraX; 25-05-2007, 14:15.

                Comment

                • Theolude
                  Junior Member
                  • Apr 2011
                  • 13

                  #9
                  I've tried to to this, following documentation instruction, i've wrote (for example) :

                  Code:
                  PerfCounter = smtp_file_attente_envoi,"\12562\12564",10
                  In place of :

                  Code:
                  PerfCounter = smtp_file_attente_envoi,"\MSExchangeIS Boîte aux lettres(_Total)\Taille de la file d'attente pour envoi",10
                  And in the registre key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
                  NT\CurrentVersion\Perflib\009, i've well read :

                  Code:
                  12562
                  MSExchangeIS Mailbox
                  12564
                  Send Queue Size
                  When i try, i've :

                  Code:
                  C:\zabbix>zabbix_agentd.exe -t perf_counter[\12562\12586] -c zabbix_agentd.conf
                  perf_counter[\12562\12586]                    [m|ZBX_NOTSUPPORTED]
                  Is anybody can help us / have an idea ???

                  Théo

                  Comment

                  Working...