Ad Widget

Collapse

zabbix monitor network traffic with perf counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NomenNescio
    Member
    • Jan 2009
    • 70

    #1

    zabbix monitor network traffic with perf counter

    Hi, I'm trying to monitor the network traffic, but I'm encountering a few problems...

    this works:
    perf_counter[\Network Interface(VMware Accelerated AMD PCNet Adapter)\Bytes Sent/sec]

    But the template this item belogs to is used by computers with different network cards and on some it works and on some it doesn't.

    I've read the manual and saw that I had to use numbers, so I looked in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009

    I've tried many combinations of numbers in perf_counter[num here] but it none of them work, it isn't really clear which ones I should use... looking at the words alone is a bad indicator...

    510
    Network Interface
    506
    Bytes Sent/sec

    perf_counter[\510\506]

    this should work right? but it doesnt...

    edit:
    if it is known where the piece of text gets converted to a number this could be easily figured out >_> *continues search*
    Last edited by NomenNescio; 15-04-2009, 12:42.
  • jroberson
    Senior Member
    • May 2008
    • 124

    #2
    The easiest way to monitor these on different systems is to use an "alias" in the zabbix_agentd.conf file. See this thread: http://www.zabbix.com/forum/showthread.php?t=12178

    Comment

    • NomenNescio
      Member
      • Jan 2009
      • 70

      #3
      Yes I realize that but I think this is the easier way if you know how to do it, if I knew what number I have to use then I won't have to edit every config file. And there should be a number for it so it could be done...

      Comment

      • jroberson
        Senior Member
        • May 2008
        • 124

        #4
        I've seen uses of the numbers before in this forum, but I don't think I've ever seen them used for Network Interfaces. I think the problem might be that Network Interfaces can be different for each machine and can have multipe interfaces. Lots of the other counter numbers are the same for every system. Maybe MS put some kind of incremental number to account for multiple and differing network cards, but I'm not aware of any. I hope someone else does, as this would save me a bit of trouble as well.

        Comment

        • Cray
          Member
          • Mar 2009
          • 72

          #5
          Hey

          I would really like to see how to get the numerical performance counters working too ! (I have tried just like NomenNescio, but never succeeded )

          When I add a numerical performance counter...

          perf_counter[\3932\3942]
          type Zabbix Agent
          ...i always get a "non supported" status.

          The Zabbix manual is lacking details about the use of the windows performance counter (I discovered the use of aliases when jroberson told me )
          Last edited by Cray; 20-04-2009, 14:04.

          Comment

          • NomenNescio
            Member
            • Jan 2009
            • 70

            #6
            The easiest solution is see for this is that I write a program that cross references values gotten with perf_counter[text here] perf_counter[numbers here]. If the two are called at the same time and they return roughly the same values they could belong together, but this isn't a foolproof way of testing this.

            I haven't written C++ in quite a while but I'll see what I can do... (don't know anything about windows scripting >_>)
            Last edited by NomenNescio; 21-04-2009, 11:33.

            Comment

            • gug42
              Junior Member
              • Apr 2009
              • 18

              #7
              I've got the same probleme ... and i have not find the good solution ...

              And I have about 100 Windows servers to monitor ... so if perfcounter in numeric id works, it will be easier ... because connect to 100 servers and modify the zabbix_agentd.conf is not the most rapid way

              Comment

              Working...