GENERAL RECIPES
Monitoring of server's availability
Two methods (or combination of both methods) may be used in order to monitor availability of a server.
- ICMP ping (Key "icmpping")
- Key "status"
Use of both email and SMS notification for a single user
ZABBIX can be configured to send notifications using different medias depending of priority of
a trigger.
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
https://sourceforge.net/forum/message.php?msg_id=2721722.
MONITORING OF SPECIFIC APPLICATIONS
AS/400
IBM AS/400 platform can be monitored using SNMP. More information is available at http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg244504.html?Open.
MySQL
Configuration file misc/conf/zabbix_agentd.conf contains list of parameters that can be used for monitoring of MySQL.
### Set of parameter 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 -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”:”
#UserParameter=version[mysql],mysql -V
- mysql[ping]
Check, if MySQL is alive
Result: 0 - not started
1 - alive
- mysql[uptime]
Number of seconds MySQL is running
- mysql[threads]
Number of MySQL threads
- mysql[questions]
Number of processed queries
- mysql[slowqueries]
Number of slow queries
- mysql[qps]
Queries per second
- mysql[version]
Version of MySQL
Example: mysql Ver 11.16 Distrib 3.23.49, for pc-linux-gnu (i686)
Mikrotik routers
Use SNMP agent provided by Mikrotik. See http://www.mikrotik.com for more information.
WIN32
Use ZABBIX W32 agent included (pre-compiled) into ZABBIX distribution.
Novell
Use MRTG Extension Program for NetWare Server (MRTGEXT.NLM) agent for Novell. The agent is compatible with protocol used by ZABBIX. It is available
from http://forge.novell.com/modules/xfmod/project/?mrtgext.
Items have to be configured of type Zabbix Agent and must have keys according to the MRTGEXT documentation.
For example:
- UTIL1
1 minute average CPU utilization
- CONNMAX
Max licensed connections used
- VFKSys
bytes free on volume Sys:
Full list of parameter supported by the agent can be found in readme.txt, which is part of the software.
Tuxedo
Tuxedo command line utilities tmadmin and qmadmin can be used in definition of a UserParameter in order to return per server/service/queue performance counters and availability of Tuxedo resources.
Informix
Standard Informix utility onstat can be used for monitoring of virtually every aspect of Informix database. Also, ZABBIX can retrieve
information provided by Informix SNMP agent.
INTEGRATION
HP OpenView
ZABBIX can be configured to send messages to OpenView server. The following steps must be performed:
- 1. Define new media
The media will execute a script which will send required information to OpenView
- 2. Define new user
The user has to be linked with the media.
- 3. Configure actions
Configure actions to send all (or selected) trigger status changes to the user.
- 4. Write media script
The script will have the following logic. If trigger is ON, then execute OpenView
command opcmsg -id application=<application> msg_grp=<msg_grp> object=<object> msg_text=<text>. The
command will return unique message ID which has to be stored somewhere, preferrably in a new table of ZABBIX database. If trigger
is OFF then opcmack <message id> has to be executed with message ID retrieved from the database.
Refer to OpenView official documentation for more details about opcmsg and opcmack. The media script is not given here.
|