summaryrefslogtreecommitdiff
path: root/net-mgmt/zabbix/scripts
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-30 08:06:39 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-30 08:06:39 +0000
commitd7af773d2622ec79618180715233b8ee9506aa64 (patch)
treeee78d372cffc4f52108f7db583957d6ef3e24f11 /net-mgmt/zabbix/scripts
parentNew port: net/zabbix - advanced network monitoring system (diff)
New port: net/zabbix - advanced network monitoring system
Zabbix is software for application and network monitoring. Zabbix supports both polling and trapping techniques to collect data from monitored hosts. Flexible notification mechanism allows easy and quckly configure email notifications for pre-defined events. Zabbix is freely available under the terms of the GNU General Public License (GPL). PR: ports/54565 Submitted by: Sergey Akifyev <asa@gascom.ru>
Diffstat (limited to 'net-mgmt/zabbix/scripts')
-rw-r--r--net-mgmt/zabbix/scripts/dbsetup.sh5
-rw-r--r--net-mgmt/zabbix/scripts/zabbix-agent.sh.sample14
-rw-r--r--net-mgmt/zabbix/scripts/zabbix.sh.sample16
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