diff options
Diffstat (limited to 'net-mgmt/zabbix/scripts')
-rw-r--r-- | net-mgmt/zabbix/scripts/dbsetup.sh | 5 | ||||
-rw-r--r-- | net-mgmt/zabbix/scripts/zabbix-agent.sh.sample | 14 | ||||
-rw-r--r-- | net-mgmt/zabbix/scripts/zabbix.sh.sample | 16 |
3 files changed, 35 insertions, 0 deletions
diff --git a/net-mgmt/zabbix/scripts/dbsetup.sh b/net-mgmt/zabbix/scripts/dbsetup.sh new file mode 100644 index 000000000000..4ae8e4381893 --- /dev/null +++ b/net-mgmt/zabbix/scripts/dbsetup.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "create database zabbix;" | mysql +cat mysql/schema.sql | mysql zabbix +cat data/data.sql | mysql zabbix diff --git a/net-mgmt/zabbix/scripts/zabbix-agent.sh.sample b/net-mgmt/zabbix/scripts/zabbix-agent.sh.sample new file mode 100644 index 000000000000..e5728bd24051 --- /dev/null +++ b/net-mgmt/zabbix/scripts/zabbix-agent.sh.sample @@ -0,0 +1,14 @@ +#!/bin/sh + +case "${1}" in + start) + echo -n "zabbix-agent " + zabbix_agentd + ;; + stop) + killall zabbix_agentd + ;; + *) + echo Usage: `basename ${0}` "{start|stop}" + ;; +esac diff --git a/net-mgmt/zabbix/scripts/zabbix.sh.sample b/net-mgmt/zabbix/scripts/zabbix.sh.sample new file mode 100644 index 000000000000..58c0529b4099 --- /dev/null +++ b/net-mgmt/zabbix/scripts/zabbix.sh.sample @@ -0,0 +1,16 @@ +#!/bin/sh + +case "${1}" in + start) + echo -n "zabbix " + zabbix_suckerd + zabbix_trapperd + ;; + stop) + killall zabbix_suckerd + killall zabbix_trapperd + ;; + *) + echo Usage: `basename ${0}` "{start|stop}" + ;; +esac |