Ad Widget

Collapse

error after sql patched update for v2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beeloo
    Member
    • Nov 2010
    • 62

    #16
    My question is, I never specify using root to connect the database in the zabbix_server.conf, why it keep saying it try to connect using 'root@localhost'? Is there another file that I need to look into?

    Comment

    • beeloo
      Member
      • Nov 2010
      • 62

      #17
      I noticed in /etc/init.d/zabbix_server the following:

      # base zabbix dir
      BASEDIR=/usr/local/zabbix
      # PID file
      PIDFILE=/tmp/zabbix_server.pid
      # binary file
      ZABBIX_SUCKERD=$BASEDIR/sbin/zabbix_server



      Should I change it?

      Comment

      • beeloo
        Member
        • Nov 2010
        • 62

        #18
        I did. But it still not work.

        I just realized I was using the old /etc/init.d/zabbix_server (copied from the 1.8.14 system). I copied the 2.0.1 one from source and I have below error:


        [root@zabbix3 init.d]# /etc/init.d/zabbix-server start
        -bash: /etc/init.d/zabbix-server: /sbin/runscript: bad interpreter: No such file or directory


        [root@zabbix3 init.d]# cat /etc/init.d/zabbix-server
        #!/sbin/runscript
        #
        # Zabbix server start/stop script.
        #
        # Written by A. Tophofen
        # Modified for Zabbix 2.0.0
        # May 2012, Zabbix SIA

        NAME=zabbix_server
        PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin
        DAEMON=/usr/local/sbin/${NAME}
        DESC="Zabbix server"
        PID=/tmp/$NAME.pid

        opts="${opts} reload"

        depend() {
        need net
        }

        start() {
        ebegin "Starting $DESC: $NAME"
        start-stop-daemon --start --pidfile $PID \
        --exec $DAEMON
        eend
        }
        stop() {
        ebegin "Stopping $DESC: $NAME"
        start-stop-daemon --stop --pidfile $PID \
        --exec $DAEMON
        eend
        }

        Comment

        • beeloo
          Member
          • Nov 2010
          • 62

          #19
          I would like to try below command to compile from source. Is it correct?


          ./configure -enable-server -prefix=/usr/local/zabbix -with-mysql -with-net-snmp -with-libcurl -with-openipmi --sysconfdir=/etc/zabbix

          Comment

          Working...