Ad Widget

Collapse

Zabbix server is not running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mohs3n
    Junior Member
    • Jul 2019
    • 5

    #1

    Zabbix server is not running

    Hi

    We have a Zabbix box with 30 something hosts and a few custom templates. Recently, we receive an error at the bottom of the page that says "Zabbix server is not running: the information displayed may not be correct".
    I've searched this error and made few adjustments but nothing worked and it still happens.

    The error goes away after restart zabbix-server but it comes back after a few minutes and in dashboard > system information > Zabbix server is running turns to NO but I can telnet to the port 10051 from inside and outside of the server.

    Environment:
    OS: Deb 9 x64
    Zabbix: 4.0
    RAM 2GB
    CPU 2Core

    Modified Zabbix settings:
    CacheSize=1G
    HistoryCacheSize=256M
    Timeout=4

    Also, there is nothing in the /var/log/zabbix_server.log file about this issue!
    Any help or suggestion s would be appreciated.
    Attached Files
  • Manishk
    Junior Member
    • Apr 2019
    • 12

    #2
    Hello Mohs3n,
    can you tell me, what value have you set in "/etc/zabbix/web/zaabix.conf.php" web config file?

    Thanks

    Comment

    • Mohs3n
      Junior Member
      • Jul 2019
      • 5

      #3
      <?php
      // Zabbix GUI configuration file.
      global $DB;

      $DB['TYPE'] = 'MYSQL';
      $DB['SERVER'] = '127.0.0.1';
      $DB['PORT'] = '0';
      $DB['DATABASE'] = 'zabbix';
      $DB['USER'] = 'zabbix';
      $DB['PASSWORD'] = 'Password';

      // Schema name. Used for IBM DB2 and PostgreSQL.
      $DB['SCHEMA'] = '';

      $ZBX_SERVER = '127.0.0.1';
      $ZBX_SERVER_PORT = '10051';
      $ZBX_SERVER_NAME = 'mon01';

      $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

      Comment

      • Manishk
        Junior Member
        • Apr 2019
        • 12

        #4
        Dear Mohs3n ,
        Have you checked StartTrappers value in "/etc/zabbix/zabbix_server.conf" file ?
        if it is commented then uncomment "StartTrappers" and set the default value 5.
        At least one trapper process must be running to display server availability and view queue in the frontend.
        Have you restarted apache service?

        Thanks

        Comment

        • Kuvvat
          Junior Member
          • Jul 2019
          • 1

          #5
          Hello guys. Can u tell me why Dashboard isnt working after installation zabbix?

          Comment

          • Mohs3n
            Junior Member
            • Jul 2019
            • 5

            #6
            I've made the changes you've asked and restarted both zabbix-server and apache but that didn't fix the issue.

            Comment

            • Manishk
              Junior Member
              • Apr 2019
              • 12

              #7
              Hello Mohs3n ,
              1. kindly check few parameters in "/etc/services" file.
              zabbix-agent 10050/tcp
              zabbix-agent 10050/udp
              zabbix-trapper 10051/tcp
              zabbix-trapper 10051/udp

              2. can you make "CacheSize=32M" in "/etc/zabbix/zabbix_server.conf"
              3. cross check the "DBUser" and "DBPassword" in "/etc/zabbix/zabbix_server.conf" it should be same as you have mentioned in "/etc/zabbix/web/zabbix.conf.php".

              Apart from above changes, can you share me "/etc/zabbix/web/zabbix.conf.php" and "/var/log/zabbix/zabbix_server.log" file ?

              Thanks
              Last edited by Manishk; 31-07-2019, 06:29.

              Comment

              • Mohs3n
                Junior Member
                • Jul 2019
                • 5

                #8
                I have done everything you've asked but still no change.

                Comment

                • Manishk
                  Junior Member
                  • Apr 2019
                  • 12

                  #9
                  can you share me "/etc/zabbix/web/zabbix.conf.php" and "/var/log/zabbix/zabbix_server.log" file ?

                  Comment

                  • knixer
                    Junior Member
                    • Dec 2020
                    • 1

                    #10
                    I have the same problem as Mohs3n. I have checked everything mentioned in this thread. Worth to mention is that I have tried to get IPMI work and during that work the Zabbix server stopped working. Was going through https://techexpert.tips/zabbix/zabbix-ipmi-monitor/ . Tried both the video and the description below (they are different).

                    Here is the zabbix_server.log output:

                    Code:
                    1619:20201225:120117.114 error reason for "mongodb:mongodb.zabbix.sender" changed: Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "Response from "127.0.0.1:10051": "processed: 100; failed: 7; total: 107; seconds spent: 0.000942"
                    sent: 107; skipped: 0; total: 107"
                    1622:20201225:120133.139 error reason for "mongodb:mongodb.zabbix.sender" changed: Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "Response from "127.0.0.1:10051": "processed: 100; failed: 7; total: 107; seconds spent: 0.002389"
                    sent: 107; skipped: 0; total: 107"
                    1511:20201225:120137.890 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
                    1624:20201225:120137.890 syncing history data in progress...
                    1624:20201225:120137.905 syncing history data... 100.000000%
                    1624:20201225:120137.905 syncing history data done
                    1511:20201225:120137.952 syncing trend data...
                    1511:20201225:120137.978 syncing trend data done
                    1511:20201225:120137.979 Zabbix Server stopped. Zabbix 5.2.2 (revision 84ebc7b59d).
                    zabbix.conf.php output:
                    Code:
                    <?php
                    // Zabbix GUI configuration file.
                    
                    $DB['TYPE'] = 'POSTGRESQL';
                    $DB['SERVER'] = 'localhost';
                    $DB['PORT'] = '0';
                    $DB['DATABASE'] = 'zabbix';
                    $DB['USER'] = 'zabbix';
                    $DB['PASSWORD'] = 'zabbix';
                    
                    // Schema name. Used for PostgreSQL.
                    $DB['SCHEMA'] = '';
                    
                    // Used for TLS connection.
                    $DB['ENCRYPTION'] = true;
                    $DB['KEY_FILE'] = '';
                    $DB['CERT_FILE'] = '';
                    $DB['CA_FILE'] = '';
                    $DB['VERIFY_HOST'] = false;
                    $DB['CIPHER_LIST'] = '';
                    
                    // Vault configuration. Used if database credentials are stored in Vault secrets manager.
                    $DB['VAULT_URL'] = '';
                    $DB['VAULT_DB_PATH'] = '';
                    $DB['VAULT_TOKEN'] = '';
                    
                    // Use IEEE754 compatible value range for 64-bit Numeric (float) history values.
                    // This option is enabled by default for new Zabbix installations.
                    // For upgraded installations, please read database upgrade notes before enabling this option.
                    $DB['DOUBLE_IEEE754'] = true;
                    
                    $ZBX_SERVER = 'localhost';
                    $ZBX_SERVER_PORT = '10051';
                    $ZBX_SERVER_NAME = '';
                    
                    $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
                    
                    // Uncomment this block only if you are using Elasticsearch.
                    // Elasticsearch url (can be string if same url is used for all types).
                    //$HISTORY['url'] = [
                    // 'uint' => 'http://localhost:9200',
                    // 'text' => 'http://localhost:9200'
                    //];
                    // Value types stored in Elasticsearch.
                    //$HISTORY['types'] = ['uint', 'text'];
                    
                    // Used for SAML authentication.
                    // Uncomment to override the default paths to SP private key, SP and IdP X.509 certificates, and to set extra settings.
                    //$SSO['SP_KEY'] = 'conf/certs/sp.key';
                    //$SSO['SP_CERT'] = 'conf/certs/sp.crt';
                    //$SSO['IDP_CERT'] = 'conf/certs/idp.crt';
                    //$SSO['SETTINGS'] = [];

                    Comment

                    • ksydalack
                      Junior Member
                      • Jan 2022
                      • 4

                      #11
                      Was there ever a solution to this?

                      Comment

                      • grohlfer
                        Junior Member
                        • Apr 2024
                        • 7

                        #12
                        Hi folks!
                        I have just made a fresh install, having downloaded and installed Zabbix on Debian 11 (Bullseye), according to the recipe found on the Zabbix website:
                        https://www.zabbix.com/download?zabb...debian&os_vers ion=11&components=server_frontend_agent&db=mysql&w s=apache

                        After following all the steps (twice!) I keep getting the same annoying error message:
                        The server does not match Zabbix database. Current database version (mandatory/optional): 06040000/06040026. Required mandatory version: 05000000.

                        What am I missing here?

                        I know you'd ask, so here's how my /etc/zabbix/web/zabbix.conf.php file looks like:
                        Code:
                        <?php
                        // Zabbix GUI configuration file.
                        
                        $DB['TYPE'] = 'MYSQL';
                        $DB['SERVER'] = 'localhost';
                        $DB['PORT'] = '0';
                        $DB['DATABASE'] = 'zabbix';
                        $DB['USER'] = 'zabbix';
                        $DB['PASSWORD'] = 'XXXXXX';
                        
                        // Schema name. Used for PostgreSQL.
                        $DB['SCHEMA'] = '';
                        
                        // Used for TLS connection.
                        $DB['ENCRYPTION'] = false;
                        $DB['KEY_FILE'] = '';
                        $DB['CERT_FILE'] = '';
                        $DB['CA_FILE'] = '';
                        $DB['VERIFY_HOST'] = false;
                        $DB['CIPHER_LIST'] = '';
                        
                        // Vault configuration. Used if database credentials are stored in Vault secrets manager.
                        $DB['VAULT'] = '';
                        $DB['VAULT_URL'] = '';
                        $DB['VAULT_DB_PATH'] = '';
                        $DB['VAULT_TOKEN'] = '';
                        $DB['VAULT_CERT_FILE'] = '';
                        $DB['VAULT_KEY_FILE'] = '';
                        // Uncomment to bypass local caching of credentials.
                        // $DB['VAULT_CACHE'] = true;
                        
                        // Use IEEE754 compatible value range for 64-bit Numeric (float) history values.
                        // This option is enabled by default for new Zabbix installations.
                        // For upgraded installations, please read database upgrade notes before enabling this option.
                        $DB['DOUBLE_IEEE754'] = true;
                        
                        // Uncomment and set to desired values to override Zabbix hostname/IP and port.
                        // $ZBX_SERVER = '';
                        // $ZBX_SERVER_PORT = '';
                        
                        $ZBX_SERVER_NAME = 'ZabbixHome';
                        
                        $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
                        
                        // Uncomment this block only if you are using Elasticsearch.
                        // Elasticsearch url (can be string if same url is used for all types).
                        //$HISTORY['url'] = [
                        // 'uint' => 'http://localhost:9200',
                        // 'text' => 'http://localhost:9200'
                        //];
                        // Value types stored in Elasticsearch.
                        //$HISTORY['types'] = ['uint', 'text'];
                        
                        // Used for SAML authentication.
                        // Uncomment to override the default paths to SP private key, SP and IdP X.509 certificates, and to set extra settings.
                        //$SSO['SP_KEY'] = 'conf/certs/sp.key';
                        //$SSO['SP_CERT'] = 'conf/certs/sp.crt';
                        //$SSO['IDP_CERT'] = 'conf/certs/idp.crt';
                        //$SSO['SETTINGS'] = [];
                        ​

                        also, here's the content of /var/log/zabbix/zabbix_server.log file:
                        Code:
                        32203:20240331:192831.831 Starting Zabbix Server. Zabbix 5.0.8 (revision d3c78f993a).
                        32203:20240331:192831.831 ****** Enabled features ******
                        32203:20240331:192831.831 SNMP monitoring: YES
                        32203:20240331:192831.832 IPMI monitoring: YES
                        32203:20240331:192831.832 Web monitoring: YES
                        32203:20240331:192831.832 VMware monitoring: YES
                        32203:20240331:192831.832 SMTP authentication: YES
                        32203:20240331:192831.832 ODBC: YES
                        32203:20240331:192831.832 SSH support: YES
                        32203:20240331:192831.832 IPv6 support: YES
                        32203:20240331:192831.832 TLS support: YES
                        32203:20240331:192831.832 ******************************
                        32203:20240331:192831.832 using configuration file: /etc/zabbix/zabbix_server.conf
                        32203:20240331:192831.842 The server does not match Zabbix database. Current database version (mandatory/optional): 06040000/06040026. Required mandatory version: 05000000.
                        32337:20240331:193334.571 Starting Zabbix Server. Zabbix 5.0.8 (revision d3c78f993a).
                        32337:20240331:193334.571 ****** Enabled features ******
                        32337:20240331:193334.571 SNMP monitoring: YES
                        32337:20240331:193334.571 IPMI monitoring: YES
                        32337:20240331:193334.571 Web monitoring: YES
                        32337:20240331:193334.571 VMware monitoring: YES
                        32337:20240331:193334.571 SMTP authentication: YES
                        32337:20240331:193334.571 ODBC: YES
                        32337:20240331:193334.571 SSH support: YES
                        32337:20240331:193334.572 IPv6 support: YES
                        32337:20240331:193334.572 TLS support: YES
                        32337:20240331:193334.572 ******************************
                        32337:20240331:193334.572 using configuration file: /etc/zabbix/zabbix_server.conf
                        32337:20240331:193334.583 The server does not match Zabbix database. Current database version (mandatory/optional): 06040000/06040026. Required mandatory version: 05000000.
                        ​
                        I also googled for some help, but apart from a guy that recommended to update zabbix database table dbversion directly (
                        Code:
                        update dbversion set mandatory=06040000,optional=06040000;
                        ), I had no luck!
                        Besides, updating dbversion does solve the problem, but creates others (you can't log in anymore).

                        Any ideas?
                        Thanks!
                        Grohlfer

                        Comment

                        • cyber
                          Senior Member
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Dec 2006
                          • 4832

                          #13
                          Do not ever to manual update to dbversion...

                          You have some mess there with repos. You can clearly see "Starting Zabbix Server. Zabbix 5.0.8" ... So it definitely did not install 6.4 server for you, but 5.0.8 in some reason... if you resolve that issue, then it might work also... Go over all the defined repos and see, why it wants to install that old one... which is not even latest in that branch... During install, it also had to say something about those versions...

                          Comment

                          • grohlfer
                            Junior Member
                            • Apr 2024
                            • 7

                            #14
                            Hummm, then the Zabbix team should do some housekeeping in the download section, since all I did was to observe the steps available there...
                            Anyway, I'll try to manually download the 6.4 server.
                            Thank you!

                            Comment

                            • grohlfer
                              Junior Member
                              • Apr 2024
                              • 7

                              #15

                              Yeah, I've confirmed now that when downloading and installing from the Zabbix official packages it is installing server version 5.0.8.
                              Any ideas on how can I force installation of version 6.4?
                              Code:
                               apt install zabbix-server-mysql
                              Reading package lists... Done
                              Building dependency tree... Done
                              Reading state information... Done
                              [B]zabbix-server-mysql is already the newest version (1:5.0.8+dfsg-1)[/B].
                              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

                              Comment

                              Working...