PDA

View Full Version : How to create new item for Windows


BigBirdy
09-10-2007, 23:26
Ok maybe I am getting closer to monitoring windows server network stats.

###Windows 2003 Server Tests:

typeperf -qx | find "Network Interface"

Many listed but tested these first

\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec
\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Received/sec

###Tested with agentd.exe:

E:\win32>zabbix_agentd.exe -t perf_counter["\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec"]
perf_counter[\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec] [d|288.078026]

E:\win32>zabbix_agentd.exe -t perf_counter["\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Received/sec"]
perf_counter[\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Received/sec] [d|520.628808]

###Added to c:\zabbix_agentd.cond on Windows 2003 Server:

PerfCounter= NetOut,"\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec",5
PerfCounter= NetIn,"\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Received/sec",5

All I need to know now is the exact syntax I need to create the new item in the template_windows. Using "NetIn" or "NetOut" for the key does not work.

Any suggestions...please

swaterhouse
10-10-2007, 14:43
If you are using 1.4 you can use the perf_counter check so you don't have to add it to the config file on each machine.

type: Zabbix Agent
key: perf_counter["\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec"]

BigBirdy
10-10-2007, 16:56
I did try that item key, but it also does not seem to work and just returns "Not supported by Zabbix agent" in the list of Items. I have also attached some screen shots which show the settings I used for the Item and the summary page of data/monitoring which shows two columns for the same server, the first is the standard Windows Template and the second (right) was added as a SNMP2 Template

Jarno
11-10-2007, 10:13
I did try that item key, but it also does not seem to work and just returns "Not supported by Zabbix agent" in the list of Items. I have also attached some screen shots which show the settings I used for the Item and the summary page of data/monitoring which shows two columns for the same server, the first is the standard Windows Template and the second (right) was added as a SNMP2 Template

In the "Key" field on screenshot 1, remove "Key :" from the value field.

The field should start with "perf_count...."

BigBirdy
11-10-2007, 14:06
Thanks again. Still shows up as "Not Supported" even when I use either as the "key" value.

perf_counter["\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec"]

or

perf_counter[\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec]

Jarno
11-10-2007, 14:13
perf_counter[\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec]

should work. change your "type of information" to "Numeric (float)"

BigBirdy
11-10-2007, 14:16
Still shows as "Not supported". This is what I have (extra) in c:\zabbix_agentd.conf. Maybe this is where I have the problem?

PerfCounter= NetOut,"\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec",5
PerfCounter= NetIn,"\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Received/sec",5

BigBirdy
11-10-2007, 14:24
GOT IT!!!! Changed "Store Value" to "Delta (speed per second)" and now I am getting data. Thanks ever so much for your help. I am now one step closer.

Jarno
11-10-2007, 14:29
1. be sure you use server version 1.4.x
2. download the template i attached and remove the .txt (not allowed to attach .xml)
3. import the template
4. assign the template to the host