Ad Widget

Collapse

zabbix agent (windows)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yuhuu
    Member
    • Jan 2010
    • 30

    #1

    zabbix agent (windows)

    i had installed the zabbix agent for windows. i use zabbix 1.8
    but the status still unreached. i had changed the

    server=ip address of the zabbix server
    hostname=my hostname.


    may i get help from anyone?
    Last edited by yuhuu; 25-02-2010, 03:34.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Have you verified that the Zabbix Agent service is running?
    What does the zabbix_agentd.log say on your host?
    Might help to paste a copy of your zabbix_agentd.conf file also.

    Comment

    • edgonz
      Junior Member
      • Feb 2010
      • 9

      #3
      One more thing...

      What template have you assigned to this host?

      I'm a new Zabbix user, and I just finished this task, so I may be able to help you as well.

      tchjts1, is right on the money though...is the agent on your Windows server running properly?

      Comment

      • RafaelMoreno
        Member
        • Jul 2009
        • 58

        #4
        Hi,

        You got assign the windows template to the server,

        Another thing, check the windows firewall if it's not blocking the port 10050 TCP.

        The zabbix agent on windows works pretty fine.

        If it does not help please change the log level and post to us the last 10 lines

        Thanks,

        Comment

        • yuhuu
          Member
          • Jan 2010
          • 30

          #5
          sorry for the late reply.

          @tchjts1
          i had checked the zabbix agent started or not at Control Panel->Administrator Tools->Services and its showed status of the Zabbix agent Started.

          ---- Log ---

          2028:20100129:175228.156 zabbix_agentd started. Zabbix 1.8.1 (revision 9692).
          5456:20100129:175228.203 zabbix_agentd collector started
          5196:20100129:175228.203 zabbix_agentd listener started
          3340:20100129:175228.203 zabbix_agentd listener started
          4624:20100129:175228.203 zabbix_agentd listener started
          4488:20100129:175228.218 zabbix_agentd listener started
          2780:20100129:175228.218 zabbix_agentd listener started
          3100:20100129:175228.218 zabbix_agentd active check started [server:10051]
          3100:20100129:175228.234 No active checks on server: host [hostname] not found
          3100:20100129:175428.250 No active checks on server: host [hostname] not found
          3100:20100129:175628.265 No active checks on server: host [hostname] not found
          3100:20100129:175828.281 No active checks on server: host [hostname] not found
          5456:20100129:175917.250 zabbix_agentd collector stopped
          3100:20100129:175917.281 zabbix_agentd active check stopped

          @edgonz
          i had assigned templete_windows.

          @RafaelMoreno
          i had use the cmd and type "netstat -an" and the result is 1050 time_wait.


          # 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
          # Default:
          DebugLevel=0

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

          LogFile=C:\Program Files\Zabbix Agent\Zabbix_agentd.log

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

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

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

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

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

          Hostname=hostname

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

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

          # DisableActive=1

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

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

          ### 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
          Last edited by yuhuu; 01-03-2010, 00:51.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            Your problem is here in your zabbix_agentd.conf file:

            Code:
            Server=server
            The above value should be the IP address of your Zabbix server.

            Code:
            Hostname=hostname
            When using active checks, the above value must match exactly the name you have for the host in the Zabbix frontend. I doubt you have your host defined as "hostname" in Configuration --> Hosts.

            You should change it in the zabbix_agentd.conf file to match what you have in the frontend, restart the agent and all should be fine.
            Last edited by tchjts1; 01-03-2010, 14:39.

            Comment

            • yuhuu
              Member
              • Jan 2010
              • 30

              #7
              When using active checks, the above value must match exactly the name you have for the host in the Zabbix frontend. I doubt you have your host defined as "hostname" in Configuration --> Hosts
              I used
              server =my server ip address
              hostname =my hostname.

              but i just changed it when i want to post it here.

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #8
                Well, the log clearly indicates what the issue is:

                3100:20100129:175228.234 No active checks on server: host [hostname] not found

                That means you have a mismatch in the name of the host in the frontend as compared to what you have in your zabbix_agentd.conf file.

                It has to be an exact match. Case senitive, too.

                Comment

                • yuhuu
                  Member
                  • Jan 2010
                  • 30

                  #9
                  oh. thanks. sorry.

                  may i know something?
                  server= my zabbix server ip or my windows computer ip?

                  and for the hostname? what should i put on it?
                  Attached Files
                  Last edited by yuhuu; 02-03-2010, 01:13.

                  Comment

                  • tchjts1
                    Senior Member
                    • May 2008
                    • 1605

                    #10
                    Originally posted by yuhuu
                    may i know something?
                    server= my zabbix server ip or my windows computer ip?
                    IP address of your Zabbix application server

                    Originally posted by yuhuu
                    and for the hostname? what should i put on it?
                    Put whatever you want. I generally use the name of the server. Just make sure they match as I previously stated.

                    Comment

                    • yuhuu
                      Member
                      • Jan 2010
                      • 30

                      #11
                      Put whatever you want. I generally use the name of the server. Just make sure they match as I previously stated.
                      if my zabbix server named neserver.
                      then in zabbix_agentd.conf.
                      it must be like this?
                      server=oneserver

                      Comment

                      • tchjts1
                        Senior Member
                        • May 2008
                        • 1605

                        #12
                        http://www.zabbix.com/documentation/1.8/manual

                        Comment

                        • yuhuu
                          Member
                          • Jan 2010
                          • 30

                          #13
                          thanks nway. i had read the manual.

                          Comment

                          • tchjts1
                            Senior Member
                            • May 2008
                            • 1605

                            #14
                            Dude. The host is the server which you want to gather metrics from. If that host is named "Dora Comp" in it's zabbix_agentd.conf file, then in the Zabbix frontend (GUI) you have to also have the name as "Dora Comp".

                            If you want to do a test to see if that is the issue, change some of your Template_Windows items to be type "Zabbix Agent". (Not Zabbix Agent (Active) ). Or whatever the template is that you have attached to the host.

                            Passive items do not rely on the name of the host matching.

                            Comment

                            • yuhuu
                              Member
                              • Jan 2010
                              • 30

                              #15
                              i realised the mistake after i refer back to my zabbix_agentd.conf in zabbix server.

                              i had change it in the zabbix_agentd.conf
                              hostname=Dora Comp

                              and for the template.i use template_windows.

                              did u mean by change it "template_windows" words to "zabbix_agent"?

                              how can i do that sir?

                              Comment

                              Working...