Ad Widget

Collapse

Zabbix server is not running / fe_sendauth: no password supplied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • funkytwig
    Member
    • Jun 2016
    • 37

    #1

    Zabbix server is not running / fe_sendauth: no password supplied

    Had a look on the forum and on the web generally but no joy. I have setup zabbix with postgressql and the initial install went fairly well. I had to manually add /etc/zabbix/zabbiz.conf.php and I did this. I then had to change the permissions to get web install to finish (did a+rw for now but will change later).

    I then did 'service zabbix-server start' but when I looked at the web interface I cot the message at the bottom 'Zabbix server is not running' so I looked in the server logfile and found
    11963:20171211:214329.452 [Z3001] connection to database 'zabbix' failed: [0] fe_sendauth: no password supplied

    /etc/zabbix/zabbix.conf.php is:
    <?php
    // Zabbix GUI configuration file.
    global $DB;

    $DB['TYPE'] = 'POSTGRESQL';
    $DB['SERVER'] = 'localhost';
    $DB['PORT'] = '0';
    $DB['DATABASE'] = 'zabbix';
    $DB['USER'] = 'zabbix';
    $DB['PASSWORD'] = '<pass>';

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

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

    $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

    Ben
  • funkytwig
    Member
    • Jun 2016
    • 37

    #2
    PS

    $ PGPASSWORD=<pass> psql -d zabbix -U zabbix

    loges me into to db fine.

    Comment

    • funkytwig
      Member
      • Jun 2016
      • 37

      #3
      Should I maybe use mysql instead? Shame zabbix does not work with postgress.

      Comment

      • wawoodwa
        Junior Member
        • Mar 2018
        • 1

        #4
        I had the same problem. You need to edit this file:

        /etc/zabbix/zabbix_server.conf

        You will see the DBPassword= line is commented out. Uncomment it and add the password <pass> there.

        Do a sudo service zabbix-server restart

        It worked for me. But then another problem...I checked the log and saw many of these errors:

        Cannot adopt OID in ...

        To resolve that, had to do a

        sudo apt install snmp-mibs-downloader

        A restart and I was underway.

        Good luck!

        Comment

        Working...