Ad Widget

Collapse

Zabbix frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyue
    Member
    • Jan 2016
    • 93

    #1

    Zabbix frontend

    Hi,

    I have assign static IP(10.4.2.240) to my zabbix server and tried to use my laptop which is in another subnet (10.29.34.37) to access the zabbix interface by typing "http://10.4.2.240/zabbix" in my browser but it doesn't work.

    I googled and found below link which mention about frontend access.


    I'm not sure which part of the file should I edit ?
    Any idea ?

    Thanks.

    /etc/httpd/conf.d/zabbix.conf
    #
    # Zabbix monitoring system php web frontend
    #

    Alias /zabbix /usr/share/zabbix

    <Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    <IfModule mod_php5c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    # php_value datetimezone Europe/Riga
    </IfModule>
    </Directory>

    <Directory "/usr/share/zabbix/conf">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>

    <Directory "/usr/share/zabbix/api">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>

    <Directory "/usr/share/zabbix/include">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>

    <Directory "/usr/share/zabbix/include/classes">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Can you connect by non-HTTP protocol?
    ex.
    Do you have a response by ping?
    Can you connect by ssh?
    Firewall settings is done?

    If you cannot connect, I think that reason is not settings for web server.
    You must check network enviroment.

    Comment

    • Xyue
      Member
      • Jan 2016
      • 93

      #3
      Hi,

      I able to ping the server from my laptop. Firewall setting is done as i have open the port for 10051 using below command.
      iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 10051 -j ACCEPT

      I havent't setup SSH yet but has already installed XRDP.

      I have tried "http://ZabbixServerIP:10051" and it only shows me "OK" (from zabix server and my laptop).

      So what else should i do to allow my laptop browser to open the Zabbix web interface ?

      Any other steps i might missed out ?

      TQ
      Last edited by Xyue; 18-02-2016, 08:12.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Web frontend use port 80 by default.

        Comment

        • Xyue
          Member
          • Jan 2016
          • 93

          #5
          Hi,

          Can advise where to change the port ?

          I follow the steps listed in below link and configure port number of Zabbix server to 10051.


          My question might be stupid as this is the first time I use linux and many command I'm still try my best to understand.

          Thanks in advance.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            You must have permission of the port number 10051 to access from Zabbix agent to Zabbix server.
            You must have permission of the port number 80 to access from Web browser to Web server.

            Both of permission settings you need.

            ex.
            Code:
            # iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 10051 -j ACCEPT 
            # iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

            Comment

            • Xyue
              Member
              • Jan 2016
              • 93

              #7
              Hi Atsushi,

              Thanks a lot for your advise. I have include port 80 into the iptables and now i able to open the web interface using my laptop.

              Comment

              Working...