ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Install Zabbix on CentOS 7

    IT Discussion
    how to zabbix zabbix 3.0 zabbix server centos 7 centos
    13
    51
    12.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sparkum @Romo
      last edited by

      @Romo
      Hmm still no, silly Z doesnt wanna turn green.

      I assume if I added a linux box I would be up in second.

      RomoR 1 Reply Last reply Reply Quote 0
      • RomoR
        Romo @Sparkum
        last edited by

        @Sparkum Can you post your dashboard please =). Did you activate the host, Configuration>hosts>yourhost>enable?

        S 1 Reply Last reply Reply Quote 0
        • S
          Sparkum @Romo
          last edited by Sparkum

          @Romo

          Sorry just a screenshot of my dashboard?

          Yep, host is enabled.

          I'm getting stats from the Zabbix agent, just now windows agent.

          0_1472064751862_Zabbix.PNG

          RomoR 1 Reply Last reply Reply Quote 0
          • RomoR
            Romo @Sparkum
            last edited by Romo

            @Sparkum So its working now, right?

            S 1 Reply Last reply Reply Quote 0
            • wirestyle22W
              wirestyle22
              last edited by

              I'm going to try this tonight.

              1 Reply Last reply Reply Quote 0
              • S
                Sparkum @Romo
                last edited by

                @Romo

                Zabbix is working, zabbix agent on the server is working, just cant get any communication from windows agent, so not sure if you have any experience with the windows agent or not.

                dafyreD 1 Reply Last reply Reply Quote 0
                • dafyreD
                  dafyre @Sparkum
                  last edited by

                  @Sparkum said in Install Zabbix on CentOS 7:

                  @Romo

                  Zabbix is working, zabbix agent on the server is working, just cant get any communication from windows agent, so not sure if you have any experience with the windows agent or not.

                  Have you checked the windows firewall? There's Zabbix is usually blocked by it.

                  Also, check the zabbix_agentd.conf file on your Windows box and make sure the Server and ServerActive IP addresses are set to your Zabbix Server's ip?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Sparkum @dafyre
                    last edited by

                    @dafyre

                    Both are set to 192.168.1.167 (which is internal IP of zabbix server)

                    And I created inbound and outbound rules for 10050 and 10051

                    dafyreD 1 Reply Last reply Reply Quote 0
                    • dafyreD
                      dafyre @Sparkum
                      last edited by

                      @Sparkum said in Install Zabbix on CentOS 7:

                      @dafyre

                      Both are set to 192.168.1.167 (which is internal IP of zabbix server)

                      And I created inbound and outbound rules for 10050 and 10051

                      Got the 10050 and 10051 open on your Zabbix server?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Sparkum @dafyre
                        last edited by

                        @dafyre

                        Well I did this

                        firewall-cmd --permanent --add-port=10051/tcp
                        firewall-cmd --permanent --add-port=10050/tcp

                        So I assume yes?

                        How exactly would I check, sorry

                        dafyreD 1 Reply Last reply Reply Quote 0
                        • dafyreD
                          dafyre @Sparkum
                          last edited by dafyre

                          @Sparkum said in Install Zabbix on CentOS 7:

                          @dafyre

                          Well I did this

                          firewall-cmd --permanent --add-port=10051/tcp
                          firewall-cmd --permanent --add-port=10050/tcp

                          So I assume yes?

                          How exactly would I check, sorry

                          Did you

                          firewall-cmd --reload ?

                          Edit: That's a good question... I'm not sure about how to do that with firewalld.

                          S RomoR 2 Replies Last reply Reply Quote 0
                          • S
                            Sparkum @dafyre
                            last edited by

                            @dafyre

                            Yep I've reloaded and rebooted.

                            1 Reply Last reply Reply Quote 0
                            • RomoR
                              Romo @dafyre
                              last edited by

                              @dafyre said in Install Zabbix on CentOS 7:

                              @Sparkum said in Install Zabbix on CentOS 7:

                              @dafyre

                              Well I did this

                              firewall-cmd --permanent --add-port=10051/tcp
                              firewall-cmd --permanent --add-port=10050/tcp

                              So I assume yes?

                              How exactly would I check, sorry

                              Did you

                              firewall-cmd --reload ?

                              Edit: That's a good question... I'm not sure about how to do that with firewalld.

                              sudo firewall-cmd --permanent --list-all

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                Sparkum @Romo
                                last edited by

                                @Romo

                                sparkum@Zabbix:~$ sudo firewall-cmd --permanent --list-all
                                public (default)
                                interfaces:
                                sources:
                                services: dhcpv6-client ssh
                                ports: 10050/tcp http/tcp 10051/tcp
                                masquerade: no
                                forward-ports:
                                icmp-blocks:
                                rich rules:
                                
                                RomoR 1 Reply Last reply Reply Quote 1
                                • RomoR
                                  Romo @Sparkum
                                  last edited by

                                  @Sparkum Your ports are open 😃

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Sparkum
                                    last edited by

                                    Anyone have anymore ideas on what I should try to get the windows agent to communicate with my server?

                                    Want any config files?

                                    RomoR 1 Reply Last reply Reply Quote 0
                                    • RomoR
                                      Romo @Sparkum
                                      last edited by

                                      @Sparkum yes post your windows agent config.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sparkum @Romo
                                        last edited by

                                        @Romo

                                        https://www.dropbox.com/s/23eek30r787pa1e/zabbix_agentd.txt?dl=0

                                        1 Reply Last reply Reply Quote 0
                                        • RomoR
                                          Romo
                                          last edited by Romo

                                          @Sparkum Finally got a windows vm setup and got the agent working.

                                          alt text

                                          This are the steps I took to get it working:

                                          Download windows pre-compiled agent:
                                          http://www.zabbix.com/downloads/3.0.0/zabbix_agents_3.0.0.win.zip

                                          From an elevated cmd promt
                                          I went inside the extracted folders to install the zabbix agent as a service:
                                          zabbix_agents_3.0.0.win\bin\win64\

                                          Executed the following command to install the service and point to the config file:
                                          zabbix_agent_d.exe --config "..\..\conf\zabbix_agentd.win.conf" --install

                                          Now we need to edit the config file to point to our zabbix server:
                                          zabbix_agents_3.0.0.win\conf\zabbix_agentd.win.conf

                                          Modify the following options:

                                          Server=Zabbix Server IP Address
                                          ServerActive=Zabbix Server IP Address
                                          Hostname= FQDN of windows host
                                          

                                          Went back to the bin folder and started the service:
                                          ..\zabbix_agents_3.0.0.win\bin\win64\zabbix_agent_d.exe --start

                                          Allow the zabbix_agentd.exe executable throught the windows firewall.

                                          Add the host to the Zabbix Server
                                          alt text

                                          In new host settings add:

                                          # HOST TAB 
                                          Host name = FQDN of your windows host
                                          Groups = Use a preset group or create a new one
                                          Agent Interfaces = IP address of Windows Host
                                          Enabled =  Checked.
                                          
                                          #Templates Tab
                                          Link new templates = Template OS Windows
                                          

                                          Save your newly created host and wait for a couple of minutes to get it talking to your server
                                          alt text

                                          Its done and reporting =).
                                          alt text

                                          S 1 Reply Last reply Reply Quote 2
                                          • S
                                            Sparkum @Romo
                                            last edited by

                                            @Romo

                                            I'm getting closer!

                                            So the only thing I did from what you wrote was

                                            Hostname= FQDN of windows host
                                            

                                            But after that I have a red Z!
                                            Progress!

                                            Currently getting

                                             Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer
                                            

                                            I'll try to google my way through that now!

                                            Thanks

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post