Ad Widget

Collapse

error when trying to star zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixtester
    Junior Member
    • Nov 2007
    • 3

    #1

    error when trying to star zabbix

    16980:20071130:111119 Failed to connect to database: Error: Access denied for user 'zabbix'@'localhost' (using password: NO) [1045]
    18223:20071130:111722 Starting zabbix_server. ZABBIX 1.4.2.


    However when I do
    [root@syslog zabbix]# mysql -u zabbix -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 14610 to server version: 5.0.27

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.




    My zabbix conf file

    ** ZABBIX
    ** Copyright (C) 2000-2005 SIA Zabbix
    **
    ** This program is free software; you can redistribute it and/or modify
    ** it under the terms of the GNU General Public License as published by
    ** the Free Software Foundation; either version 2 of the License, or
    ** (at your option) any later version.
    **
    ** This program is distributed in the hope that it will be useful,
    ** but WITHOUT ANY WARRANTY; without even the implied warranty of
    ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    ** GNU General Public License for more details.
    **
    ** You should have received a copy of the GNU General Public License
    ** along with this program; if not, write to the Free Software
    ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    **/

    global $DB_TYPE, $DB_SERVER, $DB_PORT, $DB_DATABASE, $DB_USER, $DB_PASSWORD, $IMAGE_FORMAT_DEFAULT;

    $DB_TYPE = "MYSQL";
    $DB_SERVER = "localhost";
    $DB_PORT = "3306";
    $DB_DATABASE = "zabbix";
    $DB_USER = "zabbix";
    $DB_PASSWORD = "zabbix";

    $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
    ?>
    ~
    ~
    ~
    ~

    mysql>


    Please help

    Thanks
    Last edited by zabbixtester; 30-11-2007, 13:40.
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    Have you entered the same database informations in /etc/zabbix/zabbix_server.conf?
    It looks like the settings you have pasted only are from the webinterface.

    Comment

    • zabbixtester
      Junior Member
      • Nov 2007
      • 3

      #3
      I got it to work

      I did not edit zabbix_server.conf. I edited the file and I get


      [root@syslog zabbix]# /etc/init.d/zabbix start
      Starting zabbix server: [ OK ]
      [root@syslog zabbix]# tail -f /var/log/zabbix/zabbix_server.log
      18381:20071130:135554 server #17 started [HTTP Poller]
      18355:20071130:135554 server #0 started [Watchdog]
      18377:20071130:135555 Deleted 0 records from history and trends
      18359:20071130:135555 server #2 started [Poller. SNMP:ON]
      18362:20071130:135555 server #5 started [Poller. SNMP:ON]
      18358:20071130:135555 server #1 started [Poller. SNMP:ON]
      18360:20071130:135555 server #3 started [Poller. SNMP:ON]
      18361:20071130:135555 server #4 started [Poller. SNMP:ON]
      18379:20071130:135555 server #15 started [Poller for unreachable hosts. SNMP:ON]
      18382:20071130:135555 server #18 started [Discoverer. SNMP:ON]


      One last question, How would I add a host for pinging and then create a report for it.

      Regards,

      Comment

      • Tenzer
        Senior Member
        • Nov 2007
        • 316

        #4
        Try to read the documentation, these things are explained in there...

        Comment

        Working...