Ad Widget

Collapse

Setting up Zabbix Proxy: Getting "unknown proxy"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robert_Sprunk
    Junior Member
    • Dec 2009
    • 2

    #1

    Setting up Zabbix Proxy: Getting "unknown proxy"

    Hello,

    I am trying to set up a Zabbix Server and Zabbix Proxy environment, but keep getting "Unkown proxy".


    Configuration on the Proxy (and Logfile)
    ----------------------------------------

    [root@zabbix-proxy sbin]# ./zabbix_proxy --version
    Zabbix Proxy (daemon) v1.8 (revision 8565) (7 December 2009)
    Compilation time: Dec 18 2009 15:55:28

    [root@zabbix-proxy zabbix]# view zabbix_proxy.log
    [..]
    ### Option: Hostname
    # Unique Proxy name. Make sure the Proxy name is known to the server!
    # System hostname is used if undefined.
    #
    # Mandatory: no
    # Default:
    # Hostname=

    # Hostname=proxy_name
    Hostname=zabbix-proxy
    [..]

    [root@zabbix-proxy tmp]# view zabbix_proxy.log
    [..]
    15844:20091221:123724.595 In recv_data_from_server()
    15844:20091221:123724.596 Received [{
    "response":"failed"}] from server
    15844:20091221:123724.596 End of put_data_to_server():FAIL
    [..]


    Logfiles and Database on the server
    -----------------------------------

    [root@zabbix-server sbin]# zabbix_server --version
    Zabbix Server (daemon) v1.8 (revision 8565) (7 December 2009)
    Compilation time: Dec 16 2009 15:43:39

    [root@zabbix-server zabbix]#
    mysql> select * from hosts where host="zabbix-proxy";
    +--------+--------------+--------------+-----+-------+---------+-------+--------+---------------+-------+-----------+-------------+------------+---------+----------+---------+-----------+---------------+----------------+---------------+---------------+--------------------+----------------+--------------------+----------------+---------------+--------------------+------------------+------------------+---------+------------------+------------------+------------+------------+
    | hostid | proxy_hostid | host | dns | useip | ip | port | status | disable_until | error | available | errors_from | lastaccess | inbytes | outbytes | useipmi | ipmi_port | ipmi_authtype | ipmi_privilege | ipmi_username | ipmi_password | ipmi_disable_until | ipmi_available | snmp_disable_until | snmp_available | maintenanceid | maintenance_status | maintenance_type | maintenance_from | ipmi_ip | ipmi_errors_from | snmp_errors_from | ipmi_error | snmp_error |
    +--------+--------------+--------------+-----+-------+---------+-------+--------+---------------+-------+-----------+-------------+------------+---------+----------+---------+-----------+---------------+----------------+---------------+---------------+--------------------+----------------+--------------------+----------------+---------------+--------------------+------------------+------------------+---------+------------------+------------------+------------+------------+
    | 10051 | 0 | zabbix-proxy | | 1 | 0.0.0.0 | 10050 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 | 0 | 623 | -1 | 2 | | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | | |
    +--------+--------------+--------------+-----+-------+---------+-------+--------+---------------+-------+-----------+-------------+------------+---------+----------+---------+-----------+---------------+----------------+---------------+---------------+--------------------+----------------+--------------------+----------------+---------------+--------------------+------------------+------------------+---------+------------------+------------------+------------+------------+
    1 row in set (0.00 sec)

    [root@zabbix-server tmp]# view zabbix_server.log

    13013:20091221:124115.808 In process_autoreg_data()
    13013:20091221:124115.808 Query [txnlev:0] [select hostid from hosts where host='zabbix-proxy' and status in (5) and hostid between 000000000000000 and 099999999999999]
    13013:20091221:124115.809 Unknown proxy "zabbix-proxy"
    13013:20091221:124115.809 End of process_autoreg_data():FAIL



    This looks for me like the status of the host in the database has to be "5". How to get this (except by entering the value via mysql by hand?)


    (Please note that I had no problems getting 1.6.7 to run with the nearly the same configuration, something seems to have changed)

    Thank you in advance for any help
    Best regards from Germany
    Robert
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    how did you create the proxy ? you have to do that through administration -> dm -> proxies
    Zabbix 3.0 Network Monitoring book

    Comment

    • Robert_Sprunk
      Junior Member
      • Dec 2009
      • 2

      #3
      Hi

      Ok.
      I really missed that, I entered Administration DM but overlooked the switch from node to proxy.

      Thank you!

      Robert

      Comment

      Working...