PDA

View Full Version : Server status not running


Nikolay
28-03-2005, 04:58
Hi all

First time installing Zabbix and whent very smooth folowing the instructions.

I'm using Fedora 3 with all updates , I coudn't understand the Inetd.conf entry and I'm running Zabbix_server and Zabbix_agentd from the console as root.
PS shows them and the pid and log files r there but when I log to web gui, it reports server not running .

Can any1 clarify this inetd.conf for fedora I have tried chkconfig to add service .

Sorry but realy new to Linux .

Nikolay

dmz
11-06-2005, 22:16
I noticed in the php code for the web interface that it does a local ps check for the serverd. So if your apache (like me) is not on the same server as the server process...

I was surprised to not have that be an item in the database, that way it could know the status & statistics of every server.

Oh well.

dmz

brodson
05-07-2005, 15:57
Here is a startup script for zabbix_server. I can also provide ones that I have built for the other zabbix process on alpha 11. It works on my box, but I have not fully tested it -- USE AT YOUR OWN RISK.

#!/bin/bash

# Init file for zabbix_server
#
# chkconfig: - 95 95
# description: Zabbix Network Management System Server Daemon
#
# processname: /usr/local/bin/zabbix_server
# config: /etc/zabbix/zabbix_server.conf
# pidfile: /var/tmp/zabbix_server.pid
#
# source function library
. /etc/init.d/functions

OPTIONS=""
RETVAL=0
prog="zabbix_server"

start() {
echo -n $"Starting $prog: "
daemon /usr/local/bin/zabbix_server $OPTIONS
RETVAL=$?
echo
touch /var/lock/subsys/zabbix_server
return $RETVAL
}

stop() {
echo -n $"Stopping $prog: "
killproc /usr/local/bin/zabbix_server
RETVAL=$?
echo
rm -f /var/lock/subsys/zabbix_server
rm -f /var/tmp/zabbix_server.pid
return $RETVAL
}

reload(){
stop
sleep 3
start
}

restart(){
stop
sleep 3
start
}

condrestart(){
[ -e /var/lock/subsys/zabbix_server ] && restart
return 0
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
condrestart)
condrestart
;;
status)
status zabbix_server
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
RETVAL=1
esac

exit $RETVAL

INSTRUCTIONS FOR USE:
1. Create the file /etc/rc.d/init.d/zabbix_server and copy the above code into it.
2. Enter the command "server zabbix_server reload". The script may indicate that stopping failed, but the start should show "OK"
3. To start up the service on boot, enter "chkconfig zabbix_server on"

You should be good to go.

I would verify that all threads are running -- on mine (small installation), I see about 10 threads when the service is running, though this may vary based upon your config settings.

Hope this helps.

Steve