Суть проблемы - не запускается скрипт после перезапуска машины. ЧЯДНТ?
>cat /usr/local/etc/rc.d/zabbix_agentd.sh
#!/bin/sh
name="zabbix_agentd"
command="/usr/local/bin/zabbix_agentd"
command_args=""
pid_file="/var/run/zabbix/zabbix_agentd.pid"
case "$1" in
start)
echo "Starting ${name}."
sudo -u zabbix ${command} ${command_args}
;;
stop)
echo "Stoping ${name}."
if [ -r $pid_file ]
then
kill `cat $pid_file`
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
esac
>stat /usr/local/etc/rc.d/zabbix_agentd.sh
77 55241 -rwxr-xr-x 1 root wheel 239511 405 "Nov 27 16:14:05 2008" "Nov 27 15:33:24 2008" "Nov 27 15:33:24 2008" "Nov 2715:33:24 2008" 4096 4 0 /usr/local/etc/rc.d/zabbix_agentd.sh
>cat /etc/rc.conf | grep zabbix
zabbix_agentd_enable="YES"