[nycbug-talk] (RESOLVED) Zabbix on FreeBSD 6.0 Start Problem
Kevin Reiter
tux at penguinnetwerx.net
Tue May 23 23:05:33 EDT 2006
Kevin Reiter wrote:
> All,
>
> I finally got around to playing with Zabbix, and the only issue I've had
> sofar is the dang thing won't start :)
>
> root at chronos [~]# /usr/local/etc/rc.d/zabbix_suckerd.sh start
> /usr/local/etc/rc.d/zabbix_suckerd.sh: WARNING: $zabbix_suckerd_enable
> is not set properly - see rc.conf(5).
>
> root at chronos [~]# cat /usr/local/etc/rc.d/zabbix_suckerd.sh
> #!/bin/sh
>
> . /etc/rc.subr
>
> name="zabbix_suckerd"
> rcvar=`set_rcvar`
> command="${prefix}/bin/${name}"
> required_files="/usr/local/etc/zabbix/zabbix_suckerd.conf"
>
> run_rc_command "$1"
>
I found another page from Google using different keywords and came
across what seemed like a Makefile from 6.1, so I stole it and added 2
lines to it, and that does the trick. I created
/usr/local/etc/rc.d/zabbix.sh and filled it with the following:
root at chronos [/usr/local/etc/rc.d]# cat zabbix.sh
#!/bin/sh
case "${1}" in
start)
echo -n "Starting Zabbix.."
echo ''
zabbix_suckerd
zabbix_trapperd
zabbix_agentd
;;
stop)
killall zabbix_suckerd
killall zabbix_trapperd
killall zabbix_agentd
;;
*)
echo Usage: `basename ${0}` "{start|stop}"
;;
esac
and now it works:
root at chronos [/usr/local/etc/rc.d]# ./zabbix.sh start
Starting Zabbix..
root at chronos [/usr/local/etc/rc.d]# ps wax | grep zabbix
8319 ?? S 0:00.10 zabbix_suckerd: housekeeper [sleeping for 1
hour(s)] (zabbix_suckerd)
8795 ?? S 0:00.00 zabbix_trapperd: main process (zabbix_trapperd)
9234 ?? SN 0:00.00 zabbix_agentd: main process (zabbix_agentd)
9299 ?? S 0:00.00 zabbix_trapperd: waiting for connection
(zabbix_trapperd)
9317 ?? S 0:00.00 zabbix_trapperd: waiting for connection
(zabbix_trapperd)
9547 ?? S 0:00.00 zabbix_trapperd: waiting for connection
(zabbix_trapperd)
9582 ?? S 0:00.00 zabbix_trapperd: waiting for connection
(zabbix_trapperd)
9708 ?? S 0:00.00 zabbix_trapperd: waiting for connection
(zabbix_trapperd)
9727 ?? S 0:00.06 zabbix_suckerd: sender [sleeping for 30
seconds] (zabbix_suckerd)
9926 ?? S 0:00.06 zabbix_suckerd: sleeping for 30 sec
(zabbix_suckerd)
10055 ?? S 0:00.06 zabbix_suckerd: pinger [sleeping for 60
seconds] (zabbix_suckerd)
10147 ?? S 0:00.06 zabbix_suckerd: sucker [sleeping for 60
seconds] (zabbix_suckerd)
10913 ?? SN 0:00.00 zabbix_agentd: waiting for connection.
Requests [0] (zabbix_agentd)
11217 ?? SN 0:00.00 zabbix_agentd: waiting for connection.
Requests [0] (zabbix_agentd)
11554 ?? SN 0:00.00 zabbix_agentd: waiting for connection.
Requests [0] (zabbix_agentd)
11746 ?? SN 0:00.00 zabbix_agentd: waiting for connection.
Requests [0] (zabbix_agentd)
11809 ?? SN 0:00.00 zabbix_agentd: waiting for connection.
Requests [0] (zabbix_agentd)
More information about the talk
mailing list