Ad Widget

Collapse

Ubuntu 6.10 Startup/Control/Process Monitor Scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • transitv
    Junior Member
    • Dec 2006
    • 22

    #1

    Ubuntu 6.10 Startup/Control/Process Monitor Scripts

    I'm working on setting up Zabbix Server v1.1.4 for my company running on Ubuntu 6.10. The problem is that the documentation on startup and process monitoring scripts I've found so far aren't quite polished or compiled into easy to follow instructions. To help others who may be in this situation here is the process I'm using.

    1) Unzip the attached zip file's sh scripts into the /etc/zabbix/ folder.
    2) The zabbix-agent and zabbix-server scripts will start/stop/restart the two processes (for ease of execution I created a link to these files in the /usr/bin/ folder). Make sure these are executable by everyone.
    3) Link these two files to the /etc/init.d folder using "ln -s /etc/zabbix/zabbix-agent /etc/init.d/zabbix-agent" and "ln -s /etc/zabbix/zabbix-server /etc/zabbix/zabbix-server".
    4) Run "update-rc.d zabbix-server defaults 96" to start the server at boot.
    5) Run "update-rc.d zabbix-agent defaults 97" to start the agent at boot.
    6) The zabbix-monitor-server script will make sure the server is running. I create a cron job that runs it every 5 minutes. Make sure this is executable by everyone.
    7) The zabbix-monitor-agent script will make sure the agent is running. I create a cron job that runs it every 6 minutes. Make sure this is executable by everyone.
    7) I changed my pid and log entries in the .conf files to point to /etc/... instead of /var/etc/... to make sure the pid files are removed at reboot.
    8) For easily checking the status I created the little zabbix-listps script to list any zabbix processes that are running. Make sure this is executable by everyone.
    Attached Files
Working...