Ad Widget

Collapse

Proxy related questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • overnet
    Member
    • Mar 2008
    • 33

    #1

    Proxy related questions

    I've installed a Zabbix server and a Zabbix proxy. I then added the zabbix_proxy to zabbix_server (Configuration-->Hosts-->Proxies (Create New).

    Then added a host to Zabbix server and selected the proxy from "Monitor by Proxy" drop down menu.

    The "Availability" of the newly added host is showing as "Unknow".

    The new host zabbix_agentd.conf is set as following:

    Code:
    ############ 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.
    
    [B]Server=10.10.1.10[/B] [COLOR="Red"]#Zabbix Proxy IP[/COLOR]
    
    # Server port for sending active checks
    
    #ServerPort=10051
    
    # Unique hostname. Required for active checks.
    
    Hostname=host1
    
    # Listen port. Default is 10050
    
    #ListenPort=10050
    Here are an entry from host1 logs (zabbix_agentd.log)

    11820:20081125:212602 Getting list of active checks failed. Will retry after 60 seconds

    Here are log entries from zabbix_proxy.log

    8715:20081125:134554 Heartbeat message sendig failed
    8715:20081125:134654 Heartbeat message sendig failed


    zabbix_proxy.conf main settings are:

    Code:
    # IP address (or hostname) of ZABBIX servers.
    
    Server=10.10.1.5
    
    # Server port for sending active checks
    
    ServerPort=10051
    
    # Unique hostname.
    
    Hostname=proxy1
    
    # Database host name
    # Default is localhost
    
    #DBHost=localhost
    
    # Database name
    # SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored.
    DBName=zabbix
    
    # Database user
    
    DBUser=zabbix
    
    # Database password
    # Comment this line if no password used
    
    DBPassword=password
    My questions are:

    1- Should the agent of the host point to the IP of Zabbix Server or Zabbix Proxy?
    2- Is there anything else I need to do to make the zabbix proxy, the host's zabbix agent and zabbix server work with each other?

    Thanks a lot for your help,
    Last edited by overnet; 25-11-2008, 23:59.
  • ataylo13
    Senior Member
    • Feb 2007
    • 122

    #2
    Are all of your checks "ZABBIX agent(active)"? I had a similar problem and made one check the regular "ZABBIX agent" and that fixed it.
    Version : 1.8.8
    Current Configuration 1 Master and 3 Child Nodes

    Comment

    • overnet
      Member
      • Mar 2008
      • 33

      #3
      I'm not sure if I understood you correctly, but all the checks that the agent does are enabled. (Everything is on default).

      Comment

      • ataylo13
        Senior Member
        • Feb 2007
        • 122

        #4
        Under the configuration tab...
        Then select items...
        edit one of the items that you are monitoring and check the "type"
        Version : 1.8.8
        Current Configuration 1 Master and 3 Child Nodes

        Comment

        • overnet
          Member
          • Mar 2008
          • 33

          #5
          All the items I have have "Zabbix Agent" for type, and "Active" for status.

          Just a side note, I cant edit the items I can only select them.

          Comment

          • ataylo13
            Senior Member
            • Feb 2007
            • 122

            #6
            You answered my question.

            side note... you will need to edit the items under the template.
            Version : 1.8.8
            Current Configuration 1 Master and 3 Child Nodes

            Comment

            • overnet
              Member
              • Mar 2008
              • 33

              #7
              This is another thing all together, when I click on an item and try to change some values in that item I cant do it, I cant do any change. The only thing I can do is enable or disable an item.

              But I have the items active already, do I need change this status? Is this why the host is not reporting to zabbix proxy and zabbix proxy is not reporting to the zabbix server?

              Thank you,

              Comment

              • overnet
                Member
                • Mar 2008
                • 33

                #8
                I have two more questions related to dealing with proxy.

                What does this error in logs mean?

                Heartbeat message sendig failed

                On Zabbix server logs I get the following error:

                Unknown proxy "proxy2"

                I search the whole database for an entry to proxy2 and did not find any, I looked in proxy_server.conf and proxy_agentd.conf and nothing there too, where does zabbix server store such value other than the DB?

                Thank you,

                Comment

                • Alexei
                  Founder, CEO
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Sep 2004
                  • 5654

                  #9
                  Originally posted by overnet
                  On Zabbix server logs I get the following error:

                  Unknown proxy "proxy2"

                  I search the whole database for an entry to proxy2 and did not find any, I looked in proxy_server.conf and proxy_agentd.conf and nothing there too, where does zabbix server store such value other than the DB?

                  Thank you,
                  Why search the database, search ZABBIX Manual!

                  Configuration->Hosts->Proxies
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • overnet
                    Member
                    • Mar 2008
                    • 33

                    #10
                    Originally posted by Alexei
                    Why search the database, search ZABBIX Manual!

                    Configuration->Hosts->Proxies
                    It's because (Configuration->Hosts->Proxies) was not showing that proxy.

                    Only zabbix log was reporting about that proxy.

                    Comment

                    • Alexei
                      Founder, CEO
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Sep 2004
                      • 5654

                      #11
                      Look at the zabbix_proxy.conf:

                      Hostname=proxy2

                      This is where the "proxy2" came from.
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      Working...