Hello,
I am new in Zabbix. And now I cant start Zabbix_Server
This is what I get in my command:
www-1:/etc/init.d# ./zabbix_agent start
Starting Zabbix agent: zabbix_agentd
www-1:/etc/init.d# ./Zabbix_Server start
sh-3.1#
And I cant find any problems in my logs. I even restart Debian, and still wont restart/start
here is my script:
#! /bin/sh
### BEGIN INIT INFO
# Provides: zabbix-server
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Start zabbix-server daemon
### END INIT INFO
DAEMON=/usr/local/sbin/zabbix_server
NAME=zabbix_server
DESC="Zabbix Server"
PID=/var/run/zabbix_server/$NAME.pid
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
rm -f $PID
echo "Starting $DESC: $NAME"
start-stop-daemon --oknodo --start --pidfile $PID \
--exec $DAEMON < /dev/null &> /dev/null
;;
stop)
echo "Stopping $DESC: $NAME"
start-stop-daemon --oknodo --stop --exec $DAEMON
;;
restart|force-reload)
$0 stop
$0 start
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Please help!!!!
I am new in Zabbix. And now I cant start Zabbix_Server
This is what I get in my command:
www-1:/etc/init.d# ./zabbix_agent start
Starting Zabbix agent: zabbix_agentd
www-1:/etc/init.d# ./Zabbix_Server start
sh-3.1#
And I cant find any problems in my logs. I even restart Debian, and still wont restart/start
here is my script:
#! /bin/sh
### BEGIN INIT INFO
# Provides: zabbix-server
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Start zabbix-server daemon
### END INIT INFO
DAEMON=/usr/local/sbin/zabbix_server
NAME=zabbix_server
DESC="Zabbix Server"
PID=/var/run/zabbix_server/$NAME.pid
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
rm -f $PID
echo "Starting $DESC: $NAME"
start-stop-daemon --oknodo --start --pidfile $PID \
--exec $DAEMON < /dev/null &> /dev/null
;;
stop)
echo "Stopping $DESC: $NAME"
start-stop-daemon --oknodo --stop --exec $DAEMON
;;
restart|force-reload)
$0 stop
$0 start
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Please help!!!!
Comment