Ad Widget

Collapse

Installing 3.2 on RHEL6.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jotarokujo
    Junior Member
    • Aug 2017
    • 6

    #1

    Installing 3.2 on RHEL6.8

    I'm trying to install zannix on Redhat 6.8.

    Everything went smoothly, until I got to the frontend installation.

    First of all yum didn't install the /etc/httpd/conf.d/zabbix.conf file. I copied it from here.

    However when I go to the URL on my browser, it gives me this error:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    Any clues what's wrong? Something in the php config file?
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi, yes, you have one mistake in that cfg.

    I assume that you are using Apache2.2 which, so you need to comment the line in your file:

    # Require all granted in your zabbix.conf

    Also, be sure that your server have php5.4 or newer.

    Regards,
    Alex

    Comment

    • jotarokujo
      Junior Member
      • Aug 2017
      • 6

      #3
      Thank you for your reply.

      I have made this change but I still cannot load the page. Now it just says:

      HTTP ERROR 500
      Is this because I only have php5.3?

      # rpm -qa |grep http
      httpd-2.2.15-53.el6.x86_64
      httpd-tools-2.2.15-53.el6.x86_64
      httpd-devel-2.2.15-53.el6.x86_64
      # rpm -qa |grep php
      php-xml-5.3.3-47.el6.x86_64
      php-pdo-5.3.3-47.el6.x86_64
      php-cli-5.3.3-47.el6.x86_64
      php-pear-1.9.4-5.el6.noarch
      php-common-5.3.3-47.el6.x86_64
      php-5.3.3-47.el6.x86_64
      php-mysql-5.3.3-47.el6.x86_64
      php-gd-5.3.3-47.el6.x86_64

      Comment

      • allexpetrov
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2017
        • 361

        #4
        Originally posted by allexpetrov
        Also, be sure that your server have php5.4 or newer.

        Regards,
        Alex

        Comment

        • jotarokujo
          Junior Member
          • Aug 2017
          • 6

          #5
          I managed to configure the frontend. Now I'm trying to config the server to auto register active agents as explained in this page.

          I also added the zabbix server (ibm056) to the Server= line, since it was giving me an error. Now I don't see any error in the log files (both zabbix_agentd.log and zabbix_server.log), however the client host is not added to zabbix.

          How do I debug this problem?

          I have attached my zabbix_agentd.conf file.
          Attached Files

          Comment

          • allexpetrov
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2017
            • 361

            #6
            Originally posted by jotarokujo
            I also added the zabbix server (ibm056) to the Server= line, since it was giving me an error. Now I don't see any error in the log files (both zabbix_agentd.log and zabbix_server.log), however the client host is not added to zabbix.

            How do I debug this problem?
            Hi, that's cool that you've managed the frontend thing. Gratz!

            So, about your configuration of the host:
            • Are you sure that your server is reachable via hostname ? For the first time it is better to use IP
            • Next big thing is your hostname of host where agent is running - This is mandatory to assign unique Hostname if you want to get active checks or agent auto-registration.
            • And, finally, you need to create Auto-registration action in Configuration -> Action [Auto Registration] -> Create action and configure conditions and operations


            About the Debugging , actually, you can increase the loglevel adding the line DebugLevel=4


            Regards,
            Alexey!

            Comment

            • jotarokujo
              Junior Member
              • Aug 2017
              • 6

              #7
              • I changed the zabbix server hostname to its IP in zabbixagentd.conf
              • I already have unique hostnames for all my servers
              • I have created the action seen in the attached image. Is it correct?


              I increased the debuglog, and here's what I get in agent host:

              13681:20170824:114234.822 In init_active_metrics()
              13679:20170824:114234.822 __zbx_zbx_setproctitle() title:'listener #2 [waiting for connection]'
              13681:20170824:114234.822 buffer: first allocation for 100 elements
              13681:20170824:114234.822 End of init_active_metrics()
              13681:20170824:114234.822 In send_buffer() host:'10.225.101.2' port:10051 entries:0/100
              13681:20170824:114234.822 End of send_buffer():SUCCEED
              13681:20170824:114234.822 __zbx_zbx_setproctitle() title:'active checks #1 [getting list of active checks]'
              13681:20170824:114234.822 In refresh_active_checks() host:'10.225.101.2' port:10051
              13681:20170824:114234.823 sending [{"request":"active checks","host":"Zabbix server","host_metadata":"Linux ibm063 2.6.32-642.el6.x86_64 #1 SMP Wed Apr 13 00:51:26 EDT 2016 x86_64"}]
              13681:20170824:114234.823 before read
              13681:20170824:114234.824 got [{"response":"success","data":[]}]
              13681:20170824:114234.824 In parse_list_of_checks()
              13681:20170824:114234.824 End of parse_list_of_checks():SUCCEED
              13681:20170824:114234.824 End of refresh_active_checks():SUCCEED
              13681:20170824:114234.824 __zbx_zbx_setproctitle() title:'active checks #1 [processing active checks]'
              13681:20170824:114234.824 In process_active_checks() server:'10.225.101.2' port:10051
              13681:20170824:114234.824 End of process_active_checks()
              13681:20170824:114234.824 In get_min_nextcheck()
              13681:20170824:114234.824 End of get_min_nextcheck():-1
              13681:20170824:114234.825 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
              13677:20170824:114235.820 __zbx_zbx_setproctitle() title:'collector [processing data]'
              13677:20170824:114235.820 In update_cpustats()
              13677:20170824:114235.820 End of update_cpustats()
              13677:20170824:114235.820 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
              13681:20170824:114235.825 In send_buffer() host:'10.225.101.2' port:10051 entries:0/100
              13681:20170824:114235.825 End of send_buffer():SUCCEED
              13681:20170824:114235.825 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
              13677:20170824:114236.821 __zbx_zbx_setproctitle() title:'collector [processing data]'
              13677:20170824:114236.821 In update_cpustats()
              13677:20170824:114236.821 End of update_cpustats()
              13677:20170824:114236.821 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
              13681:20170824:114236.825 In send_buffer() host:'10.225.101.2' port:10051 entries:0/100
              13681:20170824:114236.825 End of send_buffer():SUCCEED
              13681:20170824:114236.825 __zbx_zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
              13677:20170824:114237.821 __zbx_zbx_setproctitle() title:'collector [processing data]'
              13677:20170824:114237.821 In update_cpustats()
              13677:20170824:114237.822 End of update_cpustats()
              13677:20170824:114237.822 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
              I still don't see any new hosts added. What am I doing wrong?
              Attached Files

              Comment

              Working...