Ad Widget

Collapse

windows agent active check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nelteren
    Junior Member
    • Sep 2008
    • 16

    #1

    windows agent active check

    I installed zabbix 1.6.4 fresh on ubuntu 9.0.4
    All the linux agents work fine (local and remote)
    The windows agent in the local network work fine

    But I want to monitor most of the server (and some clients) behind NAT.
    So I want to let the agent traps the data

    The agent runs on xxxx.xxxx.xxxx.xxxx
    On the zabbix server I do a tcpdump host xxx.xxx.xxx.xxxx port 10051

    16:48:41.244153 IP xxxx.xxxx.xxxx.xxxx.20338 > 172.16.10.6.zabbix_trap: S 1730531398:1730531398(0) win 65535 <mss 1452,nop,nop,sackOK>
    16:48:41.244201 IP 172.16.10.6.zabbix_trap > xxxx.xxxx.xxxx.xxxx.20338: S 2532579925:2532579925(0) ack 1730531399 win 5840 <mss 1460,nop,nop,sackOK>
    16:48:41.275053 IP xxxx.xxxx.xxxx.xxxx.20338 > 172.16.10.6.zabbix_trap: . ack 1 win 65535
    16:48:41.275124 IP xxxx.xxxx.xxxx.xxxx.20338 > 172.16.10.6.zabbix_trap: P 1:6(5) ack 1 win 65535

    So the data is comming in.
    host name in zabbix == zabbix_agentd.conf

    # This is config file for zabbix_agentd
    # To get more information about ZABBIX, go http://www.zabbix.com

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

    # List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
    # No spaces allowed. First entry is used for sending active checks.
    # Note that hostnames must resolve hostname->IP address and
    # IP address->hostname.

    Server=zabbixwanip

    # Server port for sending active checks

    ServerPort=10051

    # Unique hostname. Required for active checks.

    Hostname=samehostnameasinzabbix

    # Listen port. Default is 10050

    ListenPort=10050

    # IP address to bind agent
    # If missing, bind to all available IPs

    #ListenIP=127.0.0.1

    # Source IP address for outgouing connections
    #SourceIP=

    # Number of pre-forked instances of zabbix_agentd,
    # which process passive checks.
    # Default value is 3.
    # This parameter must be between 1 and 16.

    StartAgents=3

    # How often refresh list of active checks. 2 minutes by default.

    RefreshActiveChecks=120

    # Disable active checks. The agent will work in passive mode listening server.

    #DisableActive=1

    # Disable passive checks. The agent will not listen to any TCP ports.
    # Only active checks will be processed.

    DisablePassive=1

    # Enable remote commands for ZABBIX agent. By default remote commands disabled.

    #EnableRemoteCommands=1

    # Specifies debug level
    # 0 - debug is not created
    # 1 - critical information
    # 2 - error information
    # 3 - warnings (default)
    # 4 - for debugging (produces lots of information)

    DebugLevel=4

    # Name of PID file

    #PidFile=/var/tmp/zabbix_agentd.pid

    # Name of log file.
    # If not set, syslog will be used

    LogFile=c:\zabbix_agentd.log

    # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
    #LogFileSize=1

    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30

    Timeout=5

    ####### USER-DEFINED MONITORED PARAMETERS #######
    # Format: UserParameter=<key>,<shell command>
    # Note that shell command must not return empty string or EOL only
    #UserParameter=system.test,who|wc -l
    ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
    ### Change -u<username> and add -p<password> if required
    #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
    #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
    #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
    #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
    #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
    #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
    #UserParameter=mysql.version,mysql -V

    What do I wrong??
  • jroberson
    Senior Member
    • May 2008
    • 124

    #2
    If it is behind a NAT router then you might have to do s few things. I have read that you can change the "Server=" to the IP of your NAT router and that would work, but I haven't tried it myself and could be way off! (Note you might not be able to use active checks with this method.)

    The other method might be to use a Zabbix Proxy or Node on the other side of that NAT router. The difference and uses of each can be found in the Zabbix manual

    There maybe more things on the network side you can try if none of these work, but you might ultimately end up creating some wild routing and port forwarding.

    Comment

    Working...