Ad Widget

Collapse

How to create new item for Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigBirdy
    Junior Member
    • May 2006
    • 25

    #1

    How to create new item for Windows

    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
    Senior Member
    • Apr 2006
    • 268

    #2
    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"]

    Comment

    • BigBirdy
      Junior Member
      • May 2006
      • 25

      #3
      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
      Attached Files

      Comment

      • Jarno
        Junior Member
        • Oct 2007
        • 10

        #4
        Originally posted by BigBirdy
        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...."

        Comment

        • BigBirdy
          Junior Member
          • May 2006
          • 25

          #5
          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]

          Comment

          • Jarno
            Junior Member
            • Oct 2007
            • 10

            #6
            Code:
            perf_counter[\Network Interface(Intel[R] PRO_1000 MT Desktop Adapter)\Bytes Sent/sec]
            should work. change your "type of information" to "Numeric (float)"
            Last edited by Jarno; 11-10-2007, 14:15.

            Comment

            • BigBirdy
              Junior Member
              • May 2006
              • 25

              #7
              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

              Comment

              • BigBirdy
                Junior Member
                • May 2006
                • 25

                #8
                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.

                Comment

                • Jarno
                  Junior Member
                  • Oct 2007
                  • 10

                  #9
                  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
                  Attached Files

                  Comment

                  Working...