Ad Widget

Collapse

Network usage on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wal
    Junior Member
    • Feb 2008
    • 13

    #16
    I find the location! ;-)

    I executed follow command ind cmd (client windows):

    >typeperf -qx | find "Network Interface" > c:\perfcounter


    Thanks

    Comment

    • happyjoe
      Junior Member
      • May 2008
      • 5

      #17
      Thank you, Wal!
      You saved me

      Comment

      • Wal
        Junior Member
        • Feb 2008
        • 13

        #18
        Originally posted by happyjoe
        Thank you, Wal!
        You saved me
        Hi happyjoe!

        Are you obtained success in implementation of solution by perfcounter?
        The graphs are perfects?
        My graphs is bad, follow attach in the message.

        Thanks
        Attached Files

        Comment

        • fast.ryder
          Member
          • Apr 2008
          • 46

          #19
          No need for UserParameter...

          Hello!

          There is actually no need for you to use an additional UserParameter in your agent.conf file; try inserting the same PerfCounter as an item in Zabbix Server console and all will work just the same.

          Later on, you don´t need to repeat that configuration: just add the info to your Windows template and off you are!

          Cheers,

          Ivo

          Comment

          • Wal
            Junior Member
            • Feb 2008
            • 13

            #20
            Hi, fast.ryder!

            Not understand your post!
            Please List one example.


            Follow my confs in zabbix_agentd.conf (in client Windows):

            PerfCounter=NetOut,"\Interface de rede(VIA Compatable Fast Ethernet Adapter)\Bytes enviados/s",300
            PerfCounter=NetIn,"\Interface de rede(VIA Compatable Fast Ethernet Adapter)\Bytes recebidos/s",30


            Thanks

            Comment

            • AudiAddict
              Junior Member
              • Jun 2008
              • 29

              #21
              Can somebody tell me what I'm doing wrong?

              I added :


              Zabbix server

              perf_counter[NetIn] as an item with numeric (float)

              Agent conf

              PerfCounter=NetIn,"\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Received/Sec",60

              Zabbix server log
              12826:20080620:173854 Parameter [perf_counter[NetIn]] is not supported by agent on host [london] Old status [0]

              I think I configured something wrong on the zabbix server? What do i add? And what key do I use?

              Comment

              • Wal
                Junior Member
                • Feb 2008
                • 13

                #22
                Originally posted by AudiAddict
                Can somebody tell me what I'm doing wrong?

                I added :


                Zabbix server

                perf_counter[NetIn] as an item with numeric (float)

                Agent conf

                PerfCounter=NetIn,"\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Received/Sec",60

                Zabbix server log
                12826:20080620:173854 Parameter [perf_counter[NetIn]] is not supported by agent on host [london] Old status [0]

                I think I configured something wrong on the zabbix server? What do i add? And what key do I use?
                Hi AudiAddict!

                Find in your system (In the Windows) the Counter Performance:
                One example for perfcounter of network:

                <PROMPT_CMD>typeperf -qx | find "Network" |more

                Use o counter by command up in config file (in your client Windows):
                C:\zabbix_agentd.conf

                ...
                PerfCounter=LocalIn,"\Network Interface(MS TCP Loopback interface)\Bytes Received/sec",60
                PerfCounter=LocalOut,"\Network Interface(MS TCP Loopback interface)\Bytes Sent/sec",60


                I recommend you enable the snmp in the client Windows and monitoring by snmp. I not have sucess by UserParameter. Use snmp is very good idea.

                Good work and tests!

                Comment

                • jimbobjoe
                  Junior Member
                  • Dec 2007
                  • 6

                  #23
                  Windows NIC Perf Counter returning 0

                  I had that same issue untill I performed that command that was listed previouslly:
                  typeperf -qx | find "Network Interface" > c:\nicperfs.txt

                  Come to find out my perfcounter had an extra space between the name
                  and the last value as in:
                  "Gigabit Server Adapter _3" I had "Gigabit Server Adapter_3" since that is how it looked in the Devices Section.

                  After adding the space my counter no longer returns only 0.

                  Originally posted by reds
                  I have this as well, but it constantly returns "0"... even if I am downloading things. Can anyone tell me what I could be doing wrong?

                  PerfCounter=NetIn,"\Network Interface(lanconnect)\Bytes Received/Sec",60
                  PerfCounter=NetOut,"\Network Interface(lanconnect)\Bytes Sent/Sec",60

                  Comment

                  • AudiAddict
                    Junior Member
                    • Jun 2008
                    • 29

                    #24
                    Thanks! I almost got it working.

                    The graphs work, but the data is incorrect.

                    I've tried using :

                    Multiplier : Custom --> 8, 0,008

                    Store value --> speed per second and as is.

                    I'm still not getting values which are correct.

                    Anybody know what to select? Obviously it's getting bytes/sec from the windows machine and now I need to convert it to kb/sec.

                    Comment

                    • utropicmedia-karl
                      Junior Member
                      • Aug 2007
                      • 9

                      #25
                      Multiply by 1000. (bytes -> Kb)

                      Originally posted by AudiAddict
                      Thanks! I almost got it working.

                      The graphs work, but the data is incorrect.

                      I've tried using :

                      Multiplier : Custom --> 8, 0,008

                      Store value --> speed per second and as is.

                      I'm still not getting values which are correct.

                      Anybody know what to select? Obviously it's getting bytes/sec from the windows machine and now I need to convert it to kb/sec.

                      Comment

                      • jimbobjoe
                        Junior Member
                        • Dec 2007
                        • 6

                        #26
                        Audi try this:

                        Units -> b/s
                        Multiplier -> Custom Multiplier
                        Custom Multiplier -> 8
                        Store Value -> As is

                        That is my setup for the data and works like a champ so far. Hope the same works for you.


                        Originally posted by AudiAddict
                        Thanks! I almost got it working.

                        The graphs work, but the data is incorrect.

                        I've tried using :

                        Multiplier : Custom --> 8, 0,008

                        Store value --> speed per second and as is.

                        I'm still not getting values which are correct.

                        Anybody know what to select? Obviously it's getting bytes/sec from the windows machine and now I need to convert it to kb/sec.

                        Comment

                        • AudiAddict
                          Junior Member
                          • Jun 2008
                          • 29

                          #27
                          Tried that, still not showing 8mb sec on 100mbit or 70-80mb/sec transfers on 1gbit.

                          Tried both network cards (1gbit and 100mbit) Intel & Broadcom.

                          What values should I select exactly when creating a new item? Because I've tried everything..

                          Right now I haev it set like this :

                          Description : Lan 1 recieved bytes
                          Type : zabbix agent
                          Key : perf_counter[\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Received/Sec]
                          Type :Numeric(float)
                          Units: Kbps
                          Multiplyer : Custom multiplier
                          value : 1000 or 8 (tried both)
                          store value : tried as is and delta speed per second

                          When looking at the raw data (when not selecting anything) it gives me 9014105.3640 (which is about 8802 KiloBytes (KB)) which would be arround 8-9mb/sec WHICH is correct for the 100mbit transfer!

                          How do I get it to actually graph/convert this data?
                          Last edited by AudiAddict; 12-08-2008, 17:54.

                          Comment

                          • tchjts1
                            Senior Member
                            • May 2008
                            • 1605

                            #28
                            This is what works for me. I cloned the existing item for the net.if.out (or in) statement and use these values.

                            Type: Zabbix Agent
                            Key: net.if.out[ce0,bytes]
                            Type: Numeric (float)
                            Units: Bps
                            Multiplier: Do not use
                            Store value: Delta (Speed per second)

                            And the graph looks like the one on the bottom left below.

                            Another example is one that we do for one of our Sql servers -

                            Type: Zabbix Agent
                            Key: perf_counter[\Network Interface(Intel[R] PRO_1000 GT Quad Port Server Adapter _5)\Bytes Sent/sec]
                            Type: Numeric (float)
                            Units: b
                            Use Multiplier: Custom Multiplier
                            Custom Multiplier: 1024
                            Store value: As is

                            And this graph looks like the one on the bottom right below -
                            Attached Files

                            Comment

                            • AudiAddict
                              Junior Member
                              • Jun 2008
                              • 29

                              #29
                              I got it working! Thanks!

                              They should create a sub forum just for monitoring windows machines

                              Now the next challenge, several clients are using our servers and we would like to measure there datausage (wan interface).

                              Anybody have an idea how I could get zabbix to count all the data daily being sent and recieved and put it into a table or whatever? Shouldn't be that complicated since it's recording the current kb/sec out and in. If I could make some kind of table to display the montly usage for each interface.. that would be awesome.

                              Also, does anybody know how to properly monitor cpu usage on windows machines? The cpu monitoring from the windows template doesn't work properly.

                              Most of our servers are quad core intel cpu's which have allot of threads.. I would be happy with a cpu usage total function.

                              Anybody else monitoring windows cpu usage? If so how do you do this?

                              I will be adding new templates soon :

                              - Poweredge 2950
                              - Poweredge 2650
                              - Poweredge 2850
                              - Vmware server 1.06 template

                              Each with it's own network and cpu monitoring
                              Last edited by AudiAddict; 13-08-2008, 10:10.

                              Comment

                              • AudiAddict
                                Junior Member
                                • Jun 2008
                                • 29

                                #30
                                A new update on windows network monitoring.

                                You do not need to add the network interface settings in the agent config file.

                                If you add it as a item in zabbix and use the correct key format it will receive data even if it's not set in the agent properties...

                                so :

                                1) Open cmd prompt --> type typeperf -qx |find "Network"

                                Locate your network adapter and make sure to select Bytes Recieved/sec and Bytes Sent/sec (see example below)

                                Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Received/sec

                                2) Go to zabbix, config, create host item, give it a name, enter this as a key :

                                perf_counter[\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Received/sec]

                                Please note that you need to copy and paste your network interface name in here, I used the one from my example

                                3) Do the same for Bytes/Sent and you're done!

                                Comment

                                Working...