View Full Version : Network usage on Windows
munsternet
29-10-2004, 22:05
Hi all,
First of all zabbix is a very good tool ! :D
But, i have a little problem, i run the zabbix_agentd on my Windows servers. It monitors processes, cpu load, memory usage and so on. But when i tried to specify through perf_mon my network input and output usage, it doesn't work.
Is there a built-in way to do it ? (like on linux agentd ?) or via perfmon (i can't install snmp4nt).
Thanks in advance
morgolis
29-10-2004, 23:32
Go here: http://www.zabbix.com/manual_config_items.php and at the bottom there is a list of what things the Windows W32 Client can watch.
Hi,
I used USER-DEFINED MONITORED PARAMETERS to monitor network usage.
You will most likely need to specify a different driver name.
Here is the performance counters I used.
PerfCounter = NetIn,"\Network Interface(Broadcom Advanced Server Program Driver for Windows 2000)\Bytes Received/sec",60
PerfCounter = NetOut,"\Network Interface(Broadcom Advanced Server Program Driver for Windows 2000)\Bytes Sent/sec",60
You would added these lines to your zabbix_agentd.conf file on the windows server you wanted to monitor. Make sure to restart you zabbix client after modifiying your config file.
siebrand
24-11-2004, 18:34
Some more examples:
zabbix_agentd.conf:
PerfCounter= NetIn5,"\Network Interface(HP NC7770 Gigabit Server Adapter)\Bytes Received/sec",5
PerfCounter= NetOut5,"\Network Interface(HP NC7770 Gigabit Server Adapter)\Bytes Sent/sec",5
PerfCounter= LocalIn5,"\Network Interface(MS TCP Loopback interface)\Bytes Received/sec",5
PerfCounter= LocalOut5,"\Network Interface(MS TCP Loopback interface)\Bytes Sent/sec",5
PerfCounter= DiskRead5, "\LogicalDisk(_Total)\Disk Read Bytes/sec",5
PerfCounter= DiskWrite5, "\LogicalDisk(_Total)\Disk Write Bytes/sec",5
PerfCounter= Interrupts5, "\Processor(_Total)\Interrupts/sec",5
________
Herbalaire vaporizer (http://www.vaporshop.com/herbalaire-vaporizer.html)
siebrand
01-12-2004, 14:48
Solved. The above settings do work. There is a problem with the NIC performance counters.
________
WEB SHOWS (http://livesexwebshows.com/)
Rick LEE
30-12-2004, 10:16
I add the value you mention above but I can not get any data from agent. please write down some more detail and example.
So if I write in zabbix_agentd.conf on a windows machine
PerfCounter=NetIn,"\Network Interface(Broadcom NetXtreme Gigabit Ethernet)\Bytes Received/sec",60
I can access the value by the key perf_counter[NetIn] and perf_counter[NetOut]? This seems not to be supported...
My network card on the computer is Broadcom NetXtreme Gigabit Ethernet and I restarted the zabbix service.
I have the same problem
so i try to put perfcounter[NetIn] insted of Perf_Counter but nothing ...
I need help.... :( :(
ok I put these lines in my agentd.conf under my windows xp SP2
#Compteur d'interface réseaux.
PerfCounter= NetIn1,"\Interface réseau(Broadcom NetXtreme Gigabit Ethernet - Miniport d'ordonnacement de paquets)\Octets reçus/s",60
ok its in french i take the model on this one :
PerfCounter= NetIn, "\Network Interface(Broadcom NetXtreme Gigabit Ethernet)\Bytes Received/sec",60
in the item i put the key perf_counter[NetIN1]
but the item status is not supported where is the problem
So if I write in zabbix_agentd.conf on a windows machine
PerfCounter=NetIn,"\Network Interface(Broadcom NetXtreme Gigabit Ethernet)\Bytes Received/sec",60
I can access the value by the key perf_counter[NetIn] and perf_counter[NetOut]? This seems not to be supported...
You are defining the Counter properly in agentd.conf, but, I believe, you are configuring, and therefore calling it incorrectly from zabbix_server.
The item to be monitored, in your case, is NetIn and NetOut, NOT perf_counter[NetIn].
HTH
cooper
Thanks cooper. I am now able to monitor Windows network traffic, too.
Its woks too but
what is the number a the end of the line is in second or in minutes ????
it in secondes i supose but i am not sure.
i want sush as on linux graph the avergae activity of the network interface on 1 min 5 min an 15 min, so i put 3 lines and at the and of line i put 60, 300 and 900 , secondes but the graph don't seems to show average values help....
jpsivori
06-09-2005, 14:36
I have zabbixw32 agent from 30/08/2005. I can't get it to report on netloadin1 and any of the NIC parameters in XP or Server 2003. Here's what I did:
I appended to the end of zabbix_agentd.conf:
PerfCounter= NetIn,"\Network Interface(Intel(R) 82540EM Based Network Connection)\Bytes Received/sec",60
I got the NIC interface name from Devices - not sure what should go in after \Network Interface...
On the server I configured a new item NIC-IN as follows:
key=netloadin1 (Also tried netloadin1 & netloadin[eth0]) - under status it just says "Not Supported".
I'm going to keep looking because Zabbix is so good - but if anyone can suggest something to help me, I'd appreciate it!
Cheers
leefelix
02-11-2007, 06:13
I also encountered the same problem.
Solved by adding the lines:
PerfCounter=NetIn,"\Network Interface(Intel[R] PRO_1000 MT Dual Port Network Connection _2)\Bytes Received/Sec",60
PerfCounter=NetOut,"\Network Interface(Intel[R] PRO_1000 MT Dual Port Network Connection _2)\Bytes Sent/Sec",60
for my Intel server.
I also need to change the data type of the key to "Numeric (float)".
Now it works.
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
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
HI Reds
I have the same problem, did you find a solution to this.
Thanks
Best regards
Claus.
Hi my friends!
Where I find the information "Intel[R] PRO_1000 MT Dual Port Network Connection _2" in my system (I am need manager an Workstation Windows XP)??
My network is one VIA Compatable Fast Ethernet Adapter (I find by prompt cmd: ipconfig /all). As to find this information?
Thanks for anywhere helps!
p.s.: My english is bad!
I find the location! ;-)
I executed follow command ind cmd (client windows):
>typeperf -qx | find "Network Interface" > c:\perfcounter
Thanks
happyjoe
22-05-2008, 12:34
Thank you, Wal!
You saved me :)
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
fast.ryder
16-06-2008, 23:52
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
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
AudiAddict
20-06-2008, 18:44
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?
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!
jimbobjoe
12-08-2008, 18:08
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.
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
AudiAddict
12-08-2008, 18:27
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.
utropicmedia-karl
12-08-2008, 18:29
Multiply by 1000. (bytes -> Kb)
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.
jimbobjoe
12-08-2008, 18:31
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.
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.
AudiAddict
12-08-2008, 18:36
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?
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 -
AudiAddict
13-08-2008, 10:35
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
AudiAddict
13-08-2008, 18:14
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!
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.
Why not build a screen to graph the usage? That is what we do. You can then go back over any period (up to a year) and look at the numbers. We're currently running 1.5.3 which has a nice resizing capability in the graphs. You just click and drag over the time period you want to view and it redraws the graph for that period.
Anyway. Go to Configuration --> Screens and create a screen. name it something useful. The graphs would probably all pertain to that particular server. Click on one of the "change" links and insert the info you want to use. I set mine to be 3 columns wide and however many rows I need. Then I set the graphs to be 350 x 100. For starters, go with "Simple Graph" and select the parameter that you want to be graphed. make sure you are selecting from the correct host.
If you want to use "Graph", you have to go to Configuration --> Graphs and create one for those parameters/hosts and then you can put them in your screens. A Simple graph only contains one item.
Graphs can contain many similar grouped items. Attached is one that we do for a Sql server to show packet errors.
AudiAddict
14-08-2008, 09:44
Yeah I figured out how to make a graph and have one for each client server which we need to record the data for.
But what I need is a quick and easy display for the datausage in GB for each month. How would I do that?
utropicmedia-karl
17-08-2008, 00:43
5-star thread everyone.
ratafari
26-01-2010, 21:24
Hello All,
I have read all the post of Network Monitoring with Zabbix Agent and none of them work. Can someone tell me what I'm doing wrong? I think there is a problem with the config of the parameters that have been defined.
Thank you in advanced.
Hello All,
I have read all the post of Network Monitoring with Zabbix Agent and none of them work. Can someone tell me what I'm doing wrong? I think there is a problem with the config of the parameters that have been defined.
Thank you in advanced.
You would need to show us how you have things configured and any error messages in order for us to help you.
ratafari
27-01-2010, 14:21
You would need to show us how you have things configured and any error messages in order for us to help you.
In my config file called: zabbix_agentd.conf I added the following lines:
PerfCounter= NetIn,"\Network Interface(Atheros AR5007EG Wireless Network Adapter)\Bytes Received/sec",30
PerfCounter= NetOut,"\Network Interface(Atheros AR5007EG Wireless Network Adapter)\Bytes Sent/sec",30
Then I when to services and restart the Zabbix agent service.
After that I when to the Zabbix Server webpage: Configuration->Items and add a new Item called: NetOut with the Key as described in this forum. Trying to see if with any of the options you guys mention here works, but none of them came with a good result because the service is unavailable and is not active to be monitored.
Please let me know what you think I'm doing wrong in the config of the item or in the config of the sabbix agent config.
damn....
try to use:
perf_counter[\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Received/sec]
but can't add this item:
Error in item key: incorrect usage of bracket symbols. ')' found after final bracket.
I think i need to escape [NDIS VBD Client] section, but i can't find right escape sequence....
please help.
1.8.4 (Linux Gentoo R5)
(so strange: 1.8.3 at freeBSD works fine without escaping).
please, can anybody help me?
resolved: add quotes to key
perf_counter["\Network Interface(Broadcom BCM5708C NetXtreme II GigE [NDIS VBD Client])\Bytes Received/sec"]