aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/install_zabbix.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinstall_zabbix.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/install_zabbix.sh b/install_zabbix.sh
new file mode 100755
index 0000000..5fe02c5
--- /dev/null
+++ b/install_zabbix.sh
@@ -0,0 +1,33 @@
1sudo apt-get install m4 gcc make autoconf automake gettext libtool
2sudo useradd -r -l zabbix
3if [ ! -e zabbix-1.8.5.tar.gz ]
4then
5 wget http://infinitegrid.org/zabbix-1.8.5.tar.gz
6fi
7if [ ! -e e zabbix-1.8.5 ]
8then
9 tar xzf zabbix-1.8.5.tar.gz
10fi
11cd zabbix-1.8.5
12./configure --enable-agent
13make
14sudo make install
15sudo /sbin/ldconfig
16sudo mkdir /etc/zabbix
17sudo cp misc/conf/* /etc/zabbix
18# Edit those conf files to suit.
19sudo cat > /etc/init/zabbix-agent.conf << zzzzEOFzzzz
20 # zabbix-agent - Start zabbix agent
21 description "Zabbix Agent"
22 author "S. CANCHON"
23 start on runlevel [2345]
24 stop on runlevel [016]
25 respawn
26 expect daemon
27 exec /usr/local/sbin/zabbix_agentd
28zzzzEOFzzzz
29
30sudo service zabbix_agent start
31# Copy one of the /etc/init.d links to upstart thingy
32sudo update-rc.d zabbix-agent defaults
33