summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-02-01 07:38:54 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-02-01 07:38:54 +0000
commit996d2edfdb0047e72763fa0eed6b0bacd325031d (patch)
tree71da0562b50dc292757790a752cc175c11886766 /misc
parent6abc1225a3ce26532620490876c2bfe55799198d (diff)
downloadzabbix-996d2edfdb0047e72763fa0eed6b0bacd325031d.tar.gz
zabbix-996d2edfdb0047e72763fa0eed6b0bacd325031d.tar.xz
zabbix-996d2edfdb0047e72763fa0eed6b0bacd325031d.zip
- added #include <time.h> into db.h (Alexei)
- added support for connection to MySQL via Unix socket (Alexei) - configure to find PostgreSQL in /usr/local/lib and /usr/local/include/pgsql (Alexei) - added set of user-defined parameters for monitoring MySQL servers. See misc/conf/zabbix_agent(d).conf (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@306 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'misc')
-rw-r--r--misc/conf/zabbix_agentd.conf10
-rw-r--r--misc/conf/zabbix_suckerd.conf4
-rw-r--r--misc/conf/zabbix_trapper.conf4
-rw-r--r--misc/conf/zabbix_trapperd.conf4
4 files changed, 22 insertions, 0 deletions
diff --git a/misc/conf/zabbix_agentd.conf b/misc/conf/zabbix_agentd.conf
index 2531a190..1efd02aa 100644
--- a/misc/conf/zabbix_agentd.conf
+++ b/misc/conf/zabbix_agentd.conf
@@ -24,3 +24,13 @@ DebugLevel=2
# Note that shell command should return numeric value
#UserParameter=system[test],who|wc -l
+
+### Set of parameter for monitoring MySQL server (v3.23.42 and later)
+### Change -u<username> and add -p<password> if required
+
+#UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l
+#UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
+#UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
+#UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
+#UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
+#UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":"
diff --git a/misc/conf/zabbix_suckerd.conf b/misc/conf/zabbix_suckerd.conf
index 6e5cbcb8..d8e77825 100644
--- a/misc/conf/zabbix_suckerd.conf
+++ b/misc/conf/zabbix_suckerd.conf
@@ -36,3 +36,7 @@ DBUser=zabbix
# Comment this line if no password used
#DBPassword=<password>
+
+# Connect to MySQL using Unix socket?
+
+#DBSocket=/tmp/mysql.sock
diff --git a/misc/conf/zabbix_trapper.conf b/misc/conf/zabbix_trapper.conf
index 3692d7d6..95f25a37 100644
--- a/misc/conf/zabbix_trapper.conf
+++ b/misc/conf/zabbix_trapper.conf
@@ -23,3 +23,7 @@ DBUser=zabbix
# Comment this line if no password used
#DBPassword=<password>
+
+# Connect to MySQL usig Unix socket?
+
+#DBSocket=/tmp/mysql.sock
diff --git a/misc/conf/zabbix_trapperd.conf b/misc/conf/zabbix_trapperd.conf
index 8a8f7adb..6003e56b 100644
--- a/misc/conf/zabbix_trapperd.conf
+++ b/misc/conf/zabbix_trapperd.conf
@@ -28,3 +28,7 @@ DBUser=zabbix
# Comment this line if no password used
#DBPassword=<password>
+
+# Connect to MySQL using Unix socket?
+
+#DBSocket=/tmp/mysql.sock