Ad Widget

Collapse

[1.1.6. stable] Unix_t probs, Windows_t probs and general question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Deathstar
    Junior Member
    • Feb 2007
    • 7

    #1

    [1.1.6. stable] Unix_t probs, Windows_t probs and general question

    Good morning everbody,

    let's introduce myself: I'm a 19yo IT-Systems-Engineer from germany and I'm trying to monitor everything I can

    Zabbix Server [1.1.6 stable] ist running on openSuSE (10.2) with mysql and net-snmp but I got some "errors" I can't fix at this point - hope you can - and some questions concerning ZABBIX:

    1. Unix_t problem:
    For testing purposes I want to monitor ZABBIX-server itself. (zabbix_server and) zabbix_agentd is started on it and I created a host called "Unix_zabbix_IPADRESS". Linked with the template "Unix_t" it should work correctly.
    Here's the /etc/zabbix/zabbix_agentd.conf file for it:

    Code:
    # 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=192.168.0.75
    
    # Server port for sending active checks
    
    ServerPort=10051
    
    # Unique hostname. Required for active checks.
    
    Hostname=zabbix.project.dom
    
    # Listen port. Default is 10050
    
    ListenPort=10050
    
    # IP address to bind agent
    # If missing, bind to all available IPs
    
    ListenIP=192.168.0.75
    
    # Number of pre-forked instances of zabbix_agentd.
    # Default value is 5
    # This parameter must be between 1 and 16
    
    StartAgents=5
    
    # 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
    
    # 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=3
    
    # Name of PID file
    
    PidFile=/var/tmp/zabbix_agentd_192.168.0.75.pid
    
    # Name of log file.
    # If not set, syslog will be used
    
    LogFile=/tmp/zabbix_agentd_192.168.0.75.log
    
    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30
    
    Timeout=3
    
    ####### 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
    question at this point:
    is it possible to set the hostname equal to the IP adress? got some clients which hostnames can't be resolved to their ip-adresses. so i would try to do it all via ip-adresses.

    now my problems with this config:
    1. I got an vsftpd ftp server but it says "no ftp-server running"
    2. I got an apache2-webserver but it says "apache webserver is not running"
    3. I got xinetd running but it says "inetd is not running"
    4. it says "web-server is not running" hello? apache2? it listens on port 80, but this trigger won't get it, thought.
    5. server {HOSTNAME} is not reachable, think this will be the thing about "not-resolving-hostnames". can I put the hosts IP-Adress in the agentd.conf at "HOSTNAME=$" thing?

    How to fix these things?

    2. Windows_t problems:

    I want to monitore my Windows XP Prof SP2 machine, too. so i installed the agentd as a system service with the following config:

    Code:
    # 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=192.168.0.75
    
    # Server port for sending active checks
    
    ServerPort=10051
    
    # Unique hostname. Required for active checks.
    
    Hostname=hq
    
    # Listen port. Default is 10050
    
    ListenPort=10050
    
    # IP address to bind agent
    # If missing, bind to all available IPs
    
    #ListenIP=127.0.0.1
    
    # Number of pre-forked instances of zabbix_agentd.
    # Default value is 5
    # This parameter must be between 1 and 16
    
    StartAgents=5
    
    # 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
    
    # 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=3
    
    # Name of PID file
    
    PidFile=/var/tmp/zabbix_agentd_192.168.0.66.pid
    
    # Name of log file.
    # If not set, syslog will be used
    
    LogFile=/tmp/zabbix_agentd_192.168.0.66.log
    
    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30
    
    Timeout=3
    
    ####### 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
    question at this point: can i set the HOSTNAME equal to the IPADRESS of my client? (HOSTNAME=192.168.0.x)?

    here we go:
    I created a host windows_IPADDRESSEOFIT and linked it with windows_t template.
    "Cannot connect to [Windows_192.168.0.66] [Connection refused] " this is what i got, my machine hasn't a firewall running. so whats the problem?
    caused of this issue i can't monitore it anyway.
    but on the machine
    administration --> services --> zabbixw32 agentd gives status "is going to start" (I don't know the exact english-phrase, but it differs from "started" and "stopped" like "tell the service to start") maybe that's a glue?
    solution? tips?

    3. generel questions:
    do i have to reinstall the zabbixw32 service everytime i change the configuration file or is it only necessary to restart the service?
    are there any things I should think about using zabbix on a opensuse system?

    i think that's it for the moment, hope you guys could help me. thanks a very lot

    best regards,

    deathstar.
    Last edited by Deathstar; 18-02-2007, 00:10.
  • djinn_fr22
    Member
    • Jan 2007
    • 54

    #2
    For Unix_t problem:

    In zabbix_agentd.conf, put the address of the zabbix server.
    If it's agent and server running on the same host, just put:
    Server=127.0.0.1

    It should solve the proble of trigger, except inetd on linux.
    See thread:


    In the frontend, when you add a host you can chose either to use DNS resolution, it is to say put the name of the host (be sure the server does the name resolution by testing with nslookup or ping) or check the box IP address and fill the field.

    For windows problem:


    Be sure the service is started.
    Look to see if there is a process call zabbixW32.exe
    You can do a netstat -a and look if the port 10050 is open.
    Look as well as zabbix_agentd.log

    You are not obliged to reinstall the agent when you change the configuration, just do a start and stop.

    Comment

    • Deathstar
      Junior Member
      • Feb 2007
      • 7

      #3
      Ok, let's expand this thread...

      1. It seem's to be impossible to work with DNS, if I fill the "IP-Address"-field with a very fast responding host (root.de) the status appers grey (unknown). If I work on IP-basis it works. Maybe a bug?

      2. Windows_t-System:
      First the now modified zabbix_agentd.conf
      Code:
      # 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=192.168.0.75
      
      # Server port for sending active checks
      
      ServerPort=10051
      
      # Unique hostname. Required for active checks.
      
      #Hostname=hq
      
      # Listen port. Default is 10050
      
      ListenPort=10050
      
      # IP address to bind agent
      # If missing, bind to all available IPs
      
      #ListenIP=127.0.0.1
      
      # Number of pre-forked instances of zabbix_agentd.
      # Default value is 5
      # This parameter must be between 1 and 16
      
      StartAgents=5
      
      # 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
      
      # 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=C:\Programme\Zabbix_agentd\zabbix_agentd_192.168.0.66.pid
      
      # Name of log file.
      # If not set, syslog will be used
      
      LogFile=C:\Programme\Zabbix_agentd\zabbix_agentd_192.168.0.66.log
      
      # Spend no more than Timeout seconds on processing
      # Must be between 1 and 30
      
      Timeout=3
      
      ####### 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
      Now the Windows-Client (incl. Service) is working fine, with one exception:
      The trigger "Too many processes running on {HOSTNAME}" gives status "unknown" (grey). The rest is working fine. Where's the problem concerning this entry?

      2. Unix_t-System:
      Let's start with the current config-file:
      Code:
      # 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=192.168.0.75
      
      # Server port for sending active checks
      
      ServerPort=10051
      
      # Unique hostname. Required for active checks.
      
      Hostname=127.0.0.1
      
      # Listen port. Default is 10050
      
      ListenPort=10050
      
      # IP address to bind agent
      # If missing, bind to all available IPs
      
      ListenIP=192.168.0.75
      
      # Number of pre-forked instances of zabbix_agentd.
      # Default value is 5
      # This parameter must be between 1 and 16
      
      StartAgents=5
      
      # 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
      
      # 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=3
      
      # Name of PID file
      
      PidFile=/var/tmp/zabbix_agentd_192.168.0.75.pid
      
      # Name of log file.
      # If not set, syslog will be used
      
      LogFile=/tmp/zabbix_agentd_192.168.0.75.log
      
      # Spend no more than Timeout seconds on processing
      # Must be between 1 and 30
      
      Timeout=3
      
      ####### 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
      Following triggers won't work correct, unfortunately:
      /etc/inetd.conf has been changed on server {HOSTNAME}
      /vmlinuz has been changed on server {HOSTNAME}
      Configured max number of processes is too low on {HOSTNAME}
      Server {HOSTNAME} is unreachable
      WEB server is down on {HOSTNAME}

      All those give the following tatus: unknown (grey)

      And these triggers are working, but giving "wrong" status:

      Apache is not running on {HOSTNAME} (Apache2 on openSuse10.2 IS running - maybe another service-name?)
      FTP server is down on {HOSTNAME} (vsftpd -_-)
      Inetd is not running on {HOSTNAME} (must watch link, thought)

      Thanks for you big help, guys

      Comment

      • Deathstar
        Junior Member
        • Feb 2007
        • 7

        #4
        Anybody any idea?

        Comment

        Working...