Ad Widget

Collapse

"net.if.out" Request with Windows Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davinci
    Junior Member
    • Mar 2010
    • 8

    #1

    "net.if.out" Request with Windows Problem

    Hello there,

    I've got a problem to request the net.if in/out data form Windows Clients.

    I tried a lot of things like renaming the interface to eth0 in the interface properties and request it with
    net.if.out[eth0,bytes]
    But I always get the following message:
    Item [win-2003-server:net.if.out[eth0,bytes]] error: Not supported by Zabbix Agent
    After I used the "route print" command at my windows Server I thought that I got the name. But there are still the same Problems.
    ================================================== ===============
    Interfacelist
    0x1 ........................... MS TCP Loopback interface
    0x10003 ...08 00 27 75 df 70 ...... Ethernet-Adapter der AMD-PCNET-Familie
    ================================================== ===============
    ================================================== ===============

    I am using the latest version of server and client application.

    Can anyone help me to find out what I did wrong ?
  • Murilex
    Senior Member
    • Nov 2009
    • 124

    #2
    Hi davinci. EthX in net.if.out key works for Linux hosts (only?). On Windows, try on using {IPADDRESS} macro or explicitly write on the IP address of host:

    Code:
    net.if.out[{IPADDRESS},bytes]
    or
    Code:
    net.if.out[192.168.X.X,bytes]

    Comment

    • davinci
      Junior Member
      • Mar 2010
      • 8

      #3
      Hello Murilex,

      I tried both but it didnt works .
      What else could I use for the interface?

      Please help me, I need that fast.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        On the machine you want to monitor, go to the DOS prompt and type: typeperf -qx > perfcounter.txt

        This will produce a list for you of many things you can monitor, including the interface names. Open the list in an editor, it would be best to use one that will find all occurrences of a keyword. Search for "interface", This will provide the name that you need to use where you previously tried to use eth0.

        eth0 is not a Windows interface. Windows interfaces are more aligned with the proper name of the NIC card in the machine and is going to look similar to this in the file you produced in the step above:

        \Network Interface(3Com Gigabit LOM [3C940] - Packet Scheduler Miniport)\Bytes Total/sec

        And probably if you used the search function on this forum and also searched for "interface", you will find other information that will help you along.

        This post will be of help to you:



        .
        Last edited by tchjts1; 31-03-2010, 07:54.

        Comment

        • davinci
          Junior Member
          • Mar 2010
          • 8

          #5
          Hello,

          thank you for your informative post!

          I done all the things that you describe but I get always the same error message:
          2772:20100331:130048.115 Item [win-2003-server:net.if.out[Ethernet-Adapter der AMD-PCNET-Family,bytes]] error: Not supported by Zabbix Agent
          A german abstract of the perfcounter.txt:
          \Netzwerkschnittstelle(Ethernet-Adapter der AMD-PCNET-Familie)\Bytes gesendet/s
          \Netzwerkschnittstelle(Ethernet-Adapter der AMD-PCNET-Familie)\Empfangene Bytes/s
          Abstract of the zabbix_agentd.conf:
          # This is a config file for Zabbix Agent (Windows)
          # To get more information about Zabbix, go to http://www.zabbix.com

          ############ GENERAL PARAMETERS #################

          ### Option: DebugLevel
          # Specifies debug level
          # 0 - no debug
          # 1 - critical information
          # 2 - error information
          # 3 - warnings
          # 4 - for debugging (produces lots of information)
          #
          # Mandatory: no
          # Range: 0-4
          # Default:
          # DebugLevel=3

          ### Option: LogFile
          # Name of log file.
          #
          # Mandatory: no
          # Default:
          # LogFile=

          LogFile=c:/zabbix_agentd.log

          ### Option: LogFileSize
          # Maximum size of log file in MB.
          # 0 - disable automatic log rotation.
          #
          # Mandatory: no
          # Range: 0-1024
          # Default:
          # LogFileSize=1

          ### Option: SourceIP
          # Source IP address for outgoing connections.
          #
          # Mandatory: no
          # Default:
          # SourceIP=
          SourceIP=192.168.112.3

          ### Option: EnableRemoteCommands
          # Whether remote commands from Zabbix server are allowed.
          # 0 - not allowed
          # 1 - allowed
          #
          # Mandatory: no
          # Default:
          # EnableRemoteCommands=0

          ##### Passive checks related

          ### Option: Server
          # List of comma delimited IP addresses (or hostnames) of Zabbix servers.
          # No spaces allowed. First entry is used for receiving list of and sending active checks.
          # Note that hostnames must resolve hostname->IP address and IP address->hostname.
          #
          # Mandatory: yes
          # Default:
          # Server=

          Server=192.168.112.1

          ### Option: Hostname
          # Unique hostname.
          # Required for active checks and must match hostname as configured on the server.
          #
          # Default:
          # Hostname=system.uname

          Hostname=win-2003-server

          ### Option: ListenPort
          # Agent will listen on this port for connections from the server.
          #
          # Mandatory: no
          # Range: 1024-32767
          # Default:
          # ListenPort=10050

          ### Option: ListenIP
          # Agent will listen on the specified interface.
          #
          # Mandatory: no
          # Default:
          # ListenIP=0.0.0.0

          ListenIP=192.168.112.3

          ### Option: DisablePassive
          # Disable passive checks. The agent will not listen on any TCP port.
          # Only active checks will be processed.
          # 0 - do not disable
          # 1 - disable
          #
          # Mandatory: no
          # Default:
          # DisablePassive=0

          ##### Active checks related

          ### Option: DisableActive
          # Disable active checks. The agent will work in passive mode listening for server.
          #
          # Mandatory: no
          # Default:
          # DisableActive=0

          ### Option: ServerPort
          # Server port for retrieving list of and sending active checks.
          #
          # Mandatory: no
          # Default:
          # ServerPort=10051

          ### Option: RefreshActiveChecks
          # How often list of active checks is refreshed, in seconds.
          #
          # Mandatory: no
          # Range: 60-3600
          # Default:
          # RefreshActiveChecks=120

          ### Option: BufferSend
          # Do not keep data longer than N seconds in buffer.
          #
          # Mandatory: no
          # Range: 1-3600
          # Default:
          # BufferSend=5

          ### Option: BufferSize
          # Maximum number of values in a memory buffer. The agent will send
          # all collected data to Zabbix Server or Proxy if the buffer is full.
          #
          # Mandatory: no
          # Range: 1-65535
          # Default:
          # BufferSize=100

          ### Option: MaxLinesPerSecond
          # Maximum number of new lines the agent will send per second to Zabbix Server
          # or Proxy processing 'log' and 'eventlog' active checks.
          # The provided value will be overridden by the parameter 'maxlines',
          # provided in 'log' or 'eventlog' item key.
          #
          # Mandatory: no
          # Range: 1-1000
          # Default:
          # MaxLinesPerSecond=100

          ############ ADVANCED PARAMETERS #################

          ### Option: StartAgents
          # Number of pre-forked instances of zabbix_agentd that process passive checks.
          #
          # Mandatory: no
          # Range: 1-16
          # Default:
          # StartAgents=3

          ### Option: Timeout
          # Spend no more than Timeout seconds on processing
          #
          # Mandatory: no
          # Range: 1-30
          # Default:
          # Timeout=3

          Timeout=2

          ### Option: Include
          # You may include individual files or all files in a directory in the configuration file.
          #
          # Mandatory: no
          # Default:
          # Include=

          # Include=c:\zabbix\zabbix_agent.userparams.conf
          # Include=c:\zabbix\zabbix_agentd\

          ####### USER-DEFINED MONITORED PARAMETERS #######

          ### Option: UserParameter
          # User-defined parameter to monitor. There can be several user-defined parameters.
          # Format: UserParameter=<key>,<shell command>
          # Note that shell command must not return empty string or EOL only.
          # Example: UserParameter=system.test,echo 1
          #UserParameter=system.test,echo 1
          I hope that this information are enough to find the mistake.
          Attached Files
          Last edited by davinci; 31-03-2010, 13:02.

          Comment

          • davinci
            Junior Member
            • Mar 2010
            • 8

            #6
            no idea ??

            Comment

            • mechanum
              Junior Member
              • Mar 2010
              • 6

              #7
              A possible workaround...

              Hi.
              I actually had a similar problem, we used Swedish Win 2003 Server and the performance counters is also in Swedish. My solution was to copy the english regsitry values and simply owerwrite the translated Swedish values.

              I our case the English values is found under
              HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009
              And i replaced the Swedish values:
              HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\01D

              Dont forget to backup up the registry keys first...
              Now the Zabbix agent works...


              //Anders

              Comment

              • rexzhen
                Junior Member
                • Jan 2009
                • 11

                #8
                net.if.in/out in windows

                I have the save problem.

                whatever i tried the key. it always complain that it is not supported.

                net.if.in[Network Interface(Broadcom BCM5708S NetXtreme II GigE [NDIS VBD Client]),bytes]

                the interface name is from "typeperf -qx"

                Comment

                Working...