aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/zabbix/scripts
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-30 16:06:39 +0800
committeredwin <edwin@FreeBSD.org>2003-08-30 16:06:39 +0800
commit38834f7e82ffd35208695c02522a21c079032d0a (patch)
treea422cdc98c1e118c97315b9e9edf0c27ebaa621c /net-mgmt/zabbix/scripts
parentdef50cc8f5351bf2c2ce082db81d7f50c4205c80 (diff)
downloadfreebsd-ports-gnome-38834f7e82ffd35208695c02522a21c079032d0a.tar.gz
freebsd-ports-gnome-38834f7e82ffd35208695c02522a21c079032d0a.tar.zst
freebsd-ports-gnome-38834f7e82ffd35208695c02522a21c079032d0a.zip
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