PDA

View Full Version : autostart zabbix_agentd for Linux


BusteR81
15-05-2007, 05:44
Guys

hw do u implement and autostart /zabbix/misc/init.d/redhat/zabbix_agentd 4 a CentOS 4.4 system?? I wanna do this in case my system crash and autorestart itself.

Thanks

Rudolf
15-05-2007, 15:22
On Fedora 5/6 systems I use the chkconfig command to add it to the startup scripts.
On older zabbix versions I compiled myself, I added a line in /etc/rc.local:
# ruedi 26.06.06 start zabbix agent und server
rm -f /tmp/zabbix_agentd.pid
rm -f /tmp/zabbix_server.pid
/usr/local/bin/zabbix_agentd
/usr/local/bin/zabbix_server

I had to make sure the pid files are deleted before running new servers and agents, that was not always the case (at least in older zabbix versions).