Download 16 Appendices

Transcript
9 Recipes for monitoring [Zabbix]
12/5/13, 2:12 PM
9 Recipes for monitoring
General
Monitoring server availability
At least three methods (or combination of all methods) may be used in order to monitor availability of a server.
ICMP ping (“icmpping” key)
“zabbix[host,agent,available]” item
trigger function nodata() for monitoring the availability of hosts that use active checks only
Sending alerts via WinPopUps
WinPopUps maybe very useful if you're running Windows OS and want to get quick notification from Zabbix. It
could be good addition for email-based alert messages. Details about enabling of WinPopUps can be found at
http://www.zabbix.com/forum/showthread.php?t=2147
[http://www.zabbix.com/forum/showthread.php?
t=2147].
Monitoring specific applications
AS/400
IBM AS/400 platform can be monitored using SNMP. More information is available at http://publibb.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg244504.html?Open
[http://publibb.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg244504.html?Open].
MySQL
Several user parameters can be used for the monitoring of MySQL in the agent configuration file:
/usr/local/etc/zabbix_agentd.conf
### Set of parameters for monitoring MySQL server (v3.23.42 and later)
### Change -u and add -p if required
#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f2 -d" "
#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f2 -d" "
#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f2 -d" "
#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f2 -d" "
#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"|cut -f2 -d" "
#UserParameter=mysql.version,mysql -V
mysql.ping
Check whether MySQL is alive.
Result: 0 - not started 1 - alive
mysql.uptime
Number of seconds MySQL is running.
https://www.zabbix.com/documentation/2.0/manual/appendix/recipes
Page 1 of 3