Ad Widget

Collapse

Problem with The first start to ZABBIX Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ninoo
    Junior Member
    • Mar 2021
    • 6

    #1

    Problem with The first start to ZABBIX Server

    Hello boy
    I'm a new user of zabbix .I create a debian server and install zabbix . The first start Zabbix in the GUI I read Zabbix server not running .I go to the /etc/zabbix/zabbix_server.conf and enable ListenPort=10051 and enable DBPassword=.............
    Go to the shell and systemctl restart zabbix-server zabbix-agent apache2 and systemctl enable zabbix-server zabbix-agent apache2
    reboot the machine

    Now the server I read
    No localhost:10051



    Click image for larger version

Name:	error.jpg
Views:	1567
Size:	97.4 KB
ID:	420701

    but this error .

    The file log is :

    Code:
     815:20210315:220905.479 Starting Zabbix Server. Zabbix 5.2.5 (revision 1afd0ded11).
    815:20210315:220905.479 ****** Enabled features ******
    815:20210315:220905.479 SNMP monitoring: YES
    815:20210315:220905.479 IPMI monitoring: YES
    815:20210315:220905.479 Web monitoring: YES
    815:20210315:220905.479 VMware monitoring: YES
    815:20210315:220905.479 SMTP authentication: YES
    815:20210315:220905.479 ODBC: YES
    815:20210315:220905.479 SSH support: YES
    815:20210315:220905.479 IPv6 support: YES
    815:20210315:220905.479 TLS support: YES
    815:20210315:220905.479 ******************************
    815:20210315:220905.479 using configuration file: /etc/zabbix/zabbix_server.conf
    815:20210315:220905.529 current database version (mandatory/optional): 05020000/05020000
    815:20210315:220905.529 required mandatory version: 05020000
    815:20210315:220905.547 server #0 started [main process]
    816:20210315:220905.547 server #1 started [configuration syncer #1]
    818:20210315:220905.752 server #3 started [timer #1]
    817:20210315:220905.753 server #2 started [housekeeper #1]
    819:20210315:220905.755 server #4 started [http poller #1]
    820:20210315:220905.756 server #5 started [discoverer #1]
    823:20210315:220905.762 server #8 started [history syncer #3]
    821:20210315:220905.767 server #6 started [history syncer #1]
    822:20210315:220905.767 server #7 started [history syncer #2]
    827:20210315:220905.768 server #12 started [self-monitoring #1]
    825:20210315:220905.769 server #10 started [escalator #1]
    824:20210315:220905.770 server #9 started [history syncer #4]
    828:20210315:220905.770 server #13 started [task manager #1]
    826:20210315:220905.771 server #11 started [proxy poller #1]
    830:20210315:220905.776 server #14 started [poller #1]
    835:20210315:220905.777 server #17 started [poller #4]
    833:20210315:220905.779 server #15 started [poller #2]
    834:20210315:220905.780 server #16 started [poller #3]
    837:20210315:220905.784 server #18 started [poller #5]
    838:20210315:220905.785 server #19 started [unreachable poller #1]
    844:20210315:220905.805 server #21 started [trapper #2]
    846:20210315:220905.808 server #22 started [trapper #3]
    843:20210315:220905.809 server #20 started [trapper #1]
    849:20210315:220905.812 server #24 started [trapper #5]
    848:20210315:220905.812 server #23 started [trapper #4]
    851:20210315:220905.818 server #25 started [icmp pinger #1]
    853:20210315:220905.820 server #27 started [alerter #1]
    852:20210315:220905.821 server #26 started [alert manager #1]
    860:20210315:220905.830 server #28 started [alerter #2]
    864:20210315:220905.832 server #29 started [alerter #3]
    865:20210315:220905.837 server #30 started [preprocessing manager #1]
    869:20210315:220905.841 server #33 started [preprocessing worker #3]
    871:20210315:220905.842 server #34 started [lld manager #1]
    872:20210315:220905.843 server #35 started [lld worker #1]
    866:20210315:220905.844 server #31 started [preprocessing worker #1]
    868:20210315:220905.844 server #32 started [preprocessing worker #2]
    873:20210315:220905.845 server #36 started [lld worker #2]
    875:20210315:220905.846 server #37 started [alert syncer #1]
    835:20210315:220906.799 enabling Zabbix agent checks on host "Zabbix server": host became available
    815:20210315:220939.681 Got signal [signal:15(SIGTERM),sender_pid:891,sender_uid:0,rea son:0]. Exiting ...
    822:20210315:220939.681 syncing history data in progress...
    822:20210315:220939.681 syncing history data done
    815:20210315:220939.719 syncing trend data...
    815:20210315:220939.731 syncing trend data done
    815:20210315:220939.731 Zabbix Server stopped. Zabbix 5.2.5 (revision 1afd0ded11).

    I don't understand why it stops? can you help me, please?
  • mwildam
    Member
    • Feb 2021
    • 72

    #2
    Please check your /var/www/zabbix/conf/zabbix.conf.php if it contains $ZBX_SERVER and $ZBX_SERVER_PORT

    Comment

    • mwildam
      Member
      • Feb 2021
      • 72

      #3
      It looks like the web interface is not able to get the server status. Also check the agent log - although it seems to recognize the agent being there (because of the green ZBX).
      I assume, you have the web interface running on the same host as the zabbix server (so it cannot be a firewall issue).

      Comment

      • mfortes
        Senior Member
        • Oct 2019
        • 416

        #4
        Hi friend, try this...

        First at all, check the log file on /var/log/zabbix_server.log to find any error...

        Your firewalld have permissions? Maybe u can disable a little to do some test's... The same with SELINUX... Need stay on permissive or disabled...

        User rights to create database...

        Check your log file and show us what u have...


        Michael R. Fortes

        Linkedin: Mike Fortes
        Medium: mromeiro-f

        Comment

        • ninoo
          Junior Member
          • Mar 2021
          • 6

          #5
          Hello , I don't have this folder /var/www/zabbix/conf/zabbix.conf.php .I have this folder /etc/zabbix/zabbix_server.conf I use linux debian with MariaDB
          For Mfortes the log in the my post

          Comment

          • ninoo
            Junior Member
            • Mar 2021
            • 6

            #6
            I find zabbix.conf.php if it contains $ZBX_SERVER and $ZBX_SERVER_PORT in /etc/zabbix/web


            Code:
            $ZBX_SERVER = 'localhost';
            $ZBX_SERVER_PORT = '10051';
            $ZBX_SERVER_NAME = '';


            Comment

            • mfortes
              Senior Member
              • Oct 2019
              • 416

              #7
              Are u using debbuging mode 3? dont have any error in this log...


              Michael R. Fortes

              Linkedin: Mike Fortes
              Medium: mromeiro-f

              Comment

              • ninoo
                Junior Member
                • Mar 2021
                • 6

                #8
                I solved Iinsert the ip server in $ZBX_SERVER
                $ZBX_SERVER = '192.168.......';

                Thanks for your support

                Comment

                Working...