NSClient++ Help (#1) - network traffic from HP Network team (#748) - Message List
Hi,
I'm trying to get network traffic data from servers that usually have bonded network interfaces. Currently we have cacti running, but we want to get rid of that and the SNMP protocol. So I'd need a check_nrpe for that. Unfortunately, in Windows Performance Monitor, I only see the network cards, but not the Team of cards, so I can't use the checkWMI command... anyone has an idea maybe?
Lars
-
Message #2088
I'll use a different approach on this. Trying to use CheckWMI for this, and just check both teamed cards (we set them on failover anyway). So I want to get Received and Sent bytes from all HP cards.
What I got so far is:
./check_nrpe -H audiinsa0203 -c CheckWMI -a 'Query=Select Name,BytesReceivedPersec,BytesSentPersec from Win32_PerfFormattedData_Tcpip_NetworkInterface' 'columnSeparator= & ' BytesReceivedPersec=331 & BytesSentPersec=0 & Name=HP NC382i DP Multifunction Gigabit Server Adapter & BytesReceivedPersec=331 & BytesSentPersec=0 & Name=HP NC382i DP Multifunction Gigabit Server Adapter _2 & BytesReceivedPersec=0 & BytesSentPersec=0 & Name=HP NC382i DP Multifunction Gigabit Server Adapter _3 & BytesReceivedPersec=0 & BytesSentPersec=0 & Name=HP NC382i DP Multifunction Gigabit Server Adapter _4 & BytesReceivedPersec=0 & BytesSentPersec=0 & Name=isatap.in.audi.vwg & BytesReceivedPersec=0 & BytesSentPersec=0 & Name=isatap.{DA4AB6AF-8220-4D87-BEF9-46ED482A1932} & BytesReceivedPersec=0 & BytesSentPersec=0 & Name=isatap.{6FF81680-1C32-4AD4-A2C2-DE503DD30886} & BytesReceivedPersec=0 & BytesSentPersec=0 & Name=Reusable ISATAP Interface {FA319084-BFFD-4565-858D-EE755F45AAB1}so here all those Windows Interfaces (isatap) are included. I need to filter for the HP cards:
./check_nrpe -H audiinsa0203 -c CheckWMI -a 'Query=Select Name,BytesReceivedPersec,BytesSentPersec from Win32_PerfFormattedData_Tcpip_NetworkInterface' 'columnSeparator= & ' +filter-string="HP NC382i DP Multifunction Gigabit Server Adapter" BytesReceivedPersec=0 & BytesSentPersec=275 & Name=HP NC382i DP Multifunction Gigabit Server Adapter
this works so far, but I need to set the filter more like a regex, how would I do that? i.e.
$1 =~ /HP/
TauTau02/24/11 16:32:11 (2 years ago)








