Ad Widget

Collapse

PerfCounter on NIC with multiple interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SparHawk
    Junior Member
    • Oct 2004
    • 19

    #1

    PerfCounter on NIC with multiple interfaces

    Need help with the following PerfCounter,

    I have a single network card with 2x RJ45 ports, the performance counters looks like this.

    PerfCounter= NetIn1,"\Network Interface(Intel Pro Server Adapter)\Bytes Received/sec",60
    PerfCounter= NetOut1,"\Network Interface(Intel Pro Server Adapter)\Bytes Sent/sec",60

    PerfCounter= NetIn2,"\Network Interface(Intel Pro Server Adapter#1)\Bytes Received/sec",60
    PerfCounter= NetOut2,"\Network Interface(Intel Pro Server Adapter#1)\Bytes Sent/sec",60


    The problem seems to be where the "#" sign is located, is there a way around this.

    Need help on this urgently PLEASE!

    Thanks

    SparHawk
    Last edited by SparHawk; 28-03-2005, 21:59. Reason: URGENT!
  • dm0nkz
    Junior Member
    • Jan 2005
    • 9

    #2
    Would like to know if anyone has found the solution for this?

    Im encountering the same problem..

    Thanks and God bless!

    dm0nkz

    Comment

    • SparHawk
      Junior Member
      • Oct 2004
      • 19

      #3
      Can anyone please help on this

      Alexei,

      Do you have any suggestions, regarding the "Quote".

      The performance counter in windows named the 2nd Network Card as Intel Pro Server Adapter#1, it looks like the client has an issue with the #, is there an alternative way around "Windows Naming" convention for this? (eg MAC address...)

      Originally posted by SparHawk
      Need help with the following PerfCounter,

      I have a dual network card with 2x Network interfaces, the performance counters looks like this for windows.

      PerfCounter= NetIn1,"\Network Interface(Intel Pro Server Adapter)\Bytes Received/sec",60
      PerfCounter= NetOut1,"\Network Interface(Intel Pro Server Adapter)\Bytes Sent/sec",60

      PerfCounter= NetIn2,"\Network Interface(Intel Pro Server Adapter#1)\Bytes Received/sec",60
      PerfCounter= NetOut2,"\Network Interface(Intel Pro Server Adapter#1)\Bytes Sent/sec",60
      I would like to monitor both interfaces, would it be possible?

      SparHawk

      Comment

      • Rudolf
        Member
        • Dec 2004
        • 90

        #4
        Found solution?

        Hi,

        I wanted to ask if you found the solution and if it works now. I try to monitor a network card with the name "3Com EtherLink 10/100 PCI TX NIC (3C905B-TX)" and I think the "/" is also causing problems.

        Comment

        • holly
          Junior Member
          • Jul 2005
          • 2

          #5
          Show this post

          Comment

          • SparHawk
            Junior Member
            • Oct 2004
            • 19

            #6
            Holly,


            thanks for the post but it still does NOT work.

            Hardware:
            Intel 8255x-based PCI Ethernet Adapter (10/100)
            Intel 8255x-based PCI Ethernet Adapter (10/100) #2

            Windows Performance Counter:
            \Network Interface(Intel[R] PRO Adapter#1)\Bytes Total/sec
            \Network Interface(Intel[R] PRO Adapter)\Bytes Total/sec

            zabbix_agentd Configuration:
            PerfCounter = NetTotal,"\Network Interface(Intel[R] PRO Adapter)\Bytes Total/sec",60
            PerfCounter = NetTotal2,"\Network Interface(Intel[R] PRO Adapter _1)\Bytes Total/sec",60

            Tried:
            PerfCounter = NetTotal2,"\Network Interface(Intel[R] PRO Adapter#1)\Bytes Total/sec",60
            PerfCounter = NetTotal2,"\Network Interface(Intel[R] PRO Adapter 1)\Bytes Total/sec",60
            PerfCounter = NetTotal2,"\Network Interface(Intel[R] PRO Adapter _2)\Bytes Total/sec",60
            PerfCounter = NetTotal2,"\Network Interface(Intel[R] PRO Adapter 2)\Bytes Total/sec",60

            Error if you run zabbixw32 check-config with the following configuration:
            PerfCounter = NetTotal2,"\Network Interface(Intel[R] PRO Adapter#1)\Bytes Total/sec",60

            Comment

            • erald
              Junior Member
              • Aug 2005
              • 1

              #7
              I have exactly the same problem
              Using one port of two installed in my system and using:

              PerfCounter= NetIn5,"\Network Interface(Intel[R]PRO_1000 MT Network Adapter _2)\Bytes Received/sec",5
              or
              PerfCounter= NetIn5,"\Network Interface(Intel[R]PRO/1000 MT Network Adapter)\Bytes Received/sec",5
              or
              PerfCounter= NetIn5,"\Network Interface(Intel[R]PRO_1000 MT Network Adapter)\Bytes Received/sec",5
              or
              PerfCounter= NetIn5,"\Network Interface(Intel(R)PRO_1000 MT Network Adapter _2)\Bytes Received/sec",5


              etc. tried most settings and almost all of them return 0 (some are not supported) so playing with the (R), [R] PRO/, PRO_, #2, _2, nothing etc.

              The performance logger in windows uses
              Network Interface(Intel(R)PRO/1000 MT Network Adapter)\Bytes Received/sec

              and gives me results.

              Anyone????

              Erald

              Comment

              • mpeide
                Junior Member
                • Jul 2005
                • 21

                #8
                PerfCounter on NIC with multiple interfaces

                This might be useful for determing adapter names. This a code snippet that I have for querying WMI for the name of adapters on a WinXP or WS2003.

                I'm actually using this snippet as a function in vbs script I use to create the zabbix_agentd.conf on the fly for my windows clients. It's still in development but I'm querying a MSSQL table based on host template and automatically creating file with correct user parameters and downloads additional vbs s cripts from web server(I'll post later after I finish a couple additional features).

                strComputer = "."
                Set objWMIService = GetObject("winmgmts:" _
                & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
                set objRefresher = CreateObject("WbemScripting.SWbemRefresher")
                Set colItems = objRefresher.AddEnum _
                (objWMIService, "Win32_PerfFormattedData_TCPIP_NetworkInterface"). objectSet
                objRefresher.Refresh

                For Each objItem in colItems
                If objItem.Name <> "MS TCP Loopback interface" then
                wscript.echo (objItem.Name)
                end if

                Next


                Later,

                Matt

                Comment

                • befortin
                  Member
                  • Jul 2005
                  • 48

                  #9
                  Any solution to this issue?

                  I got the same issue as some guys on this thread. I'm able to monitor a bunch of network interfaces, but when it comes to an interface which is named, in the Performance Monitor, "Network Interface(Broadcom NetXtreme Gigabit Ethernet Driver#1", I'm not able to monitor it. I'm able to monitor another interface on the same server ("Network Interface(Broadcom NetXtreme Gigabit Ethernet Driver"), so I guess that the "#" character is the cause of this issue.

                  Is there any solution for this issue?

                  Comment

                  • pdwalker
                    Senior Member
                    • Dec 2005
                    • 166

                    #10
                    zabbix configuration file handling bug confirmed.

                    PerfCounter=Net1In ,"\Network Interface(Intel[R] PRO_1000 XT Network Connection)\Bytes Received/sec",60
                    PerfCounter=Net2In ,"\Network Interface(Intel[R] PRO_1000 XT Network Connection#1)\Bytes Received/sec",60

                    The first works, the second counts is considered a configuration error.

                    My guess is that the parsing code for the configuration file handling considers the '#' to be the start of a comment and then stops processing the rest of the line resulting in an error.

                    The proper behaviour should be to recognize that it is contained within quoted text and that it should continue processing the line.

                    - Paul

                    Comment

                    • pdwalker
                      Senior Member
                      • Dec 2005
                      • 166

                      #11
                      possible fix: use at own risk

                      [edit: it might not be working.. will reboot the computer and report back]

                      [edit2: nope, spoke too soon. not working. will continue to investigate. for now, it doesn't work]

                      PerfCounter=Net1In ,"\Network Interface(Intel[R] PRO_1000 XT Network Connection)\Bytes Received/sec",60
                      PerfCounter=Net2In ,"\Network Interface(Intel[R] PRO_1000 XT Network Connection#1)\Bytes Received/sec",60


                      Warning: This fix could possibly destory your windows machine.

                      I searched the registry and found a key that contained the string "Intel[R] PRO_1000 XT Network Connection"

                      I can see that two adapters were defined with the same string. Windows then appends the #1 onto the one of the strings to differentiate the two. What I did was to edit of them in the registry to be slightly different from the first.

                      The end result is that I can now access both network ports for monitoring.

                      PerfCounter=Net1In ,"\Network Interface(Intel[R] PRO_1000 XT Network Connection)\Bytes Received/sec",60
                      PerfCounter=Net1Out,"\Network Interface(Intel[R] PRO_1000 XT Network Connection)\Bytes Sent/sec",60
                      PerfCounter=Net2In ,"\Network Interface(Intel[R] PRO_1000 XT Network Connection2)\Bytes Received/sec",60
                      PerfCounter=Net2Out,"\Network Interface(Intel[R] PRO_1000 XT Network Connection2)\Bytes Sent/sec",60


                      A couple of more points:

                      a) If you do fiddle with your registry, make sure you export the key before you change it in case you need to back out of your changes.

                      b) The change in my case didnt require a reboot after altering it.

                      c) On three different computers, I found the key in three slightly different places. Good luck finding yours.

                      - Paul
                      Last edited by pdwalker; 10-07-2006, 08:19.

                      Comment

                      • dminstrel
                        Member
                        • Apr 2005
                        • 72

                        #12
                        Was this the FriendlyName string in the registry?

                        Did anybody find another solution?

                        Thanks,

                        Comment

                        • Rudolf
                          Member
                          • Dec 2004
                          • 90

                          #13
                          Hello,
                          Anyone has more news about that problem? I don't really want to modify the registry on our domain controller. (Actually I get an error "Cannot edit FriendlyName: Error writing the value(s) new contents.").
                          My network card is "HP NC373i Multifunction Gigabit Server Adapter #2".

                          Comment

                          • claytronic
                            Member
                            • Nov 2006
                            • 52

                            #14
                            Hello,

                            I've been searching around the forum for any posted resolutions for the special characters in the network device name. In my case I'm tracking to monitor the Broadcom NICs in our Dell servers.

                            Broadcom BCM5708C NetXtreme II GigE (NDIS VBD Client) #1
                            Broadcom BCM5708C NetXtreme II GigE (NDIS VBD Client) #2

                            Based on the strings I see in perfmon I've tried the following configuration without success.

                            Code:
                            #Network
                            PerfCounter= NetIn_1, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _1)\Bytes Received/sec",60
                            PerfCounter= NetOut_1, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _1)\Bytes Sent/sec",60
                            PerfCounter= NetIn_2, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _2)\Bytes Received/sec",60
                            PerfCounter= NetOut_2, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _2)\Bytes Sent/sec",60
                            Thanks,
                            Clayton

                            Comment

                            • claytronic
                              Member
                              • Nov 2006
                              • 52

                              #15
                              All,

                              I solved this just a few minutes ago. I used the previously posted VBscript to identify a missing whitespace.

                              The zabbix_agentd.conf configuration below is working on our Dell 2950 machines.

                              Code:
                              #Network
                              PerfCounter= NetIn_1, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Received/sec",60
                              PerfCounter= NetOut_1, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Sent/sec",60
                              PerfCounter= NetIn_2, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _2)\Bytes Received/sec",60
                              PerfCounter= NetOut_2, "\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client] _2)\Bytes Sent/sec",60
                              - Clayton

                              Comment

                              Working...