Professional Documents
Culture Documents
Contacte c on nosotros | Acc eso Clientes Zabbix documentacin Zabbix 1.8 Zabbix API Zabbix manpages Zabbix Manual Zabbix Protoc ols Zabbix 1.8 Manual Zabbix 2.0 Zabbix documentacin en francs Zabbix documentacin en japons Zabbix documentacin en portugus Zabbix documentacin en ruso
zabbix.com/documentation//complete
1/109
03/06/2011
Hay varios objetivos Zabbix est tratando de lograr:
ser rec onocido Fuente Abierta herramienta de monitoreo crear un grupo Zabbix usuario, lo que ayuda a hac er el software an mejor proporcionar soporte comerc ial de alta c alidad
Esta barra de desplazamiento permite una fcil arrastrar y c ambiar el tamao de la misma. Adems, los enlac es de la izquierda permite elegir algunas predefinidas, de uso frecuente perodos de tiempo y movimiento perodo que aparecen hacia delante o hacia atrs en el tiempo. Y las fechas en el lado derec ho realmente func ionan c omo enlac es, apareciendo en un calendario y que permite fijar hora de inicio y hora final.
zabbix.com/documentation//complete
2/109
03/06/2011
Observe el enlace dinmic o / fija en la esquina inferior derec ha? Se puede utilizar para controlar si perodo de tiempo se mantiene constante c uando c ambia hora de inicio / final. Adems de las capturas de pantalla tambin se puede ver el video [http://blip.tv/file/2950510] de la utilizacin de c ontroles grfic o perodo de tiempo.
2.4.1 Mejora de la lnea de tiempo en los grficos grfic os Zabbix - o grficos - suelen mostrar el tiempo en abscisas. Y aunque esta representacin se ha mejorado en la nueva versin. La comparacin de 1.6 y 1.8:
Como puede verse, las etiquetas son ahora ms fciles de leer. En lugar de dar prioridad a un punto arbitrario en el tiempo, dependiendo de la escala grfic a, los puntos reales en el tiempo c omo el cambio de un da son prioritarias. A veces Zabbix inc luso un uso ms "legible" etiquetas:
2.4.2 Soporte de lnea de degradado en los grficos grfic os Zabbix apoyo varios estilos de lnea, y 1,8 trae uno ms - lnea de gradiente. Es ms fcil entender c mo funciona observando un ejemplo real.
zabbix.com/documentation//complete
3/109
03/06/2011
2.4.3 DejaVu fuente utilizada para los grficos DejaVu [http://dejavu-fonts.org] fuente ahora se utiliza para grficos para buscar texto agradable - y para las capac idades de Unic ode.
Usted puede incluso ver un video [http://blip.tv/file/2942525] de la edicin del mapa. Adems de que los enlac es del mapa puede tener texto opc ional para mostrar informac in arbitraria, por ejemplo los datos de ancho de banda.
zabbix.com/documentation//complete
4/109
03/06/2011
Otro cambio es la configuracin general que se traslad a la seccin de administracin para evitar Zabbix usuarios de nivel de administrador de tener ac ceso a los parmetros de configuracin global.
Hay un modo especial para la creac in de registro relac ionadas con los factores desencadenantes. Tambin inc orpora la capac idad para proporcionar los datos de prueba y probar el comportamiento de disparo. (Captura de pantalla)
2.8.2 Auditora del filtro La responsabilidad es importante en cualquier sistema con ms de un usuario (y en muchos sistemas con un solo usuario as). interfaz de Zabbix registra todas las operac iones en un registro de auditora. En la versin 1.8 ahora registros de auditora se pueden filtrar extensamente para enc ontrar exactamente los cambios que busc a.
2.8.3 Los datos ms recientes del filtro Mirando los grficos brillantes es tentadora, pero a veces la nec esidad de datos reales. ltima secc in de datos en frontend Zabbix permite ver los valores exac tos de todos los indicadores monitoreados. Ahora es posible filtrar esta pantalla de bsqueda de forma libre en c ontra de las desc ripc iones del artculo.
2.8.4 Refundido "Estatuto de los factores desenc adenantes" vista Trigger punto de vista es ampliamente utilizado para visualizar la lista de los problemas actuales, y fue posible mostrar los recientes ac ontecimientos para
zabbix.com/documentation//complete
5/109
03/06/2011
todos los problemas, limitada por c uenta de los das.
En 1.8, esta pantalla adquirida ha sido c ambiado, ofreciendo nuevas caractersticas c omo la expansin de factores individuales para mostrar sus eventos y c onfirmando todos los eventos de un disparo.
2.8.5 Otros filtros mejora Filtros en otras sec ciones de la interfaz se ha mejorado y, lo que permite obtener los datos ms fcil y ms rpidamente.
Los resultados permiten un ac ceso rpido a las entidades que se enc uentran y sus elementos:
2.11.2 c adenas Historia guardado por referenc ia En la parte superior de la interfaz, hay una historia de tipo de pan rallado, mostrar las pginas rec ientemente.
Cuando un idioma se c ambia en la interfaz, en las versiones anteriores las entradas de la historia no c ambiar el idioma, slo las nuevas entradas se agreg en el idioma correc to. Ahora cadenas de c ambiar la historia adec uadamente. 2.11.3 de paginacin para la entidad agreg listas Muchos lugares de informac in frontend Zabbix presentan c omo listas - si se trata de una lista de los ejrcitos, los elementos o factores desenc adenantes. Estas listas pueden llegar a ser muy largo en las grandes instalaciones de Zabbix, y que disminuye considerablemente frontend. Zabbix 1.8 soporta la divisin larga lista de varias pginas. contar con entrada por pgina es configurable en el perfil de usuario.
zabbix.com/documentation//complete
6/109
03/06/2011
Del lmite de registro en la accin
2.11.4 filas seleccionadas se destacan ahora La mayora de las entradas en estas listas se pueden selec cionar para realizar alguna operacin en ellos. Una pequea mejora, pero la bienvenida en el 1,8 - filas selec cionadas ahora son hilighted.
2.11.5 Capacidad para mostrar el nombre del servidor ZBX_SERVER_NAME Marco variable permite Zabbix nombre del servidor que se mostrar en la esquina superior derec ha frontend.
Tambin se utiliza en el ttulo de la pgina. 2.11.6 Ms elementos flexibles vinculados Zabbix apoya muy potente que hace que la gestin de plantillas de c onfigurac in de gran escala fc il. Las plantillas pueden ser vinculados a los anfitriones un seguimiento y determinar qu y cmo se supervisa. Aguas abajo vinc ulados elementos de Zabbix 1.8 son ms flexibles ahora - por ejemplo, es posible editar SNMP parmetros como la c adena de comunidad, o hosts permitidos para los artc ulos cazador, en los puntos que estn vinculados en las plantillas. 2.11.7 direc cin IP se c onvierte en la opc in por defecto En el formulario principal creacin, la direccin IP es ahora la opcin por defec to. 2.11.8 El modo de depuracin adicional para interfaz Sobre todo til para los desarrolladores, pero puede ser til cuando se trata de determinar el origen de un problema para los dems.
El modo de depuracin se puede habilitar en forma de grupos de usuarios. 2.11.9 Ayuda ic onos llevar el manual en lnea Oldtime usuarios Zabbix puede rec ordar la poca en que ayudar a los iconos de la interfaz de Zabbix vinculados con el manual en lnea. Con la c onversin de documentacin en lnea que de nuevo es posible, y en Zabbix 1.8 la mayor parte de estos ic onos abierta Zabbix manual en una nueva ventana o pestaa.
3 API
En la versin 1.8 en primer lugar, proporc iona Zabbix JSON-RPC [http://json-rpc.org/] API . Que ya permite realizar la mayora de los cambios de configuracin, permitiendo as que los medios de gran alcance para la compleja configurac in de gestin o automatizados. Mientras que la API en s misma no puede ser tan emoc ionante para los usuarios ocasionales, que permite la c reac in de diversas herramientas. Una de estas herramientas ya se ha creado - utilidad de lnea de comandos o Zabbix Zabcon [http://w w w .zabbix.com/w iki/doc/zabcon] .
Zabcon es especialmente emocionante para los usuarios que quieran realizar cambios poco frec uentes, a gran escala, ya que permite una fcil scripts sin c onocimientos de programacin. Zabbix gestin de los servidores sin interfaz grfica de usuario instalado tambin se espera que sea posible, y seguramente los usuarios llegar a impresionar y usos innovadores para esta herramienta. Nota: API Ac tualmente se considera que estar en un estado de avance tcnico y puede cambiar en prximas versiones.
zabbix.com/documentation//complete
7/109
03/06/2011
4.1.1.1 La mayor parte de votacin ms efic ientes
Cientos de pollers puede ser ejec utado por un mayor paralelismo y el rendimiento. El pollers no se comunican directamente con la base de datos y muy poco uso del servidor de la CPU y los recursos de memoria. 4.1.1.2 Alta de configuracin de mdulo de memoria cac h de datos memoria cac h de base de datos est habilitado de forma predeterminada y no se puede deshabilitar. La opcin de c onfiguracin StartDBSyncers se ha eliminado del servidor de Zabbix y archivos de configuracin de proxy. Un espec ial de c ontrol interno se ha introducido, ] zabbix [wcache, * para controlar la salud de este cach. 4.1.2 imgenes de la interfaz de recomprimido con pngcrush Para reducir la c antidad de datos que los usuarios tienen que recuperar del servidor web cuando se utiliza interfaz de Zabbix, todos PNG imgenes se vuelve a c omprimir el tamao ptimo. 4.1.3 Los artculos con el uso de SNMP ndice dinmic o de una conexin Zabbix soporta la monitorizac in SNMP mtric as que tienen identificadores dinmico. En la versin 1.8 ndice de resolucin y rec uperacin de datos se realiza en una sola conexin ahora, la reducc in de la carga de red y la carga de los dispositivos monitoreados.
4.2.1.3 IP apoyo a la mscara Notacin estndar de la industria mscara de red se pueden utilizar ahora en la detecc in de redes, por ejemplo, 192.168.1.0/24 . 4.2.1.4 Soporte para dispositivos de host mltiple Si un host proporciona algn servic io en mltiples direcciones IP, que sera descubierto como varios hosts en Zabbix versiones anteriores 1.8. A partir de 1.8, es posible utilizar diferentes c riterios de singularidad de algunos servicios, por ejemplo system.uname devuelto por el agente de Zabbix o cualquier OID devuelto por SNMP huspedes que puedan. 4.2.1.5 apoyo SNMPv3 Desc ubrimiento de red en Zabbix 1.8 soporta SNMPv3 c on toda la func ionalidad correspondiente. 4.2.2 Auto de registro de agentes activos Completamente nueva en Zabbix 1.8, es posible permitir que el agente activo Zabbix auto-registro, tras lo cual el servidor puede inic iar la supervisin de ellos. Esto permite agregar nuevos huspedes para el seguimiento sin necesidad de configuracin manual del servidor para cada host individual. La funcin puede ser muy til para el seguimiento automtico de los nuevos nodos Cloud. Tan pronto c omo haya un nuevo nodo en la Zabbix Cloud automticamente c omienzan la recopilacin de datos de rendimiento y disponibilidad del husped.
zabbix.com/documentation//complete
8/109
03/06/2011
5 Varios
5.1 host de mantenimiento
De ac ogida y el mantenimiento del grupo de acogida ha sido aadido a Zabbix. Los hosts que estn en mantenimiento son identificadas c omo tales en la supervisin vista desencadenantes.
Si ocurre un problema durante el mantenimiento y no se resuelve, la notificacin se genera despus del perodo de mantenimiento de los extremos. Si un elemento de registro se aade al mismo tiempo sede se enc uentra en los extremos de mantenimiento y el mantenimiento, las entradas de archivo de registro nico nuevo desde el fin del mantenimiento se reunieron.
zabbix.com/documentation//complete
9/109
03/06/2011
5.6.2 Soporte para PHP 4 se redujo
parche de ltima hora en 03/01/2008 y ltima versin c on c orrecc iones de seguridad en 07/08/2008, PHP4 no estaba recibiendo correcciones ms. Zabbix 1.8 requiere PHP 5.0 o posterior.
6 Pequeas mejoras
Llamamos a estos menores, pero para alguien una de estas podra ser el mayor c ambio en Zabbix 1.8.
Esto enviara c inco paquetes de 128 bytes al host con IP 10.10.10.10 con 300 ms de intervalo entre ellos, y el uso de 100 ms de tiempo de espera. Tema icmppingsec ha ganado todos los parmetros anteriores, y una adic ional: modo - una de mnimo, mximo, promedio. El modo por defecto es promedio . 6.2.3 parmetro 'MaxLines' para los elementos de registro c laves del artc ulo de registro y registro de eventos ahora tienen nuevo parmetro - MaxLines . Se especifica el nmero mximo de nuevas lneas por segundo, el agente enviar a Zabbix servidor o proxy. De forma predeterminada, el agente de Zabbix no enva ms de 100 lneas de registro por segundo por cada archivo de registro. Para el arc hivo rpido c recimiento en el nmero puede aumentar con el nuevo parmetro. 6.2.4 Nuevos filtros de registro de eventos de Windows entradas de registro de eventos de Windows ahora se pueden filtrar por tipo, fuente y el identificador de evento en el lado del agente. 6.2.5 SSH y telnet controles Ahora SSH y telnet se puede usar para direc to, el agente de vigilanc ia de menos. SSH es compatible con contrasea y clave de mtodos de autenticac in. Esto hace posible el seguimiento a distancia muy eficaz de los dispositivos de red, aplicac iones y servidores sin el uso de Zabbix agente. Actualmente SSH y telnet no se puede utilizar en las acc iones, esta funcionalidad estar disponible en versiones futuras. 6.2.6 dispositivos de intercambio LVM apoyo dispositivos LVM Ahora hay soporte para los dispositivos de intercambio en Linux. 6.2.7 nmero de CPU En primer lugar ha cambiado en Linux En primer lugar de la CPU en Linux que ahora se conoc e como 0, lo cual es consistente c on otros sistemas operativos. 6.2.8 Signo positivo para los valores decimales apoyo Si decimales de entrada (flotador) el valor es precedido por un + signo, se admite como un nmero positivo ahora.
zabbix.com/documentation//complete
10/109
03/06/2011
Octal Hexadecimal
6.7 Notificacin de los medios de comunicacin pueden ser elegidos en las operaciones de la accin
Esto signific a que es posible definir los mensajes que se envan a uno o varios medios de comunicac in solamente. Por ejemplo, todos los mensajes crticos pueden ser entregados por el uso de mensajera SMS, mientras que otros mensajes mediante correo electrnic o y SMS sin la c reacin de mltiples acciones.
Errores relacionados c on c ada mtodo se almacenan por separado y se pueden obtener al mover el cursor del ratn sobre el ic ono de error. Tema por defec to usa verde para indicar la disponibilidad, mientras que Negro y azul tema utiliza el color azul.
zabbix.com/documentation//complete
11/109
03/06/2011
1.8.1 1.8.2 1.8.3 1.8.4
Instalacin y actualizacin
Ver la instalacin de la seccin para las nuevas instalaciones. Ver mejora seccin si la actualizac in desde una versin anterior de Zabbix. Antes de ac tualizar, lea las notas importantes .
zabbix.com/documentation//complete
12/109
03/06/2011
destino.
binarios precompilados (agente, el remitente, obtener) no podra func ionar en sistemas de 64 bits con las versiones de glibc de ms de 2.5. sntoma comn es no empezar c on el mensaje de error: exc epc in de punto flotante . Utilice las versiones anteriores, o compilar desde cero en el sistema
ALTER TABLE DROP INDEX dhosts dhosts_1, altere la tabla de ndice cada dservices dservices_1, altere la tabla httptest ndice de cada de httptest_2, altere la
Oracle o PostgreSQL
DROP INDEX dhosts_1, el ndice de cada de dservices_1, el ndice de cada de httptest_2, el ndice de cada de httptest_3, el ndice de cada de history_log_2,
No haga caso de los mensajes de advertencia acerca de los ndices no existe! scripts de ac tualizacin de base de datos se enc uentran en el directorio upgrades/dbpatches/1.8 engine> <db /: MySQL: upgrades/dbpatches/1.8/mysql/patc h.sql Oracle: upgrades/dbpatc hes/1.8/orac le/patc h.sql PostgreSQL: upgrades/dbpatches/1.8/postgresql/patch.sql actualizac in de base de datos debe tener alrededor de 10-15 minutos, para PostgreSQL que puede tomar varias horas o ms debido a la conversin de los datos histricos existentes. Se recomienda probar el procedimiento de ac tualizacin en un entorno no productivo. Si va a convertir la base de datos a UTF-8, puede tomar muc has horas. Asegrese de que tiene permisos sufic ientes (c rear, mesa desplegable, c rear el ndic e, el ndice de cada). Tambin asegrese de que usted tiene suficiente espacio en disco. Estos scripts son para la actualizac in de Zabbix 1.6.x a 1.8 slo! Para actualizar desde versiones anteriores tambin usar secuenc ias de comandos de actualizac in de Zabbix 1.6.x.
2 Instalacin
zabbix.com/documentation//complete
13/109
03/06/2011
2.1 Cmo conseguir Zabbix
Verifica en el Zabbix Home Page en http://www.zabbix.com [http://w w w.zabbix.com] para obtener informacin sobre la versin actual y para la desc arga de las instrucciones. Zabbix se distribuye c omo un paquete de cdigo fuente, sin embargo, tambin se incluye en el nmero de OS distribuc iones pre-compilados.
2 Requisitos
2.1 Requisitos de hardware
2.1.1 Requisitos de memoria Zabbix requiere y el disco de memoria fsica. 128 MB de memoria fsic a y 256 MB de espacio libre en disco podra ser un buen punto de partida. Sin embargo, la c antidad de memoria en disco necesario, obviamente, depende del nmero de los ejrc itos y los parmetros que estn siendo monitoreados. Si usted est planeando para mantener una larga historia de los parmetros monitorizados, usted debe pensar de al menos un par de gigabytes de tener espac io sufic iente para almacenar la historia en la base de datos. Cada proceso del demonio Zabbix requiere de varias c onexiones a un servidor de base de datos. La cantidad de memoria asignada para la conexin depende de la configuracin del motor de base de datos. Cuanta ms memoria fsica que tiene, ms rpida ser la base de datos (y por lo tanto Zabbix) func iona! 2.1.2 Requisitos de CPU Zabbix y especialmente Zabbix base de datos puede requerir importantes CPU recursos segn el nmero de parmetros de seguimiento y de base de datos del motor elegido. 2.1.3 Otros materiales Un puerto de comunicac iones serie y una serie GSM mdem necesarios para el uso de la notificac in de apoyo de SMS en Zabbix. A serie c onvertidor de USB tambin func ionar. 2.1.4 Ejemplos de configuracin de hardware La tabla ofrec e varias c onfigurac iones de hardware:
Nombre Pequeas Medio Grande Plataforma Ubuntu Linux CPU / memoria PII 350 MHz 256 MB Base de datos MySQL MyISAM MySQL InnoDB Monitoreados anfitriones 20 500 > 1000
Ubuntu Linux de 64 bits Intel Dual C ore 6400 4GB RAID 10 InnoDB MySQL o PostgreSQL
Intel Xeon de 8 GB 2xC PU Rpido RAID 10 InnoDB MySQL o PostgreSQL > 10000
c onfiguracin real depende del nmero de elementos activos y tasas de refresc o muc ho. Es muy rec omendable para ejecutar la base de datos en una c aja separada para grandes instalaciones.
PHP ayuda del zcalo PHP multibyte apoyo IBM DB2 ibm_db2 MySQL php-mysql Oracle oci8
zabbix.com/documentation//complete
14/109
03/06/2011
PostgreSQL php-pgsql SQLite php-sqlite3 7.0.2 o posterior 3.3.5 o posterior
Zabbix puede func ionar en versiones anteriores de Apache, MySQL, Oracle y PostgreSQL as. Para las fuentes que no sea el predeterminado DejaVu, PHP funcin imagerotate [http://php.net/manual/en/function.imagerotate.php] podran ser necesarias. Si no lo tiene, estas fuentes pueden ser prestados de forma inc orrecta en Vigilancia cabec era general y otros lugares. Esta func in slo est disponible si PHP est compilado con paquete de GD, que no es el caso de Debian y otras distribuc iones. 2.3.1 WEB navegador en el lado del c liente Soporte para HTML y PNG imgenes se requiere. Las cookies y Java Script debe estar habilitado. Las ltimas versiones de Mozilla Firefox, Microsoft Internet Explorer, Opera y Konqueror son compatibles. Otros navegadores (Google Chrome, Safari de Apple) puede trabajar con Zabbix as.
Zabbix de configuracin Tamao fijo. Normalmente, 10 MB o menos. das * (elementos / frecuencia de actualizacin) * 24 * 3600 bytes * elementos: nmero de elementos das: nmero de das para mantener la historia frecuencia de actualizacin: frecuencia de actualizacin promedio de los artculos bytes: nmero de bytes necesarios para mantener el valor nico, depende del motor de base de datos, normalmente de 50 bytes. das * (items/3600) * 24 * 3600 bytes * elementos: nmero de elementos das: nmero de das para mantener la historia bytes: nmero de bytes necesarios para mantener la tendencia nica, depende de motor de base de datos, normalmente 128 bytes. das eventos * * 24 * 3600 bytes * eventos: nmero de eventos por segundo. Un (1) caso por segundo en el peor de los casos. das: nmero de das para mantener la historia bytes: nmero de bytes necesarios para mantener la tendencia nica, depende de motor de base de datos, normalmente 130 bytes.
Historia
Tendencias
Eventos
As, el espacio total en disco requerido se puede calcular c omo: Configuracin + Historia + Tendencias + Eventos
zabbix.com/documentation//complete
15/109
03/06/2011
El espac io en disco no se utiliza inmediatamente despus de la instalacin Zabbix. tamao de la base de datos crec er a c ontinuacin, se dejan de crecer en algn momento, que depende de la configuracin hosekeeper. requisitos de espacio en disco para los nodos en la c onfigurac in distribuida se calculan de forma similar, pero esto tambin depende de un nmero total de nodos sec undarios vinculados a un nodo.
2.3 Componentes
2.3.1 Componentes Zabbix
Zabbix c onsta de varios componentes de software, las responsabilidades de las cuales se describen a continuac in.
4 Instalacin de la Fuente
4.1 Requerimientos de Software
Construcc in de servidor de Zabbix o agentes que provienen de fuentes requiere software adic ional. El siguiente software es nec esario para compilar Zabbix: Uno de los motores de bases de datos siguientes: IBM DB2 encabezados y bibliotecas encabezados y las bibliotec as de la CLI se requieren. MySQL encabezados y bibliotecas Versin 3.22 o posterior. Oracle encabezados y bibliotecas c abeceras de la OCI y las bibliotec as son obligatorios. PostgreSQL enc abezados y bibliotecas Versin 7.0.2 o posterior. Considere el uso de PostgreSQL 8.x para obtener un rendimiento muc ho mejor. SQLite encabezados y bibliotec as Versin 3.3.5 o posterior. Por lo general, siempre c omo parte de mysql-dev, postgresql-dev, paquetes sqlite3-dev. NET- SNMP (o UCD- SNMP ) y la coleccin de archivos de cabecera Requerido para SNMP apoyo. Facultativo. Iksemel biblioteca y archivos de cabecera Nec esarios para habilitar la mensajera Jabber. Facultativo. Libcurl biblioteca y archivos de cabecera
zabbix.com/documentation//complete
16/109
03/06/2011
Compilador de C
c ompilador de C se requiere. Compilador GNU C es la mejor opc in para las plataformas abiertas. Otros (HP, IBM) compiladores de C puede ser usado tambin. GNU Make GNU make es nec esario para procesar Zabbix Makefiles.
Paso 3 Crear la base de datos Zabbix Zabbix viene con SQL scripts utilizados para crear el esquema de base de datos necesarios y tambin para insertar una configuracin por defecto. Hay secuenc ias de comandos separados para IBM DB2, MySQL, Oracle, PostgreSQL y SQLite. Para IBM DB2 :
shell> db2 "zabbix crear base de datos utilizando juego de cdigos UTF-8 territorio nos pageSize 32768" shell> cd crear o cree un esquema> db2batch zabbix-d-f i
interfaz de Zabbix utiliza OFFSET y LMITE c lusulas SQL queries. Para que esto func ione, servidor DB2 de IBM debe tener DB2_COMPATIBILITY_VECTOR variable se establece en 3. Ejec ute el siguiente comando antes de iniciar el servidor de base de datos:
shell> db2set DB2_COMPATIBILITY_VECTOR = 3
Para MySQL :
zabbix.com/documentation//complete
17/109
03/06/2011
Shell>> mysql-u <contrasea> p <username>-mysql crear base de datos de carcter zabbix Utf8; mysql> quit; shell> cd crear o cree un esquema> mysql.sql gato | my
Para Oracle (suponemos que el usuario zabbix con contrasea contrasea existe y tiene permisos para c rear objetos de base de datos):
Shell> cd crear zabbix shell> sqlplus / sqlplus contrasea> set definicin de> sqlplus @ schema /> sqlplus oracle.sql @ datos /> sqlplus data.sql @ salida de da
Para PostgreSQL :
shell> psql-U> <username> psql zabbix crear base de datos;> psql \> cd q concha crear o cree un esquema> postgresql.sql gato | psql-U cscara zabbix <username>>
Para SQLite :
Shell> cd crear o cree un esquema> sqlite.sql gato | sqlite3 / var / lib / sqlite / zabbix.db shell> cd .. / shell de datos> data.sql gato | sqlite3 / var / lib
Paso 4 Configurar y compilar el cdigo fuente de su sistema Las fuentes deben ser compilado para el servidor (mquina de c ontrol), as como los c lientes (mquinas de c ontrol). Para c onfigurar la fuente para el servidor, debe especificar qu base de datos se utilizar.
Shell>. / Configure - enable-servidor - with-ibm-db2 - with-Net-SNMP - with-jabber - with-libcurl # para IBM DB2 + Jabber + seguimiento WEB
o
Shell>. / Configure - enable-servidor - with-mysql - with-Net-SNMP - with-jabber - with-libcurl # para MySQL + + Jabber seguimiento WEB
o
Shell>. / Configure - enable-servidor - with-orculo - with-Net-SNMP - with-jabber - with-libcurl # para Oracle + Jabber + seguimiento WEB
o
Shell>. / Configure - enable-servidor - with-pgsql - with-Net-SNMP - with-jabber - with-libcurl # para PostgreSQL + Jabber + seguimiento WEB
o
Shell>. / Configure - enable-servidor - with-sqlite3 - with-Net-SNMP - with-jabber - with-libcurl # para SQLite3 + Jabber + seguimiento WEB
Usar la bandera - with-ibm-db2 para especificar la ubicacin de la CLI API . Usar la bandera - with-oracle para especificar la ubicacin de la OCI API . La bandera - with-UCD-SNMP se puede utilizar en lugar de - with-Net-SNMP. Si no SNMP apoyo es necesario, de ambos - with-Net-SNMP y - with-uc d-snmp puede ser omitido. Sin embargo, si usted quiere compilar binarios de cliente junto con los binarios del servidor, ejec ute:
Shell>. / Configure - enable-servidor - enable-agente - with-mysql - with-Net-SNMP - with-jabber - with-libcurl
bandera de uso - enable-static para vincular estticamente colecciones. Si va a distribuir los binarios compilados entre los diferentes servidores, debe usar esta opcin para hac er que estos binarios trabajo sin las bibliotecas necesarias. Tenga en cuenta que - enable-static no funciona en Solaris [http://blogs.sun.com/rie/entry/static_linking_w here_did_it] . Paso 5 Hac er e instalar todo
Shell> make install
Por defecto, make install instalar todos los archivos en / usr / local / sbin, / usr / local / lib, etc Asegrese de que tiene permisos suficientes. Usted puede espec ific ar un prefijo de instalacin que no sea / usr / local con - prefix, por ejemplo - prefix = / home / zabbix. En este c aso binarios demonio se instalar en <prefix> / sbin, mientras que los servicios pblicos en <prefix> / bin. Las pginas man se instalar en <prefix> / share. Paso 6 Configurar / etc / services El paso es opcional. Sin embargo, se recomienda. En el cliente (seguimiento) las mquinas, agregue las siguientes lneas a / etc / servic es:
zabbix agente 10050/tcp Zabbix Agente zabbix agente 10050/udp Zabbix Agente zabbix-cazador 10051/tcp Zabbix Trapper zabbix-cazador 10051/udp Zabbix Trapper
Tenga en cuenta que los nmeros de puerto son oficiales puertos Zabbix registrados en la IANA. Paso 7 Configurar el arc hivo / etc / inetd.c onf Si va a utilizar zabbix_agent en lugar de la zabbix_agentd se rec omienda, la lnea siguiente se debe agregar:
stream tcp zabbix_agent nowait.3600 zabbix / opt / zabbix / bin / zabbix_agent
Reinic ie inetd
shell> killall-HUP inetd
Modificar la configuracin predeterminada de los archivos de configuracin Paso 8 Crear una ubicacin para almacenar los archivos de configurac in:
mkdir / etc / zabbix
Paso 9
zabbix.com/documentation//complete
18/109
03/06/2011
Configurar el arc hivo / etc / zabbix / zabbix_agentd.c onf
Es necesario configurar este archivo para cada host con zabbix_agentd instalado. El archivo debe contener la direcc in IP del servidor de Zabbix. Las c onexiones desde otros hosts ser negada. Usted puede tomar misc / conf / zabbix_agentd.conf c omo ejemplo. Paso 10 Configurar el arc hivo / etc / zabbix / zabbix_server.c onf Para pequeas instalaciones (hasta diez seguimiento anfitriones), los parmetros por defecto son suficientes. Sin embargo, debe cambiar los parmetros por defec to para maximizar el rendimiento de Zabbix. Vea la sec cin [El ajuste del rendimiento] para ms detalles. Usted puede tomar misc / conf / zabbix_server.c onf como ejemplo. Paso 11 Ejecutar los procesos de servidor Ejecutar zabbix_server en el lado servidor.
Shell> cd> sbin shell. / Zabbix_server
Paso 3 Crear la base de datos Zabbix. Facultativo. Zabbix proceso de proxy c rear base de datos automticamente en la primera ejec ucin si no existe. Se usar base de datos existente de otra manera. autoc reac in de bases de datos es compatible con SQLite solamente. Zabbix viene con SQL scripts utilizados para crear el esquema de base de datos requerida. Hay secuencias de comandos separados para IBM DB2, MySQL, Orac le, PostgreSQL y SQLite. Para IBM DB2:
shell> db2 "zabbix crear base de datos utilizando juego de cdigos UTF-8 territorio nos pageSize 32768" shell> cd crear o cree un esquema> db2batch-d-f zabbix i
Para MySQL:
Shell>> mysql-u <contrasea> p <username>-mysql crear base de datos de carcter zabbix Utf8; mysql> quit; shell> cd crear o cree un esquema> mysql.sql gato | my
Para Oracle (suponemos 'zabbix de que los usuarios con' password 'password existe y tiene permisos para crear objetos de base de datos):
Shell> cd crear o cree un esquema> oracle.sql gato | zabbix sqlplus /> contrasea out.log
Para SQLite:
Shell> cd crear o cree un esquema> sqlite.sql gato | sqlite3 / var / lib / sqlite / zabbix.db
La base de datos se crear automticamente si no existe. Paso 4 Configurar y compilar el cdigo fuente de su sistema Las fuentes deben ser compilados para permitir la compilacin de Zabbix proceso de proxy. Para configurar la fuente para el proxy, debe espec ific ar qu base de datos se utilizar.
Shell>. / Configure - enable-proxy - with-ibm-db2 - con-net-snmp # para IBM DB2 + monitorizacin SNMP
o
Shell>. / Configure - monitoreo con-net-snmp # para MySQL + SNMP - enable-proxy - with-mysql
zabbix.com/documentation//complete
19/109
03/06/2011
o
o
Shell>. / Configure - enable-proxy - with-sqlite3 - con-net-snmp # para SQLite3 + monitorizacin SNMP
Usar la bandera - with-ibm-db2 para especificar la ubicacin de la CLI API . Usar la bandera - with-oracle para especificar la ubicacin de la OCI API . bandera de uso - enable-static para vinc ular estticamente colecc iones. Si va a distribuir los binarios compilados entre los distintos hosts, debe utilizar esta opcin para hac er que estos binarios trabajo sin las bibliotec as necesarias. - Enable-static no func iona en Solaris. La bandera - with-UCD-SNMP se puede utilizar en lugar de - with-Net-SNMP. Si no SNMP apoyo necesario, tanto - with-Net-SNMP y - with-uc d-snmp puede ser omitido. Sin embargo, si usted quiere compilar binarios de cliente junto con los binarios de proxy, ejecute:
Shell>. / Configure - enable-proxy - enable-agente - with-mysql - with-Net-SNMP
El parmetro - enable-static puede ser usado para forzar la vinc ulacin esttic a. Paso 5 Hac er e instalar todo
Shell> make install
Por defecto, make install instalar todos los archivos en / usr / loc al / sbin, / usr / local / etc lib Puede espec ificar una instalac in prefijo diferente a / usr / loc al usando - prefix Paso 6 Configurar / etc / services El paso es opcional. Sin embargo, se recomienda. En el cliente (seguimiento) las mquinas, agregue las siguientes lneas a / etc / servic es:
10050/tcp zabbix_agent 10051/tcp zabbix_trap
Paso 7 Configurar el arc hivo / etc / inetd.c onf Si va a utilizar zabbix_agent en lugar de la zabbix_agentd se rec omienda, la lnea siguiente se debe agregar:
stream tcp zabbix_agent nowait.3600 zabbix / opt / zabbix / bin / zabbix_agent
Reinic ie inetd
shell> killall-HUP inetd
Paso 8 Crear una ubicacin para almacenar los archivos de configurac in:
mkdir / etc / zabbix
Configurar el arc hivo / etc / zabbix / zabbix_proxy.conf Para pequeas instalaciones (hasta diez seguimiento anfitriones), los parmetros por defecto son suficientes. Sin embargo, debe cambiar los parmetros por defec to para maximizar el rendimiento de Zabbix Proxy. Asegrese de que tiene nombre de host c orrecto y configurar los parmetros del servidor. Usted puede tomar misc / conf / zabbix_proxy.conf c omo ejemplo. Paso 9 Ejecutar los procesos de Proxy Ejecutar zabbix_proxy:
Shell> cd> sbin shell. / Zabbix_proxy
Paso 3 Configurar y compilar el cdigo fuente de su sistema Las fuentes deben ser compilados para el cliente. Para configurar la fuente para el cliente:
zabbix.com/documentation//complete
20/109
03/06/2011
Shell>. / Configure - enable-agente
bandera de uso - enable-static para vinc ular estticamente colecc iones. Si va a distribuir los binarios compilados entre los distintos hosts, debe utilizar esta opcin para hacer que estos binarios trabajo sin las bibliotecas nec esarias. Paso 4 Agente de compilacin
Shell> make
Copia c reada binarios de / bin a / opt / zabbix / bin o cualquier otro directorio. Otros directorios c omunes son / usr / local / bin o / usr / local / zabbix / bin. Paso 5 Configurar / etc / services El paso no es requisito real. Sin embargo, se rec omienda. En el cliente (seguimiento) las mquinas, agregue las siguientes lneas a / etc / services:
10050/tcp zabbix_agent 10051/tcp zabbix_trap
Paso 6 Configurar el arc hivo / etc / inetd.c onf Si va a utilizar zabbix_agent en lugar de la zabbix_agentd se rec omienda, la lnea siguiente se debe agregar:
stream tcp zabbix_agent nowait.3600 zabbix / opt / zabbix / bin / zabbix_agent
Reinic ie inetd
shell> killall-HUP inetd
Paso 7 Crear una ubicacin para almacenar los archivos de configurac in:
mkdir / etc / zabbix
Paso 8 Configurar el arc hivo / etc / zabbix / zabbix_agentd.c onf Es necesario configurar este archivo para cada host con zabbix_agentd instalado. El archivo debe contener la direcc in IP del servidor de Zabbix. Las c onexiones desde otros hosts ser negada. Usted puede tomar misc / conf / zabbix_agentd.conf c omo ejemplo. Paso 9 Ejecutar zabbix_agentd en todos los equipos controlados
Shell> / opt / zabbix / bin / zabbix_agentd
Usted no debe trabajar en zabbix_agentd si han optado por utilizar zabbix_agent! Asegrese de que su sistema permite la asignac in de 2 MB de memoria compartida, de lo contrario el agente no se inicia y ver "No se puede asignar memoria c ompartida para el colec tor." En el archivo de registro del agente. Esto puede suceder en Solaris 8.
zabbix.com/documentation//complete
21/109
03/06/2011
zabbix.com/documentation//complete
22/109
03/06/2011
Pre-requisito PHP versin PHP lmite de memoria PHP post tamao mximo
Descripcin
En el php.ini: memory_limit = 128M En el php.ini: post_max_size = 8M En el php.ini: max_execution_time = 300 Uno de los siguientes mdulos se deben instalar: ibm_db2, php, mysql, oci8, php-pgsql, php-sqlite3 C ompilado en PHP5. Mdulo php-gd. Mdulo php-gd.
PHP mximo tiempo de ejecucin 300 segundos PHP soporte de base de datos PHP aC matemticas GD versin Formato de la imagen Uno de IBM DB2, MySQL, Oracle, PostgreSQL, SQLite C ualquier 2.0 o superior Por lo menos PNG
Paso 4 Configurar los parmetros de base de datos. base de datos de Zabbix debe estar ya c reado.
zabbix.com/documentation//complete
23/109
03/06/2011
zabbix.com/documentation//complete
24/109
03/06/2011
zabbix.com/documentation//complete
25/109
03/06/2011
Paso 9 Para el control distribuido solamente! Si se utiliza en un entorno distribuido que tienen para ejecutar una sola vez :
Shell>. / <nodeid> Zabbix_server-n
Esto convertir los datos de base de datos para su uso con ID del nudo "1" y tambin aade un nodo local. Paso 10 interfaz de Zabbix est listo! nombre de usuario por defecto es Admin , contrasea zabbix .
2.5 Actualizacin
zabbix.com/documentation//complete
26/109
03/06/2011
2.5.1 Cambiar nivel de emisiones
Para el nivel de cambio libera slo la actualizac in de versin binaria del servidor y la interfaz de usuario es nec esario. Si se menciona en las notas de liberac in, los ndices opc ional se puede agregar a la base de datos para mejorar el rendimiento. Actualizac in puede realizarse fcilmente en varias versiones, por ejemplo, la actualizac in de 1.8.1 a 1.8.3 se puede realizar en un solo paso. Ver notas de instalacin y ac tualizacin para obtener ms informac in .
Zabbix aparato hasta la versin 1.8.3 es una OpenSUSE 11.2 basada en imgenes, desde el 1.8.4 se basa en 11.3. Est disponible en los siguientes formatos: vmdk (VMWare / Virtualbox); OVF (Formato Abierto de virtualizac in); ISO del CD; Unidad de disco duro flash de la imagen; Precarga ISO [http://blog.susestudio.com/2010/10/new-preload-iso-build-format.html] ; husped Xen. Tiene Zabbix servidor configurado y funcionando en MySQL, as c omo interfaz disponibles. El aparato ha sido construido utilizando SUSE Studio [http://susestudio.com] .
zabbix.com/documentation//complete
27/109
03/06/2011
6.2.1 Las c ontraseas Sistema: root: zabbix Zabbix: zabbix Base de datos: root: zabbix Zabbix: zabbix Zabbix interfaz: admin: zabbix
Para cambiar la contrasea de usuario de base de datos tiene que ser cambiado en los siguientes lugares: MySQL; zabbix_server.conf; zabbix.conf.php. 6.2.2 Ubic aciones de los arc hivos Los archivos de c onfiguracin se c olocan en / etc / zabbix . Zabbix archivos de registro se c olocan en / var / log / zabbix . direc torio de inic io del usuario zabbix es / var / lib / zabbix . 6.2.3 Los c ambios de configuracin de Zabbix Algunos elementos y dispara en la plantilla por defecto de Linux son discapac itados (sobre todo los que no corresponden a la configuracin del aparato); Nombre del servidor de interfaz de Zabbix en "Zabbix 1.8 Applianc e"; de la interfaz de zona horaria se establece en Europa / Riga, Zabbix casa (esto se puede modificar en / etc/php5/apache2/php.ini ); Disc apacidad provoc a y escenarios Web se muestran de forma predeterminada para reduc ir la confusin. 6.2.4 Conservacin de configuracin Si est ejecutando la versin CD en vivo del aparato o por alguna otra razn no puede tener un almac enamiento persistente, puede c rear una c opia de seguridad de base de datos completa, inc luyendo toda la c onfiguracin y los datos recopilados. Para crear la c opia de seguridad, ejecute:
zabbix mysqldump | bzip2 -9> dbdump.bz2
Ahora puede transferir archivos dbdump.bz2 a otra mquina. Para restaurar la copia de seguridad, traslado al aparato y ejecutar:
bzcat dbdump.bz2 | zabbix mysql
6.4 Cortafuegos
De forma predeterminada, slo dos puertos estn abiertos - 22 ( SSH ) y 80 ( HTTP ). Para abrir puertos adic ionales - por ejemplo, Zabbix y agente de puertos de servidor - modificar las reglas de iptables con SuSEfirewall2 de utilidad:
SuSEfirewall2 abierta EXT TCP zabbix zabbix-cazador-agente
zabbix.com/documentation//complete
28/109
03/06/2011
En la c onfigurac in del servidor de Zabbix siempre s se c ontrola con la ayuda del agente instalado localmente para algunos parmetros de base, adems Zabbix interfaz se controla y con seguimiento web.
Tenga en cuenta que la vigilanc ia en los registros de interfaz web - esto se puede aadir un montn de entradas en el registro de auditora.
Vuelva a coloc ar el servidor c on agentd para el demonio agente de Zabbix. 6.6.1 scripts programados Hay un sc ript programado, ejec uta desde el crontab c ada 10 minutos que se reinicia Zabbix servidor si no se est ejecutando, / var / lib / zabbix / bin . Registra los problemas y los intentos de sellos de tiempo a partir de / var / log / zabbix / server_problems.log . Este sc ript est disponible desde la versin de Aparatos Zabbix 1.8.3. Asegrese de desac tivar esta entrada en el crontab si interrupcin de servidor de Zabbix se desea. 6.6.2 Aumento de espacio en disco disponible Crea una copia de seguridad de todos los datos antes de intentar cualquiera de los pasos. espacio de disc o disponible en el aparato podra no ser sufic iente. En este c aso, es posible ampliar el disc o. Para ello, en primer lugar ampliar el dispositivo de bloque en su entorno de virtualizacin, a c ontinuacin, siga estos pasos. Inicio fdisk para cambiar el tamao de la particin. Como la raz , ejec ute:
fdisk / dev / sda
Esto inic iar fdisk en el disco sda . A continuac in, c ambiar a los sec tores mediante la emisin de:
u
No DOS desactivar el modo de compatibilidad mediante la introduc cin de c . Continuando con discapacidad que puede daar la particin. A continuac in, elimine la partic in existente y crear uno nuevo con el tamao deseado. En la mayora de los casos que se aceptar el mximo disponible, que se ampliar el sistema de archivos de c ualquier tamao que usted hizo para el disc o virtual. Para ello, introduzc a la siguiente secuencia en el fdisk del sistema:
d p n 1 (aceptar el valor predeterminado 63) (aceptar mximo predeterminado)
Si desea dejar algn espac io para las partic iones adic ionales (de intercambio, etc), puede ingresar otro valor para el ltimo sector . Cuando termine, guarde los c ambios.
w
Reinic ie la mquina virtual (como la particin hemos modificado est en uso actualmente). Despus de reiniciar, cambiar el tamao de sistema de archivos puede tener lugar.
resize2fs / dev/sda1
zabbix.com/documentation//complete
29/109
03/06/2011
6.7 Formato de las notas especficas
6.7.1 Xen Para utilizar imgenes en el servidor Xen, ejecute:
archivo xm create-c-con-suffix.xenconfig
Eso es todo, el sistema de archivos debe ser aumentado hasta el tamao de la particin ahora.
Consulte las pginas siguientes para obtener ms informacin sobre el uso de imgenes de Xen: http://en.opensuse.org/How_to_use_downloaded_SUSE_Studio_applianc es
[http://en.opensuse.org/How _to_use_dow nloaded_SUSE_Studio_appliances#Xen_guest]
Xen_guest
http://en.opensuse.org/SUSE_Studio_Xen_Howtos [http://en.opensuse.org/SUSE_Studio_Xen_How tos] Para usar imgenes de Xen con Citrix XenServer es posible que necesite convertir imgenes con utilidad XenConvert, disponible desde el sitio Web de Citrix.
3 Zabbix Procesos
3.1 Inicio de sesin
Para el registro de configuracin de demonios Zabbix "logfile" parmetro de c onfigurac in se utiliza. Si este parmetro se deja vac o (logfile =), syslog las facilidades de registro se utilizan. Todos los demonios de Zabbix en las plataformas Unix de registro de sus mensajes de "demonio" el medio ambiente. El mapeo entre Zabbix niveles de registro y syslog niveles es el siguiente:
Zabbix nivel de registro syslog nivel de registro 0 - vaco (LOG_LEVEL_EMPTY) 1 - la informacin crtica (LOG_LEVEL_C RIT) 2 - Informacin de error (LOG_LEVEL_ERR) 3 - advertencias (LOG_LEVEL_WARNING) 4 - para la depuracin (LOG_LEVEL_DEBUG) syslog no se utiliza. condiciones crticas (LOG_C RIT) condiciones de error (LOG_ERR) condiciones de alerta (LOG_WARNING) nivel de depuracin, mensajes (LOG_DEBUG) Comentarios Todos los mensajes se pasan por alto.
agente de Zabbix en Windows utiliza registro de sucesos si "logfile" parmetro de c onfigurac in es siempre vaco. Asignac in entre los niveles de registro Zabbix (mensajes de tipo correspondiente) y de eventos de Windows tipo de registro de las entradas es de abajo:
Zabbix nivel de registro Windows Event Log tipo de entrada Comentarios 0 - vaco (LOG_LEVEL_EMPTY) 1 - la informacin crtica (LOG_LEVEL_C RIT) 2 - Informacin de error (LOG_LEVEL_ERR) 3 - advertencias (LOG_LEVEL_WARNING) 4 - para la depuracin (LOG_LEVEL_DEBUG) Registro de sucesos no se utiliza. Todos los mensajes se pasan por alto.
EVENTLOG_ERROR_TYPE
Error
EVENTLOG_WARNING_TYPE EVENTLOG_INFORMATION_TYPE
Advertencia Informacin
Zabbix Server se ejecuta como un proceso demonio. Zabbix servidor acepta los parmetros de lnea de comandos siguientes:
-C - config <file> especificar el archivo de configuracin, por defecto es / etc / zabbix / zabbix_server.conf-h - ayudar a dar a esta ayuda-v - version Muestra
El archivo de configuracin contiene parmetros para zabbix_server. El arc hivo debe existir y debe tener permisos de lec tura para 'zabbix' del usuario. parmetros admitidos:
Parmetro AlertScriptsPath C acheSize C acheUpdateFrequency Dbhost DBName Obligatoria Gama No No No No s 128K1G 1-3600 Por defecto Descripcin
/ Home / zabbix / Ubicacin de scripts de alerta bin / 8 millones 60 localhost Tamao de la cach de configuracin, en bytes. Tamao de la memoria compartida para almacenar los ejrcitos y los elementos de datos. C on qu frecuencia Zabbix llevar a cabo la actualizacin de cach de configuracin, en cuestin de segundos. Base de datos de nombre de host. Si se establece en localhost, conector se usa para MySQL. Base de datos de nombre.
zabbix.com/documentation//complete
30/109
03/06/2011
Dbpassword Dbport DBSocket Dbuser No No No No 102465535 3306 / Tmp mysql.sock /
DebugLevel
No
0-4
DisableHousekeeping ExternalScripts
No No
0-1
/ Etc / zabbix / Ubicacin de las secuencias de comandos externos externalscripts / Usr/sbin/fping6 Ubicacin en fping6. Asegrese de que fping6 binaria tiene la propiedad raz y establecer SUID bandera. Haga vaca ("Fping6Location =") si su utilidad fping es capaz de procesar direcciones IPv6. Ubicacin en fping. Asegrese de que fping binaria tiene la propiedad raz y el indicador establecido SUID! Tamao de la cach de la historia, en bytes. Tamao de la memoria compartida para almacenar los datos de la historia. Tamao de la cach de texto de historia, en bytes. Tamao de la memoria compartida para almacenar los caracteres de texto o datos de registro de la historia. C on qu frecuencia Zabbix llevar a cabo el procedimiento de limpieza (en horas). La limpieza es la eliminacin de informacin innecesaria de la historia, alerta, y las tablas de alarmas. Si se utiliza PostgreSQL, valor sugerido es de 24, ya que realiza VAC O. No ms filas 'MaxHousekeeperDelete' (correspondiente a [nombre de tabla], [campo], [valor]) ser eliminado por una tarea en un ciclo de limpieza. SQLite3 no utiliza este parmetro, elimina todas las filas correspondientes, sin lmite. Si se establece en 0, entonces no hay lmite se utiliza en absoluto. En este caso, usted debe saber lo que ests haciendo! Esta opcin se apoya en la versin 1.8.2 y superiores. Puede incluir archivos individuales o todos los archivos en un directorio en el archivo de configuracin. 0.0.0.0 102432767 0-1024 Lista de direcciones IP delimitado por comas que el cazador debe escuchar. Trapper se escucha en todas las interfaces de red si este parmetro est ausente. Varias direcciones IP son compatibles con la versin 1.8.3 y superiores. Puerto de escucha para el cazador. El tamao mximo de archivo de registro en MB . 0 - desactivar la rotacin automtica de registro. Nombre del archivo de registro. 00 3600000 0-999 0-1 0-1 0 0 0 C unto tiempo una consulta de base de datos puede tomar antes de tener que entrar (en milisegundos). 0 - no registro de consultas lentas. Esta opcin se apoya en la versin 1.8.2 y superiores. nico NodeID en la configuracin distribuida. 0 - servidor independiente Si se establece en "1" eventos locales no se enviar a dominar nodo. Esto no afectar la capacidad de este nodo para propagar los eventos de sus nodos secundarios. Si se establece en "1" la historia local no se enviar a dominar nodo. Esto no afectar la capacidad de este nodo para propagar la historia de sus nodos secundarios.
Fping6Location
No
HousekeepingFrequency No
MaxHousekeeperDelete
No
0500 1000000
Incluir ListenIP
No No
No No No No
10051 1
No No No No
/ Tmp / Nombre del archivo PID. zabbix_server.pid 1604800 3600 C on qu frecuencia servidor de Zabbix enva los datos de configuracin de un servidor proxy Zabbix en cuestin de segundos. Se usa slo para servidores proxy en un modo pasivo. Esta opcin se apoya en la versin 1.8.3 y superiores. C on qu frecuencia Zabbix Server solicita datos de la historia de un proxy Zabbix en cuestin de segundos. Se usa slo para servidores proxy en un modo pasivo. Esta opcin se apoya en la versin 1.8.3 y superiores. Localizacin de claves pblicas para SSH controles 5-3600 30 C on qu frecuencia Zabbix intentar enviar alertas enviados (en segundos). Direccin IP de origen para las conexiones salientes. 1-100 4 Nmero de casos antes de la horquilla de Syncers DB. El lmite superior para ser de 64 antes de la versin 1.8.5. Esta opcin se apoya en la versin 1.8.3 y superiores. Nmero de casos antes de la horquilla de los descubridores. El lmite superior para ser 255 antes de la versin 1.8.5. Nmero de casos antes de la horquilla de HTTP pollers. El lmite superior para ser 255 antes de la versin 1.8.5. Nmero de casos antes de la horquilla de IPMI pollers. El lmite superior para ser 255 antes de la versin 1.8.5. Nmero de casos antes de la horquilla de emisores de ultrasonidos IC MP. El lmite superior para ser 255 antes de la versin 1.8.5. Nmero de casos de pre-horquilla de pollers inalcanzable para los anfitriones (incluyendo IPMI ). El lmite superior para ser 255 antes de la versin 1.8.5. Esta opcin no se encuentra en la versin 1.8.3. Nmero de casos antes de la horquilla de pollers. El lmite superior para ser 255 antes de la versin 1.8.5. Nmero de casos antes de la horquilla de pollers para servidores proxy pasiva. El lmite superior para ser 255 antes de la versin 1.8.5. Esta opcin se apoya en la versin 1.8.3 y superiores. Nmero de casos antes de la horquilla de los tramperos. El lmite superior para ser 255 antes de la versin 1.8.5. Especifica el tiempo que esperamos para el agente, SNMP del dispositivo o de verificacin externa (en segundos). Temporal de la gua. Especifica cmo cazador segundos que pueden pasar de procesamiento de datos nuevos. Tamao de la cach de tendencia, en bytes. Tamao de la memoria compartida para almacenar los datos de tendencias. C on qu frecuencia de acogida se comprueba la disponibilidad durante el perodo de indisponibilidad, en cuestin de segundos. C on qu frecuencia de acogida se comprueba la disponibilidad durante el periodo de inaccesibilidad, en cuestin de segundos. Despus de cuntos segundos de inaccesibilidad tratar una gran cantidad como no disponible.
ProxyC onfigFrequency
No
No No No No No
1-3600
No No No No
1 1 0 1
StartPollersUnreachable No
0-1000
StartPollers
No
0-1000
StartProxyPollers
No
0-250
StartTrappers Tiempo de espera TmpDir TrapperTimeout TrendC acheSize UnavailableDelay UnreachableDelay UnreachablePeriod
No No No No No No No No
0-1000 1-30
5 3 / Tmp
300 4M 60 15 45
A partir de la versin 1.8.6 del servidor Zabbix no se inic iar si no vlida (no seguir parmetro = valor notac in) o la puesta parmetro desconoc ido est
zabbix.com/documentation//complete
31/109
03/06/2011
presente en el arc hivo de c onfiguracin.
Zabbix Proxy se ejecuta como un proc eso demonio. Zabbix Proxy ac epta los parmetros de lnea de c omandos siguientes:
-C - config <file> especificar el archivo de configuracin, por defecto es / etc / zabbix / zabbix_proxy.conf-h - ayudar a dar a esta ayuda-v - version Muestr
El archivo de configurac in contiene parmetros para zabbix_proxy. El archivo debe existir y debe tener permisos de lectura para 'zabbix' del usuario. parmetros admitidos:
Parmetro C acheSize Obligatoria Gama No 128K1G 1-3600 1604800 Por defecto 8 millones Descripcin Tamao de la cach de configuracin, en bytes. Tamao de la memoria compartida, para los anfitriones el almacenamiento de datos y elementos. C on qu frecuencia Zabbix llevar a cabo la actualizacin de cach de configuracin, en cuestin de segundos. Para un proxy en el modo pasivo de este parmetro ser ignorado. C on qu frecuencia proxy recupera los datos de configuracin del servidor Zabbix en cuestin de segundos. Para un proxy en el modo pasivo de este parmetro ser ignorado. Base de datos de nombre de host. Si se establece en localhost, conector se usa para MySQL. Base de datos de nombre. Por ruta SQLite3 de archivo de base debe ser proporcionada. Dbuser dbpassword y se pasan por alto. contrasea de base de datos. Ignorado por SQLite. C omentar esta lnea si se utiliza ninguna contrasea. 3306 Ruta de acceso a la toma de MySQL. Base de datos del puerto cuando no se usa conector local. Ignorado por SQLite. Base de datos de usuario. Ignorado por SQLite. No 1-3600 1 Proxy enviar recogida de datos para el servidor de cada N segundos. Especifica el nivel de depuracin 0 - sin depurar 1 - la informacin crtica 2 - Informacin de error 3 - advertencias 4 - para la depuracin (produce gran cantidad de informacin) Si se establece en 1, desactiva la limpieza. / Ubicacin de las secuencias de comandos externos Ubicacin en fping6. Asegrese de que fping6 binaria tiene la propiedad raz y establecer SUID bandera. Haga vaca ("Fping6Location =") si su utilidad fping es capaz de procesar direcciones IPv6. Ubicacin en fping. Asegrese de que fping binaria tiene la propiedad raz y el indicador establecido SUID! La frecuencia de mensajes de latido en cuestin de segundos. Se utiliza para supervisar la disponibilidad de proxy en el lado servidor. 0 - mensajes de latido con discapacidad. Para un proxy en el modo pasivo de este parmetro ser ignorado. Tamao de la cach de la historia, en bytes. Tamao de la memoria compartida para almacenar los datos de la historia. Tamao de la cach de texto de historia, en bytes. Tamao de la memoria compartida para almacenar los caracteres de texto o datos de registro de la historia. nico proxy nombre. Asegrese de que el nombre del proxy es conocido en el servidor! Nombre de la mquina No Fijado HostnameItem por '.': Los caracteres permitidos alfanumricos, '', '_' y '-'. Longitud mxima: 64 Artculo usado para fijar el nombre de host si no est definido (esto se llevar a cabo en el servidor proxy de manera similar como en un agente). No es compatible con userParameters, contadores de rendimiento o alias, pero es compatible con system.run []. Se ignora si el nombre de host se establece. Esta opcin se apoya en la versin 1.8.6 y superiores. HousekeepingFrequency No Incluir ListenIP No No 102432767 0-1024 0.0.0.0 1-24 1 C on qu frecuencia Zabbix llevar a cabo el procedimiento de limpieza (en horas). La limpieza es la eliminacin de informacin innecesaria de la historia, alerta, y las tablas de alarmas. Si se utiliza PostgreSQL, valor sugerido es de 24, ya que realiza VAC O. Puede incluir archivos individuales o todos los archivos en un directorio en el archivo de configuracin. Lista de direcciones IP delimitado por comas que el cazador debe escuchar. Trapper se escucha en todas las interfaces de red si este parmetro est ausente. Varias direcciones IP son compatibles con la versin 1.8.3 y superiores. Puerto de escucha para el cazador. El tamao mximo de archivo de registro en MB . 0 - desactivar la rotacin automtica de registro. Nombre del archivo de registro. Si no se establece syslog se utiliza. 00 3600000 / Tmp zabbix_proxy.pid 0-720 0 / C unto tiempo una consulta de base de datos puede tomar antes de tener que entrar (en milisegundos). 0 - no registro de consultas lentas. Esta opcin se apoya en la versin 1.8.2 y superiores. Nombre del archivo PID. Proxy mantener los datos a nivel local para N horas. Este parmetro se puede utilizar si los datos locales ser utilizado por aplicaciones de terceros.
C acheUpdateFrequency
No
60
No No s No No
3600 localhost
DebugLevel
No
0-4
DisableHousekeeping ExternalScripts
No No
0-1
Fping6Location
No
FpingLocation
No
HeartbeatFrequency
No
0-3600
60
No No
128K1G 128K1G
8 millones 16M
HostnameItem
No
system.hostname
No No No
10051 1
LogSlowQueries
No
No No
zabbix.com/documentation//complete
32/109
03/06/2011
ProxyMode No 0-1 0
No No No
0-720
s No No
No No No No
1 1 0 1
StartPollersUnreachable No
0-1000
StartPollers StartTrappers Tiempo de espera TmpDir TrapperTimeout TrendC acheSize UnavailableDelay UnreachableDelay UnreachablePeriod
No No No No No No No No No
5 5 3 / Tmp
300 4M 60 15 45
A partir de la versin 1.8.6 Zabbix Proxy no se iniciar si no vlida (no seguir parmetro = valor notac in) o la puesta parmetro desconocido est presente en el arc hivo de c onfiguracin.
Zabbix agente se ejecuta c omo un proceso demonio. Zabbix agente acepta los parmetros de lnea de comandos siguientes:
-C - config <file> especificar el archivo de configuracin, por defecto es / etc / zabbix / zabbix_agentd.conf-h - ayudar a dar a esta ayuda-v - version Muest
shell> zabbix_agentd-c / usr / local / etc / shell zabbix_agentd.conf> zabbix_agentd - shell> ayuda zabbix_agentd - cscara de impresin> zabbix_agentd-t "syste
El arc hivo de c onfiguracin contiene parmetros de configurac in para zabbix_agentd. El archivo debe existir y debe tener permisos de lectura para 'zabbix' del usuario. parmetros admitidos:
Parmetro Obligatoria Gama Por defecto Descripcin Define un alias para el parmetro. Puede ser til para sustituir el nombre del parmetro largo y complejo con una ms pequea y ms simple. Alias No A partir de la versin 1.8.6 del agente Zabbix no se pondr en marcha en caso de un formato incorrecto tus Alias Alias o duplicado de la llave est en el archivo de configuracin. Deje que el agente se ejecute como 'root'. Si 'root' con discapacidad y el agente se inicia, el agente tratar de cambiar a 'zabbix' en lugar del usuario. No tiene ningn efecto si se inicia en virtud de un usuario normal. 0 - no permiten 1 - permiten No mantener los datos de ms de N segundos en el bfer. Nmero mximo de valores en un bfer de memoria. El agente le enviar todos los datos recopilados a Zabbix Proxy Server o si el buffer est lleno. Especifica el nivel de depuracin 0 - sin depurar 1 - la informacin crtica 2 - Informacin de error 3 - advertencias 4 - para la depuracin (produce gran cantidad de informacin) Desactivar los controles activos. El agente trabajar en el modo pasivo para el servidor de msica. Desactivar los controles pasivos. El agente no va a escuchar en cualquier TC P puerto. Slo los controles activos sern procesados. 0 - no desactive 1 - deshabilitar
AllowRoot
No
BufferSend BufferSize
No No
13600
2100 65535
DebugLevel
No
0-4
DisableActive
No
DisablePassive
No
zabbix.com/documentation//complete
33/109
03/06/2011
EnableRemoteC ommands No 0
Nombre de la mquina
No
HostnameItem
No
system.hostname Se ignora si el nombre de host se establece. Esta opcin se apoya en la versin 1.8.6 y superiores.
Puede incluir archivos individuales o todos los archivos en un directorio en el archivo de configuracin. Lista de direcciones IP delimitado por comas que el agente debera escuchar. Varias direcciones IP son compatibles con la versin 1.8.3 y superiores. Agente de escucha en este puerto para las conexiones desde el servidor. El tamao mximo de archivo de registro en MB . 0 - desactivar la rotacin automtica de registro. Nombre del archivo de registro. Si no se establece syslog se utiliza. 0 Habilitar el registro de los comandos de la shell ejecuta como advertencias. 0 - discapacitados 1 - habilitado El nmero mximo de nuevas lneas el agente enviar por segundo al servidor Zabbix o "registro" de procesamiento de proxy y "registro de eventos 'cheques activa. El valor siempre se reemplaza por MaxLines 'el parmetro, presentarse en el 'log' o 'registro de eventos "clave del artculo.
LogRemoteC ommands
No
MaxLinesPerSecond
No
11000
100
No No No 603600
/ Tmp / Nombre del archivo PID. zabbix_agentd.pid 120 10051 C on qu frecuencia la lista de los controles activos se actualiza, en cuestin de segundos. Puerto del servidor para recuperar la lista de activos y el envo de cheques. Lista delimitada por comas de direcciones IP (o nombres) de Zabbix servidores. No se permiten espacios. La primera entrada se utiliza para recibir la lista de activos y el envo de cheques. Tenga en cuenta que los nombres de host debe resolver el nombre de host direccin IP y el nombre de host Direccin IP . Direccin IP de origen para las conexiones salientes. 1-100 1-30 0,1 3 3 0 Nmero de casos antes de la horquilla de zabbix_agentd que comprueba proceso pasivo. El lmite superior para tener 16 antes de la versin 1.8.5. No gaste ms de segundos de tiempo de espera en el procesamiento de Permitir a todos los personajes que se pasan en los argumentos a los parmetros definidos por el usuario. Apoyado desde Zabbix 1.8.2. parmetros definidos por el usuario para controlar. No puede ser de varios parmetros definidos por el usuario. Formato: UserParameter = <key>, comando> <shell Tenga en cuenta que comandos de la shell no debe devolver una cadena vaca o EOL solamente. Ejemplo: UserParameter system.test =, que | wc-l A partir de la versin 1.8.6 del agente Zabbix no se pondr en marcha en caso de un formato incorrecto tus UserParameter o duplicado de la llave UserParameter est presente en el archivo de configuracin.
Servidor
No No No No
UserParameter
No
A partir de la versin 1.8.6 Zabbix Agente demonio no se inic iar si no vlida (no seguir parmetro = valor notacin) o la puesta parmetro desc onocido est presente en el arc hivo de c onfiguracin.
UnsafeUserParameters No
UserParameter
No
A partir de la versin 1.8.6 Zabbix agente terminar si no vlida (no seguir parmetro = valor notac in) o la puesta parmetro desconoc ido est presente en el arc hivo de c onfiguracin.
zabbix.com/documentation//complete
34/109
03/06/2011
Paso 2 Instale el agente como servicio de Windows.
zabbix_agentd.exe - instalar
Un arc hivo de c onfiguracin de ejemplo est disponible en el archivo fuente Zabbix como misc / c onfzabbix_agentd.win.c onf .
Si desea utilizar el arc hivo de configuracin que no sea c: \ zabbix_agentd.conf, debe utilizar el siguiente comando para la instalacin de servicios:
zabbix_agentd.exe - config <your_configuration_file> - instalar
Ruta c ompleta al archivo de configurac in debe ser especific ado. Paso 3 agente de ejecuc in. Ahora puedes utilizar el panel de control para iniciar el servic io del agente o de ejecuc in:
zabbix_agentd.exe - inicio
Windows NT 4.0 nota. Zabbix_agentd.exe utiliza PDH (Ayudante de datos de rendimiento) de la API para obtener informac in del sistema diferentes, por lo que PDH.DLL es nec esario. Esta DLL no se suministra con Windows NT 4.0, por lo que necesita para desc argar e instalar por ti mismo. Microsoft Knowledge Base el artculo nmero 284.996 se desc ribe en detalle y contiene un enlac e de descarga. Usted puede encontrar este artculo en http://support.microsoft.c om/default.aspx?scid=kb; en-us; 284996 [http://support.microsoft.com/default.aspx?scid=kb;en-us;284996] Uso Comando sintaxis de la lnea:
zabbix_agentd.exe [VHP] [-idsx] [-c <file>] [-t <metric>]
Zabbix Windows agente acepta los parmetros de lnea de comandos siguientes: Opc iones:
-C - config <file> Especificar archivo de configuracin alternativo (por defecto es c: \ zabbix_agentd.conf). -H - help Muestra informacin de ayuda.
Func iones:
-I - instalar Instalar Zabbix agente como un servicio. -D - uninstall desinstalar servicio de agente de Zabbix. -S - inicio inicio de servicio del agente Zabb
El arc hivo de c onfiguracin (c: / zabbix_agentd.conf) c ontiene parmetros de c onfigurac in para zabbix_agentd.exe. parmetros admitidos:
Parmetro Obligatoria Gama Por defecto Descripcin Define un alias para el parmetro. Puede ser til para sustituir el nombre del parmetro largo y complejo con una ms pequea y ms simple. Por ejemplo, si desea recuperar el uso del archivo de paginacin en porcentajes desde el servidor, usted puede utilizar el parmetro "perf_counter [\ archivo de paginacin (_Total) \% de uso]", o puede definir un alias, aadiendo la siguiente lnea al archivo de configuracin Alias = pg_usage: perf_counter [\ archivo de paginacin (_Total) \% de uso] Despus de que usted puede usar el nombre de parmetro "pg_usage" para recuperar la misma informacin. Puede especificar tantos "Alias" los registros que desee. Alias no se puede utilizar para los parmetros definidos en "PerfC ounter" los registros del archivo de configuracin. A partir de la versin 1.8.6 del agente Zabbix no se pondr en marcha en caso de un formato incorrecto tus Alias Alias o duplicado de la llave est en el archivo de configuracin. BufferSend BufferSize No No 13600 5 No mantener los datos de ms de N segundos en el bfer. Nmero mximo de valores en un bfer de memoria. El agente le enviar todos los datos recogidos a Zabbix servidor proxy o si el buffer est lleno. Especifica el nivel de depuracin 0 - sin depurar 1 - la informacin crtica 2 - Informacin de error 3 - advertencias 4 - para la depuracin (produce gran cantidad de informacin) Desactivar los controles activos. El agente trabajar en el modo pasivo para el servidor de msica. Desactivar los controles pasivos. El agente no va a escuchar en cualquier TC P puerto. Slo los controles activos sern procesados. 0 - no desactive 1 - deshabilitar Si los comandos a distancia desde el servidor de Zabbix se admiten. 0 - No se permite 1 - permite
Alias
No
2100 65535
DebugLevel
No
0-4
DisableActive
No
DisablePassive
No
EnableRemoteC ommands No
nico, el nombre de host entre maysculas y minsculas. system.hostname nombre de host requeridos para el control activo y el partido tiene que tal como est configurado en el servidor. nombre de host del sistema se utiliza si no definido. Puede incluir archivos individuales en el archivo de configuracin. 0.0.0.0 102410050 32767 01024 1 Agente de escuchar en la interfaz especificada. Agente de escucha en este puerto para las conexiones desde el servidor. El tamao mximo de archivo de registro en MB . 0 - desactivar la rotacin automtica de registro. Nombre del archivo de registro. Si no se establece, registro de sucesos de Windows se utiliza. 0 Habilitar el registro de los comandos de la shell ejecuta como advertencias. 0 - discapacitados 1 - habilitado El nmero mximo de nuevas lneas el agente enviar por segundo al servidor Zabbix o la transformacin del proxy 'log', 'logrt "y" registro de eventos' cheques activa. El valor siempre se reemplaza por MaxLines 'el parmetro, presentarse en el 'registro', 'logrt "o" registro de eventos' claves artculo. Sintaxis: <parameter_name>, "<perf_counter_path>", <el Define <parameter_name> nuevo parmetro que es un valor promedio de <perf_counter_path> sistema de contador de rendimiento para el <el perodo de tiempo especificado (en segundos). Por ejemplo, si desea recibir el nmero promedio de interrupciones por segundo para el procesador de ltima hora, puede definir nuevos parmetros "interrupciones" de la siguiente manera: PerfC ounter = interrupciones, "\ Procesador (0) \ Interrupciones / seg", 60
LogRemoteC ommands
No
MaxLinesPerSecond
No
11000
100
zabbix.com/documentation//complete
35/109
03/06/2011
PerfC ounter No
No No s No No No No
603600
120 10051
C on qu frecuencia la lista de los controles activos se actualiza, en cuestin de segundos. Puerto del servidor para recuperar la lista de activos y el envo de cheques. Lista delimitada por comas de direcciones IP (o nombres) de Zabbix servidores. No se permiten espacios. La primera entrada se utiliza para recibir la lista de activos y el envo de cheques. Si el soporte IPv6 est activada, '127 .0.0.1 ',':: 127.0.0.1 ",":: ffff: 127.0.0.1 "son tratados por igual. Direccin IP de origen para las conexiones salientes.
3 3 0
Nmero de casos antes de la horquilla de zabbix_agentd que comprueba proceso pasivo. El lmite superior para tener 16 antes de la versin 1.8.5. No gaste ms de segundos de tiempo de espera en el procesamiento de Permitir a todos los personajes que se pasan en los argumentos a los parmetros definidos por el usuario. 0 - no permiten 1 - permiten parmetros definidos por el usuario para controlar. No puede ser de varios parmetros definidos por el usuario. Formato: UserParameter = <key>, comando> <shell Tenga en cuenta que comandos de la shell no debe devolver una cadena vaca o EOL solamente. Ejemplo: system.test UserParameter = echo 1 A partir de la versin 1.8.6 del agente Zabbix no se pondr en marcha en caso de un formato incorrecto tus UserParameter o duplicado de la llave UserParameter est presente en el archivo de configuracin.
UserParameter
A partir de la versin del agente Zabbix 1.8.6 no se iniciar si no vlida (no seguir parmetro = valor notacin) o la puesta parmetro desconoc ido est presente en el arc hivo de c onfiguracin.
A partir de Zabbix 1.8.4, zabbix_sender se ha mejorado en tiempo real, enviando los escenarios rec ogiendo varios valores que se pasan en rpida sucesin, y enviarlos al servidor c on un solo. Valor que no es ms, aparte de valor previo de 0,2 segundos se puede poner en la misma pila, pero el tiempo mximo de la agrupacin sigue siendo de 1 segundo. Si el envo de muchos valores de un archivo de entrada, el remitente Zabbix se les lote de 250 valores de una sola vez (todos los valores sern proc esados), por ejemplo:
# Zabbix_sender-z 127.0.0.1-i / tmp / traptest.txt Informacin del servidor: "Se han procesado 250 Error 0 Total 250 segundos pasaron 0.002668" Informacin del
A partir de la versin 1.8.6 del remitente Zabbix terminar si no vlida (no seguir parmetro = valor notacin) entrada de parmetro est presente en el archivo de configuracin espec ificado. Ver Zabbix remitente pgina de manual para ms informacin.
Nombre-s-host de host o nombre de host <IP Especifique o la direccin IP de un host. -P - puerto> puerto <nmero Especifique el nmero de puerto del agente qu
4 Configuracin
1 Recurso
Zabbix reacc iona a los acontecimientos mediante la ejecucin de conjunto de las operaciones. Una acc in puede ser definida para cualquier evento o serie de eventos generados por Zabbix. Acc in de los atributos:
Parmetro Nombre Descripcin Nombre nico de accin. Fuente del evento. En la actualidad tres fuentes son compatibles: Disparadores - eventos generados por los cambios de estado de disparo Descubrimiento - eventos generados por el descubrimiento de mdulo de red Registro automtico - eventos generados por los nuevos agentes activos la escaladas en Habilitar. Si est activado, la accin ser aumentado de acuerdo con medidas operacin definida para las operaciones. Plazo para aumentar el paso de la escalada. Tema por defecto de notificacin. El tema puede contener macros.
Habilitar progresividad
zabbix.com/documentation//complete
36/109
03/06/2011
Predeterminado mensaje Recuperacin mensajes
Accin de estado: C ondicin Jurdica y Habilitado - accin est activa Social Personas de movilidad reducida - la accin est desactivado
Advertenc ia: antes de habilitar la rec uperacin de mensajes o escaladas, asegrese de agregar "Trigger = valor PROBLEMA" condicin a la ac cin, de lo c ontrario rec urso eventos puede c onvertirse en una esc alada tambin.
Accin condiciones
La acc in se ejec uta slo en caso de que un evento c oincide conjunto definido de c ondic iones. Las siguientes condiciones se pueden definir para activar eventos basados en:
Estado de tipo operadores compatibles = como no como = <> = <> = <> = <> descripcin como no como = <> >= <= = Descripcin = - caso vino de un disparo, que se refiere a un elemento que est vinculado a la aplicacin especificada como - caso vino de un disparo, que se refiere a un elemento que est vinculado a una aplicacin, que contiene la cadena no como - caso vino de disparo, que se refiere a un elemento que est vinculado a una solicitud que no contenga la cadena C omparar con los grupos de acogida que tiene un disparador que gener evento. = - caso provienen de este grupo de acogida <> - evento no provienen de este grupo de acogida C omparar con las plantillas de host el gatillo pertenece. = - caso vino de un disparo heredado de esta plantilla de acogida <> - caso no proceda de un disparador heredado de esta plantilla de acogida C omparar con los host que tiene un disparador que gener evento. = - caso vino de esta hostia <> - caso de no proceder de esta hostia C omparar con disparo que gener evento. = - evento generado por la activacin de este <> - evento generado por otros Trigger C omparar con los nombres de disparo que gener evento. como - String se pueden encontrar en Nombre de disparo. Entre maysculas y minsculas. no como - String no se puede encontrar en Nombre de disparo. Entre maysculas y minsculas. C omparar con el Pasador de gravedad. = - igual a la gravedad de disparo <> - no es igual para activar la gravedad > = - mayor o igual a desencadenar la gravedad <= - inferior o igual a desencadenar la gravedad C omparar con el Pasador de valor. = - el equivalente al valor de disparo (Aceptar o problema) El evento es dentro del perodo de tiempo. en - tiempo de evento coincide con el perodo de tiempo. Perodo de tiempo se da en formato: dd-dd, hh: mm-hh: mm, dd-dd, hh: mm: hh: mm ... C ompruebe si el objetivo est en mantenimiento. = - Anfitrin se encuentra en modo de mantenimiento. <> - Host no est en modo de mantenimiento.
Aplicacin
Grupo de acogida
Anfitrin plantilla
Anfitrin
Gatillo
Trigger (nombre)
Trigger gravedad
Periodo de tiempo en
en
Mantenimiento de estado
= <>
Del valor de iniciacin: Disparador cambia de estado de OK para PROBLEMA (valor de disparo es problema) disparo c ambia de estado del problema a la OK (valor de disparo est bien) Estado de c ambios en Aceptar DESCONOCIDO problema se trata c omo bien PROBLEMA y PROBLEMA DESCONOCIDO Ac eptar, Ac eptar PROBLEMA. The following conditions can be defined for Discovery based events:
Condition type Host IP Supported operators Description = <> = <> = <> = >= <= = <> >= <= like not like C heck if IP address of a discovered Host is or is not in the range of IP addresses. = - Host IP is in the range <> - Host IP is out of the range C heck if a discovered service. = - matches discovered service <> - event came from a different service C heck if TC P port number of a discovered service is or is not in the range of ports. = - service port is in the range <> - service port is out of the range Up matches Host Up and Service Up events Down matches Host Down and Service Down events Downtime for Host Down and Service Down events. Uptime for Host Up and Service Up events. >= - uptime/downtime is more or equal <= - uptime/downtime is less or equal. Parameter is given in seconds. C ompare with value received from an agent (Zabbix, SNMP). String comparison. = - equal to the value <> - not equal to the value >= - more or equal to the value <= - less or equal to the value like has a substring not like does not have a substring. Parameter is given as a string.
Service type
Service port
Discovery status
Uptime/Downtime
Received value
For example this set of conditions (calculation type: AND/OR): Host group = Oracle servers Host group = MySQL servers Trigger name like 'Database is down' Trigger name like 'Database is unavailable' is evaluated as (Host group = Oracle servers or Host group = MySQL servers) and (Trigger name like 'Database is down' or Trigger name like 'Database is unavailable')
Operations
Operation or a set of operations is executed when event matc hes c onditions.
zabbix.com/documentation//complete
37/109
03/06/2011
Zabbix supports the following operations: Send message Remote command(s), including IPMI.
To successfully rec eive and read e-mails from Zabbix, e-mail servers/c lients must support standard 'SMTP/MIME e-mail' format since Zabbix sends UTF-8 data. Starting from 1.8.2 the subject and the body of the message are base64-encoded to follow 'SMTP/MIME e-mail' format standard. Starting with 1.8.3, if the subjec t contains ASCII characters only, it is not UTF-8 enc oded. Additional operations available for disc overy events: Add host Remove host Enable host Disable host Add to group Delete from group Link to template Unlink from template When adding a host, its name is dec ided by standard gethostbyname func tion. If the host c an be resolved, resolved name is used. If not, IP address is used. Besides, if IPv6 address must be used for a host name, then all : (c olons) are replaced by _ (underscores), sinc e : (colons) are not allowed in host names. If performing disc overy by a proxy, currently hostname lookup still takes plac e on Zabbix server. If a host exists in Zabbix configuration with the same name as a newly discovered one, versions of Zabbix prior to 1.8 would add another host with the same name. Zabbix 1.8.1 and later adds _N to the hostname, where N is inc reasing number, starting with 2.
Parameter Description If escalation is enabled for this action, escalation settings: From - execute for each step starting from this one To - till this (0, for all steps starting from From) Period - increase step number after this period, 0 - use default period. Type of action: Send message - send message to user Execute command - execute remote command
Step
Operation type Event Source Send message to Default message Subject Message
Send message to: Single user - a single user User group - to all members of a group If selected, default message will be used. Subject of the message. The subject may contain macros. The message itself. The message may contain macros.
Starting from 1.6.2, Zabbix sends notific ations only to those users, which have read permissions to a host (trigger), which generated the event. At least one host of a trigger expression must be accessible.
Example 2 Message:
Processor load is: {zabbix.zabbix.com:system.cpu.load[,avg1].last(0)}
Example 3 Message:
Latest value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)} MAX for 15 minutes: {{HOSTNAME}:{TRIGGER.KEY}.max(900)} MIN for 15 minutes: {{HOSTNAME}:{TRIGGER.KEY}.min(900)}
2 Macros
Zabbix supports number of mac ros which may be used in various situations. Effective use of mac ros allows to save time and make Zabbix c onfiguration more
zabbix.com/documentation//complete
38/109
03/06/2011
transparent.
zabbix.com/documentation//complete
39/109
03/06/2011
1 {TRIGGER.ID} {TRIGGER.KEY<1-9>} {TRIGGER.NAME} {TRIGGER.NSEVERITY} {TRIGGER.SEVERITY} {TRIGGER.STATUS} {TRIGGER.URL} {TRIGGER.VALUE} X X X X X X X X 2 3 4
{TRIGGERS.UNAC K}
{TRIGGERS.PROBLEM.UNAC K}
{TRIGGERS.AC K}
X X2
[1] Macros for map labels are supported since 1.8. [2] Only functions last, avg, max and min with seconds as arguments are supported in map labels.
User macros
For a greater flexibility, Zabbix supports user macros, which c an be defined on global, template and host level. These mac ros have a special syntax: {$MACRO}. The macros c an be used in item keys and trigger expressions. Since Zabbix version 1.8.4 user macros can also be used in item descriptions and trigger names. The following characters are allowed in the macro names: A-Z , 0-9 , _ , . Zabbix substitutes macros according to the following prec edence: 1. host macros (c hec ked first) 2. mac ros defined for templates of the host. Zabbix will c hec k templates of deeper level taking into ac count template inheritance. 3. global mac ros (checked last) In other words, if a macro does not exist for a host, Zabbix will try to find it in host templates. If still not found, a global template will be used, if exists. If Zabbix is unable to find a macro, the macro will not be substituted. To define user mac ros, go to the corresponding locations in the frontend: for global mac ros, visit Administration General Macros for host and template macros, open host or template properties and look for the Macros block on the right hand side If a user macro is used in items or triggers in a template, it is suggested to add that macro to the template even if it is defined on a global level. That way, exporting the template to XML and importing it in another system will still allow it to work as expected. Most common use cases of global and host macros: 1. taking advantage of templates with host specific attributes: passwords, port numbers, file names, regular expressions, etc 2. global mac ros for global one-clic k configuration changes and fine tuning Example 1 Use of host macro in item Status of SSH daemon key: ssh,{$SSH_PORT} Example 2 Use of host macro in trigger CPU load is too high: {ca_001:system.cpu.load[,avg1].last(0)}>{$MAX_CPULOAD} Suc h a trigger would be created on the template, not edited in individual hosts. If you want to use amount of values as the function parameter (for example, max(#3)), inc lude hash mark in the mac ro like this: SOME_PERIOD #3 Example 3 Use of two mac ros in trigger CPU load is too high: {ca_001:system.cpu.load[,avg1].min({$CPULOAD_PERIOD})}>{$MAX_CPULOAD} Note that a mac ro can be used as a parameter of trigger function, in this example function min(). User mac ros are supported in SNMP OID field since Zabbix 1.8.4.
4.3 Applications
Application is a set of host items. For example, application 'MySQL Server' may c ontain all items which are related to the MySQL server: availability of MySQL, disk spac e, processor load, transac tions per second, number of slow queries, etc. An item may be linked with one or more applications. Applications are used in Zabbix front-end to group items.
zabbix.com/documentation//complete
40/109
03/06/2011
4.4 Graphs
Custom (user defined) graphs allow the creation of complex graphs. These graphs, once configured, c an be easily acc essed via MonitoringGraphs. Configuration of c ustom graphs can be ac cessed by navigating to ConfigurationTemplates or ConfigurationHosts and clicking on Graphs link for c orresponding template or host. When c reating a new graph, first item c an be added from any template or host. Then, depending on the choic e, further items can be added : 1. if the first item was from a template, only from that template; 2. if the first item was from any host, from any host (but not from templates anymore)
4.5 Medias
Media is a delivery channel for Zabbix alerts. None, one or more media types can be assigned to user.
Email
Email notific ation.
Jabber
Notifications using Jabber messaging. When sending notific ations, Zabbix tries to look up a Jabber SRV rec ord first, and if that fails, it uses an address rec ord for that domain. Among Jabber SRV records, the one with the highest priority and maximum weight is chosen. If it fails, other rec ords are not tried. Looking up Jabber SRV rec ords is supported sinc e Zabbix 1.8.6. Prior to that Zabbix only tried an address record.
Script
Custom media scripts are exec uted from the path defined in the Zabbix server c onfiguration file variable AlertScriptPath. The sc ript has three command line variables passed to it: Recipient Subjec t Message Environment variables are not preserved or created for the script, so they should be handled explicitly.
GSM Modem
Zabbix supports sending of SMS messages using Serial GSM Modem connec ted to Zabbix Server's serial port. Make sure that: Speed of a serial device (normally /dev/ttyS0 under Linux) matches GSM Modem. Zabbix does not set speed of the serial link. It uses default settings. The serial device has read/write access for user zabbix. Run commans ls l /dev/ttyS0 to see current permission of the serial device. GSM Modem has PIN entered and it preserves it after power reset. Alternatively you may disable PIN on the SIM c ard. PIN can be entered by issuing command AT+CPIN=NNNN (NNNN is your PIN number, the quotes must present) in a terminal software, such as Unix minic om or Windows HyperTerminal. Zabbix has been tested with the following GSM modems: Siemens MC35 Teltonika ModemCOM/G10
7 Host groups
Host group may have zero, one or more hosts. Host group attributes:
Parameter Description
Group name Unique host group name. The name must be unique within Zabbix Node. Hosts List of hosts of this group.
zabbix.com/documentation//complete
41/109
03/06/2011
8 Host and trigger dependencies
Zabbix does not support host dependenc ies. Host dependencies can be defined using more flexible option, i.e. trigger dependencies. How it works? A trigger may have list of one or more triggers it depends on. It means that the trigger will still change its status regardless of state of the triggers in the list, yet the trigger won't generate notific ations and actions in case if one of the trigger in the list has state PROBLEM.
Example 1
Host dependency Suppose you have two hosts: a router and a server. The server is behind the router. So, we want to receive only one notification if the route is down: The router is down instead of: The router is down and The host is down In order to ac hieve this, we create a trigger dependency:
"The host is down" depends on "The router is down"
In c ase if both the server and the router is down, Zabbix will not execute actions for trigger The host is down.
19 Items
An Item is a single performance or availability c hec k (metric ).
Key name The key name itself has a limited range of allowed characters, which just follow each other. Allowed c harac ters are:
0-9a-zA-Z_-.
Whic h means: all numbers; all lowercase letters; all upperc ase letters; undersc ore; dash; dot.
Key parameters An item key c an have multiple parameters that are comma separated.
zabbix.com/documentation//complete
42/109
03/06/2011
Individual key parameter
The parameter c an also be left empty, thus using the default value. In that case, the appropriate number of c ommas must be added if any further parameters are specified. For example, item key icmpping[,,200,,500] would spec ify that the interval between individual pings is 200 milliseconds, timeout - 500 milliseconds, and all other parameters are left at their defaults. Parameter - quoted string If the key parameter is a quoted string, any Unic ode c haracter is allowed, and included double quotes must be backslash escaped.
Parameter - unquoted string If the key parameter is an unquoted string, any Unic ode c haracter is allowed except comma and right square bracket (]).
Parameter - array If the key parameter is an array, it is again enclosed in square brac kets, where individual parameters come following multiple parameters specifying rules and syntax.
19.1.3 Available enc odings The parameter encoding is used to spec ify encoding for processing c orresponding item c hec ks, so that data acquired will not be corrupted. For a list of supported encodings (c ode page identifiers), please c onsult respec tive documentation, such as doc umentation for libiconv [http://w w w .gnu.org/softw are/libiconv/] (GNU Project) or Mic rosoft Windows SDK documentation for Code Page Identifiers. If an empty encoding parameter is passed, then ANSI with system specific extension (Windows) or UTF-8 (default locale for newer Unix/Linux distributions, see your system's settings) is used by default.
zabbix.com/documentation//complete
43/109
03/06/2011
agent.ping agent.version kernel.maxfiles kernel.maxproc log[file,<regexp>,<encoding>,<maxlines>,<mode>]
logrt[file_format,<regexp>,<encoding>,<maxlines>,<mode>] X eventlog[name,<regexp>,<severity>,<source>,<eventid>, <maxlines>,<mode>] net.if.collisions[if] net.if.in[if,<mode>] bytes (default) mode packets errors dropped net.if.list net.if.out[if,<mode>] bytes (default) mode packets errors dropped net.if.total[if,<mode>] bytes (default) mode packets errors dropped net.tcp.dns[<ip>,zone] net.tcp.dns.query[<ip>,zone,<type>] net.tcp.listen[port] net.tcp.port[<ip>,port] net.tcp.service[service,<ip>,<port>] net.tcp.service.perf[service,<ip>,<port>] net.udp.listen[port] X X X X X X X X X X X X X X X X X X X X X -
proc.mem[<name>,<user>,<mode>,<cmdline>] sum (default) mode avg max min proc.num[<name>,<user>,<state>,<cmdline>] all (default) state sleep zomb run sensor[device,sensor,<mode>] services[<type>,<state>,<exclude>] system.boottime system.cpu.intr system.cpu.load[<cpu>,<mode>] avg1 (default) mode avg5 avg15 system.cpu.num[<type>] type system.cpu.switches system.cpu.util[<cpu>,<type>,<mode>] user (default) nice idle system type kernel iowait wait interrupt softirq steal avg1 (default) mode avg5 avg15 online (default) max
X X X X X X X X X X X X X
system.hostname[<type>] system.localtime type system.run[command,<mode>] mode wait (default) nowait system.stat[resource,<type>] utc (default) local
X X X X X X X -
zabbix.com/documentation//complete
44/109
03/06/2011
system.swap.in[<device>,<type>] count (default) type sectors pages system.swap.out[<device>,<type>] count (default) type sectors pages system.swap.size[<device>,<type>] free (default) total type used pfree pused system.uname system.uptime system.users.num
vfs.dev.read[device,<type>,<mode>] sectors (default) operations type bytes sps ops bps avg1 mode avg5 avg15 vfs.dev.write[device,<type>,<mode>] sectors (default) operations type bytes sps ops bps avg1 (default) mode avg5 avg15 vfs.file.cksum[file] vfs.file.exists[file] vfs.file.md5sum[file] vfs.file.regexp[file,regexp,<encoding>] vfs.file.regmatch[file,regexp,<encoding>] vfs.file.size[file]
X X X X X X
vfs.file.time[file,<mode>] modify (default) mode access change vfs.fs.inode[fs,<mode>] total (default) free mode used pfree pused vfs.fs.size[fs,<mode>] total (default) free mode used pfree pused vm.memory.size[<mode>] total (default) free used shared mode buffers cached pfree pused available web.page.get[host,<path>,<port>] web.page.perf[host,<path>,<port>] web.page.regexp[host,<path>,<port>,<regexp>,<length>]
X X X X X X X X X X X X X X X X X X
zabbix.com/documentation//complete
45/109
03/06/2011
agent.ping C heck the agent availability. Description Return value
agent.version Version of Zabbix Agent. kernel.maxfiles Maximum number of opened files supported by Number of files. OS. Integer. kernel.maxproc Maximum number of processes supported by OS. Number of processes. Integer. String Example of returned value: 1.8.2
log[file,<regexp>,<encoding>,<maxlines>,<mode>] file full file name regexp regular expression for pattern encoding - C ode Page identifier maxlines - Maximum number of new lines per second the agent will send to Zabbix Server or Proxy. This parameter overrides the 'MaxLinesPerSecond' option in zabbix_agentd.conf mode - one of all (default), skip (skipping processing of older data) Parameter mode will be supported from version 2.0.
Log.
logrt[file_format,<regexp>,<encoding>,<maxlines>,<mode>] file_format full file name in format [absolute path][filename format as regexp] regexp regular expression for pattern encoding - C ode Page identifier maxlines - Maximum number of new lines per second the agent will send to Zabbix Server or Proxy. This parameter overrides the 'MaxLinesPerSecond' option in zabbix_agentd.conf mode - one of all (default), skip (skipping processing of older data) Parameter mode will be supported from version 2.0.
Log.
Must be configured as an Active C heck. Example: logrt[/home/zabbix/logs/^logfile[0-9]{1,3}$,,,100] Log rotation is based on last modification times of files. See detailed description.
eventlog[name,<regexp>,<severity>,<source>,<eventid>,<maxlines>,<mode>] name event log name regexp regular expression severity regular expression The parameter accepts the following values: Information, Warning, Error, Failure Audit, Success Audit source - Source identifier eventid - regular expression maxlines - Maximum number of new lines per second the agent will send to Zabbix Server or Proxy. This parameter overrides the 'MaxLinesPerSecond' option in zabbix_agentd.conf mode - one of all (default), skip (skipping processing of older data) Parameter mode will be supported from version 2.0. Must be configured as an Active C heck. Examples: eventlog[Application] eventlog[Security,,"Failure Audit",,529|680] eventlog[System,,"Warning|Error"] eventlog[System,,,,^1$] eventlog[System,,,,@TWOSHORT] - here custom regular expression TWOSHORT is defined as type Result is TRUE and expression itself is ^1$|^70$.
Log.
net.if.collisions[if] Out-of-window collision. net.if.in[if,<mode>] if - interface mode bytes number of bytes (default) packets number of packets errors number of errors dropped number of dropped packets Examples: net.if.in[eth0,errors] net.if.in[eth0] You may use this key with Delta (speed per second) in order to get bytes per second statistics. Number of collisions. if - interface Integer.
Integer.
net.if.list List of network interfaces: Type Status IPv4 Description net.if.out[if,<mode>] if - interface mode bytes number of bytes (default) packets number of packets errors number of errors dropped number of dropped packets Examples: net.if.out[eth0,errors] net.if.out[eth0] You may use this key with Delta (speed per second) in order to get bytes per second statistics. String Supported since Zabbix agent version 1.8.1.
Integer.
net.if.total[if,<mode>] if - interface mode bytes number of bytes (default) packets number of packets errors number of errors dropped number of dropped packets Examples: net.if.total[eth0,errors] net.if.total[eth0] You may use this key with Delta (speed per second) in order to get bytes per second statistics. Note that dropped packets are supported only if both net.if.in and net.if.out work for dropped packets on your platform.
Integer.
net.tcp.dns[<ip>,zone] Example: net.tcp.dns[127.0.0.1,zabbix.com] Internationalized domain names are not supported, please use IDNA encoded names instead.
zabbix.com/documentation//complete
46/109
03/06/2011
Performs a query for the supplied DNS record type.
net.tcp.listen[port] 0 - it is not 1 - it is in LISTEN state Example: net.tcp.listen[80] On Linux supported since Zabbix agent version 1.8.4
net.tcp.port[<ip>,port] Example: net.tcp.port[,80] can be used to test availability of WEB server running on port 80. Old naming: check_port[*] For simple TC P performance testing use net.tcp.[tcp, <ip>,<port>] Note that these checks may result in additional messages in system daemon logfiles (SMTP and SSH sessions being logged usually).
net.tcp.service[service,<ip>,<port>] Example: net.tcp.service[ftp,,45] can be used to test availability of FTP server on TC P port 45. Old naming: check_service[*] Note that before Zabbix version 1.8.3 service.ntp service - one of ssh, ntp, ldap, smtp, ftp, http, pop, should be used instead of ntp. Note that these checks may result in additional nntp, imap, tcp ip - IP address (default is 127.0.0.1) messages in system daemon logfiles (SMTP and SSH sessions being logged usually). port - port number (by default standard service C hecking of encrypted protocols (like IMAP on port 993 port number is used) or POP on port 995) is currently not supported. As a workaround, please use net.tcp.port for checks like these. C hecking of LDAP by Windows agent is currently not supported.
net.tcp.service.perf[service,<ip>,<port>] Example: net.tcp.service.perf[ssh] can be used to test speed of initial response from SSH server. Old naming: check_service_perf[*] service - one of ssh, ntp, ldap, smtp, ftp, http, pop, Note that before Zabbix version 1.8.3 service.ntp nntp, imap, tcp should be used instead of ntp. ip - IP address (default is 127.0.0.1) C hecking of encrypted protocols (like IMAP on port 993 port - port number (by default standard service or POP on port 995) is currently not supported. As a port number is used) workaround, please use net.tcp.service.perf[tcp,<ip>, <port>] for checks like these. C hecking of LDAP by Windows agent is currently not supported.
0 - service is down sec - number of seconds spent while connecting to the service
net.udp.listen[port] 0 - it is not 1 - it is in LISTEN state Example: net.udp.listen[68] On Linux supported since Zabbix agent version 1.8.4
proc.mem[<name>,<user>,<mode>,<cmdline>] Example: proc.mem[,root] - memory used by all processes running under user root. proc.mem[zabbix_server,zabbix] - memory used by all processes zabbix_server running under user zabbix proc.mem[,oracle,max,oracleZABBIX] - memory used by most memory hungry process running under oracle having oracleZABBIX in its command line
name - process name user - user name (default is all users) mode - one of avg, max, min, sum (default) cmdline - filter by command line
proc.num[<name>,<user>,<state>,<cmdline>] Example: proc.num[,mysql] - number of processes running under user mysql proc.num[apache2,www-data] - number of apache2 running under user www-data proc.num[,oracle,sleep,oracleZABBIX] - number of processes in sleep state running under oracle having oracleZABBIX in its command line On Windows, only name and user arguments are supported.
Number of processes.
name - process name user - user name (default is all users) state - one of all (default), run, sleep, zomb cmdline - filter by command line
sensor[device,sensor,<mode>] On Linux 2.4, reads /proc/sys/dev/sensors. Example: sensor[w83781d-i2c-0-2d,temp1] Prior to Zabbix 1.8.4, format sensor[temp1] was used. On OpenBSD, reads hw.sensors MIB. Example: sensor[cpu0,temp0] - one temperature of one C PU sensor[cpu[0-2]$,temp,avg] - average temperature of the first three C PU's Supported on OpenBSD since Zabbix 1.8.4.
device - device name (if <mode> is used, it is a regular expression) sensor - sensor name (if <mode> is used, it is a regular expression) mode - one of avg, max, min (if omitted, device and sensor are treated verbatim).
system.boottime Timestamp of system boot. system.cpu.intr Device interrupts. system.cpu.load[<cpu>,<mode>] C PU load Processor load. cpu - C PU number (default is all C PUs) mode - one of avg1 (default),avg5 (average within 5 minutes), avg15 Example: system.cpu.load[] Old naming: system.cpu.loadX Integer. Integer. Time in seconds.
system.cpu.num[<type>] Number of C PUs. system.cpu.switches Number of available processors. type - one of online (default), max Example: system.cpu.num
zabbix.com/documentation//complete
47/109
03/06/2011
C ontext switches. system.cpu.util[<cpu>,<type>,<mode>] Switches count.
C PU(s) utilisation.
cpu - C PU number (default is all C PUs) type - one of idle, nice, user (default), system, kernel, iowait, interrupt, softirq, steal mode - one of avg1 (default),avg5 (average within 5 minutes), avg15
system.hostname[<type>] On Windows the value is acquired from either GetC omputerName() (for netbios) or gethostname() (for host) function and from hostname command on other systems. Returns host name. String value type (only on Windows, ignored on other systems) netbios (default) or host Example of returned value www.zabbix.com Parameters for this item is supported starting from version 1.8.6. system.localtime utc - (default) the time since the Epoch (00:00:00 UTC , January 1, 1970), measured in seconds. local - the time in the 'yyyy-mmdd,hh:mm:ss.nn,+hh:mm' format Parameters for this item will be supported from version 2.0.
System time.
system.run[command,<mode>] Example: command - command for execution system.run[ls -l /] - detailed file list of root directory. mode - one of wait (default, wait end of execution), Note: To enable this functionality, agent configuration file nowait (do not wait) must have EnableRemoteC ommands=1 option.
system.stat[resource,<type>] ent - number of processor units this partition is entitled to receive (float) kthr,<type> - information about kernel thread states: r - average number of runnable kernel threads (float) b - average number of kernel threads placed in the Virtual Memory Manager wait queue (float) memory,<type> - information about the usage of virtual and real memory: avm - active virtual pages (integer) fre - size of the free list (integer) page,<type> - information about page faults and paging activity: fi - file page-ins per second (float) fo - file page-outs per second (float) pi - pages paged in from paging space (float) po - pages paged out to paging space (float) fr - pages freed (page replacement) (float) sr - pages scanned by page-replacement algorithm (float) faults,<type> - trap and interrupt rate: in - device interrupts (float) sy - system calls (float) cs - kernel thread context switches (float) cpu,<type> - breakdown of percentage usage of processor time: us - user time (float) sy - system time (float) id - idle time (float) wa - idle time during which the system had outstanding disk/NFS I/O request(s) (float) pc - number of physical processors consumed (float) ec - the percentage of entitled capacity consumed (float) lbusy - indicates the percentage of logical processor(s) utilization that occurred while executing at the user and system level (float) app - indicates the available physical processors in the shared pool (float) disk,<type> - disk statistics: bps - indicates the amount of data transferred (read or written) to the drive in bytes per second (integer) tps - indicates the number of transfers per second that were issued to the physical disk/tape (float) This item is supported starting from version 1.8.1.
Numeric value
system.swap.in[<device>,<type>] Swap in. Swap statistics device - swap device (default is all), type - one of Example: system.swap.in[,pages] count (default, number of swapins), sectors (sectors Old naming: swap[in] swapped in), pages (pages swapped in)
system.swap.out[<device>,<type>] Swap out. Swap statistics device - swap device (default is all), type - one of count (default, number of swapouts), sectors (sectors swapped out), pages (pages swapped out) Example: system.swap.out[,pages] Old naming: swap[out]
system.swap.size[<device>,<type>] Number of bytes or percentage device - swap device (default is all), type - one of free (default, free swap space), total (total swap space), pfree (free swap space, percentage), pused (used swap space, percentage) Example: system.swap.size[,pfree] - percentage of free swap space Old naming: system.swap.free, system.swap.total
Swap space.
system.uname Example of returned value: FreeBSD localhost 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 murray@builder.FreeBSD.org: /usr/src/sys/compile/GENERIC i386
String value
system.uptime System's uptime in seconds. system.users.num Number of users connected. vfs.dev.read[device,<type>,<mode>] device - disk device (default is all) type - one of sectors, operations, bytes, sps, ops, bps (must specify exactly which parameter to use, since defaults are different under various OSes) mode - one of avg1 (default),avg5 (average within 5 minutes), avg15 Example: vfs.dev.read[,operations] Old naming: io[*] On Linux and FreeBSD vfs.dev.read[<device>, ops/bps/sps] is limited to 8 devices (7 individual devices and one all device) Number of users C ommand who is used on agent side. Number of seconds Use Units s or uptime to get readable values.
Numeric value
vfs.dev.write[device,<type>,<mode>] device - disk device (default is all) type - one of sectors, operations, bytes, sps, ops, bps (must specify exactly which parameter to use, Example: vfs.dev.write[,operations] Old naming: io[*]
zabbix.com/documentation//complete
48/109
03/06/2011
Disk write statistics. Numeric value
vfs.file.cksum[file] Example of returned value: 1938292000 file - full path to file Example: vfs.file.cksum[/etc/passwd] Old naming: cksum vfs.file.exists[file] C heck if file exists 0 - file does not exist 1 - file exists file - full path to file Example: vfs.file.exists[/tmp/application.pid]
vfs.file.md5sum[file] Example of returned value: b5052decb577e0fffd622d6ddc017e82 File's MD5 checksum MD5 hash of the file. file - full path to file Example: vfs.file.md5sum[/etc/zabbix/zabbix_agentd.conf] The file size limit (64 MB) for this item was removed in version 1.8.6. vfs.file.regexp[file,regexp,<encoding>] Find string in a file Matched string or EOF if expression not found file - full path to file regexp - GNU regular expression encoding - C ode Page identifier Example: vfs.file.regexp[/etc/passwd,zabbix]
vfs.file.regmatch[file,regexp,<encoding>] Find string in a file 0 - expression not found 1 - found file - full path to file regexp - GNU regular expression encoding - C ode Page identifier Example: vfs.file.regmatch[/var/log/app.log,error]
vfs.file.size[file] File must have read permissions for user zabbix File size Size in bytes. file - full path to file Example: vfs.file.size[/var/log/syslog] vfs.file.time[file,<mode>] File time information. Number of seconds. file - full path to file mode - one of modify (default, modification time), access - last access time, change - last change time Example: vfs.file.time[/etc/passwd,modify]
vfs.fs.inode[fs,<mode>] Number of inodes Numeric value fs - filesystem mode - one of total (default), free, used, pfree (free, percentage), pused (used, percentage) Example: vfs.fs.inode[/,pfree] Old naming: vfs.fs.inode.free[*], vfs.fs.inode.pfree[*], vfs.fs.inode.total[*]
vfs.fs.size[fs,<mode>] fs - filesystem mode - one of total (default), free, used, pfree (free, percentage), pused (used, percentage) In case of a mounted volume, disk space for local file system is returned. Example: vfs.fs.size[/tmp,free] Old naming: vfs.fs.free[*], vfs.fs.total[*], vfs.fs.used[*], vfs.fs.pfree[*], vfs.fs.pused[*]
Disk space
vm.memory.size[<mode>] Memory size Memory size in bytes mode - one of total (default), shared, free, buffers, cached, pfree, available Old naming: vm.memory.buffers, vm.memory.cached, vm.memory.free, vm.memory.shared, vm.memory.total
web.page.get[host,<path>,<port>] Get content of WEB page host - hostname WEB page source as path - path to HTML document (default is /) text port - port number (default is 80) Returns EOF on fail. Example: web.page.get[www.zabbix.com,index.php,80]
web.page.perf[host,<path>,<port>] Get timing of loading full WEB page Time in seconds host - hostname path - path to HTML document (default is /) port - port number (default is 80) Returns 0 on fail. Example: web.page.perf[www.zabbix.com,index.php,80]
web.page.regexp[host,<path>,<port>,<regexp>,<length>] host - hostname path - path to HTML document (default is /) port - port number (default is 80) regexp - GNU regular expression length - maximum number of characters to return Returns EOF in case of no match or any other failures (such as timeout, failed connection, etc). Example: web.page.regexp[www.zabbix.com,index.php,80,OK,2]
Matched string
Linux-specific note. Zabbix agent must have read-only acc ess to filesystem /proc. Kernel patches from www.grsecurity.org [http://w w w.grsecurity.org] limit access rights of non-privileged users.
perf_counter[counter,<interval>] Value of any performance counter, where counter is the counter path, and interval is the time period for storing the average value. service_state[*] 0 1 2 3 4 5 6 7 running paused - start pending - pause pending - continue pending - stop pending stopped - unknown Average value of the counter during last interval seconds. Default value, if not given, for interval is 1. Performance Monitor can be used to obtain list of available counters. Until version 1.6 this parameter will return correct value only for counters that require just one sample (like \System\Threads). It will not work as expected for counters that require more that one sample - like C PU utilisation. Since 1.6 interval is used, so the check returns an average value for last interval seconds every time.
Parameter must be real service name as seen in service properties under Name: or name of EXE file.
zabbix.com/documentation//complete
49/109
03/06/2011
255 no such service services[<type>,<state>,<exclude>]
type - one of all (default), automatic, manual, disabled state - one of all (default), stopped, started, start_pending, stop_pending, running, continue_pending, pause_pending, paused List of services, separated by a exclude - list of services to newline or 0, if list would be empty. exclude it from the result. Excluded services should be written in double quotes, separated by comma, without spaces. This parameter is supported starting from version 1.8.1. proc_info[<process>,<attribute>,<type>]
Examples: services[,started] - list of started services services[automatic, stopped] - list of stopped services, that should be run services[automatic, stopped, service1,service2,service3] -list of stopped services, that should be run, excluding services with names service1,service2 and service3
The following attributes are currently supported: vmsize - Size of process virtual memory in Kbytes wkset - Size of process working set (amount of physical memory used by process) in Kbytes pf - Number of page faults ktime - Process kernel time in milliseconds utime - Process user time in milliseconds io_read_b - Number of bytes read by process during I/O operations io_read_op - Number of read operation performed by process io_write_b - Number of bytes written by process during I/O operations io_write_op - Number of write operation performed by process io_other_b - Number of bytes transferred by process during operations other than read and write <process> - process name operations (same as in proc_cnt[] io_other_op - Number of I/O operations performed by process, other than read and write operations parameter) <attribute> - requested process gdiobj - Number of GDI objects used by process userobj - Number of USER objects used by process attribute. <type> - representation type (meaningful when more than one Valid types are: min - minimal value among all processes named <process> process with the same name max - maximal value among all processes named <process> exists) avg - average value for all processes named <process> sum - sum of values for all processes named <process> Examples: 1. In order to get the amount of physical memory taken by all Internet Explorer processes, use the following parameter: proc_info[iexplore.exe,wkset,sum] 2. In order to get the average number of page faults for Internet Explorer processes, use the following parameter: proc_info[iexplore.exe,pf,avg] Note: All io_xxx,gdiobj and userobj attributes available only on Windows 2000 and later versions of Windows, not on Windows NT 4.0.
This will give you a list of SNMP strings and their last value. If it doesn't then it is possible that the SNMP 'community' is different from the standard public in which case you will need to find out what it is. You would then go through the list until you find the string you want to monitor, e.g. you wanted to monitor the bytes coming in to your switc h on port 3 you would use:
interfaces.ifTable.ifEntry.ifOctetsIn.3 = Counter 32: 614794138
You should now use the snmpget command to find the OID for interfac es.ifTable.ifEntry.ifInOc tets.3:
shell> snmpget -On 10.62.1.22 interfaces.ifTable.ifEntry.ifOctetsIn.3
where the last number in the string is the port number you are looking to monitor. This should give you something like the following:
.1.3.6.1.2.1.2.2.1.10.3 = Counter32: 614794138
again the last number in the OID is the port number. 3COM seem to use port numbers in the hundreds, e.g. port 1 = port 101, port 3 = port 103, but Cisco use regular numbers, e.g. port 3 = 3. Step 3 Create an item for monitoring. So, now go back to Zabbix and clic k on Items, selecting the SNMP host you c reated earlier. Depending on whether you used a template or not when creating your host, you will have either a list of SNMP items associated with your host or just a new item box. We will work on the assumption that you are going to c reate the item yourself using the information you have just gathered using snmpwalk and snmpget, so enter a plain English desc ription in the 'Description' field of the new item box. Make sure the 'Host' field has your switch/router in it and change the 'Type' field to SNMPv* agent. Enter the community (usually public ) and enter the numeric OID that you retrieved earlier in to the 'SNMP OID' field, i.e. .1.3.6.1.2.1.2.2.1.10.3 Enter the 'SNMP port' as 161 and the 'Key' as something meaningful, e.g. SNMP-InOctets-Bps. Choose a Multiplier if you want one and enter an 'update
zabbix.com/documentation//complete
50/109
03/06/2011
interval' and 'keep history' if you want it to be different from the default. Set the 'Status' to Monitored, the 'Type of information' to Numeric (float) and the 'Store value' to DELTA (important otherwise you will get c umulative values from the SNMP devic e instead of the latest c hange). Now save the item and go back to the hosts area of Zabbix. From here check that the SNMP device Status shows 'Monitored' and check in Latest data for your SNMP data! Example 1 General example
Parameter Description
Community public Oid Key 1.2.3.45.6.7.8.0 (or .1.2.3.45.6.7.8.0) <Unique string to be used as reference to triggers> For example, my_param.
Note that OID can be given in either numeric or string form. However, in some c ases, string OID must be c onverted to numeric representation. Utility snmpget may be used for this purpose:
shell> snmpget -On localhost public enterprises.ucdavis.memory.memTotalSwap.0
Monitoring of SNMP parameters is possible if either -with-net-snmp or -with-ucd-snmp flag was specified while configuring Zabbix sourc es. Example 2 Monitoring of Uptime
Parameter Description
Community public Oid Key Value type Units Multiplier MIB::sysUpTime.0 router.uptime Float uptime 0.01
IP is taken from the Zabbix host definition. Checking of enc rypted protocols (like IMAP on port 993 or POP on port 995) is c urrently not supported. As a workaround, please use tcp and tcp_perf for c hec ks like these. List of supported simple c hec ks:
Key ftp,<port> C hecks if FTP server is running and accepting connections 0 - FTP server is down 1 - FTP server is running 2 - timeout Description Return value
ftp_perf,<port> C hecks if FTP server is running and accepting connections http,<port> C hecks if HTTP server is running and accepting connections 0 - HTTP server is down 1 - HTTP server is running 2 - timeout 0 - FTP server is down Otherwise, number of seconds spent connecting to FTP server.
http_perf,<port> C hecks if HTTP (WEB) server is running and accepting connections icmpping[<target>,<packets>,<interval>,<size>,<timeout>] C hecks if server is accessible by IC MP ping target - host IP or DNS name packets - number of packets interval - time between successive packets in milliseconds size - packet size in bytes timeout - timeout in milliseconds 0 - HTTP (WEB) server is down Otherwise, number of seconds spent connecting to HTTP server.
icmppingloss[<target>,<packets>,<interval>,<size>,<timeout>] Return percentage of lost packets target - host IP or DNS name packets - number of packets interval - time between successive packets in milliseconds size - packet size in bytes timeout - timeout in milliseconds
icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mode>] Return IC MP ping response time target - host IP or DNS name packets - number of packets interval - time between successive packets in milliseconds size - packet size in bytes
Number of seconds
zabbix.com/documentation//complete
51/109
03/06/2011
timeout - timeout in milliseconds mode - one of min, max, avg (default) imap,<port> C hecks if IMAP server is running and accepting connections
imap_perf,<port> C hecks if IMAP server is running and accepting connections ldap,<port> C hecks if LDAP server is running and accepting connections 0 - LDAP server is down 1 - LDAP server is running 2 - timeout 0 - IMAP server is down Otherwise, number of seconds spent connecting to IMAP server.
ldap_perf,<port> C hecks if LDAP server is running and accepting connections nntp,<port> C hecks if NNTP server is running and accepting connections 0 - NNTP server is down 1 - NNTP server is running 2 - timeout 0 - LDAP server is down Otherwise, number of seconds spent connecting to LDAP server.
nntp_perf,<port> C hecks if NNTP server is running and accepting connections ntp,<port> C hecks if NTP server is running and accepting connections 0 - NTP server is down 1 - NTP server is running 2 - timeout 0 - NNTP server is down Otherwise, number of seconds spent connecting to NNTP server.
ntp_perf,<port> C hecks if NTP server is running and accepting connections pop,<port> C hecks if POP server is running and accepting connections 0 - POP server is down 1 - POP server is running 2 - timeout 0 - NTP server is down Otherwise, number of seconds spent connecting to NTP server.
pop_perf,<port> C hecks if POP server is running and accepting connections smtp,<port> C hecks if SMTP server is running and accepting connections 0 - SMTP server is down 1 - SMTP server is running 2 - timeout 0 - POP server is down Otherwise, number of seconds spent connecting to POP server.
smtp_perf,<port> C hecks if SMTP server is running and accepting connections ssh,<port> C hecks if SSH server is running and accepting connections 0 - SSH server is down 1 - SSH server is running 2 - timeout 0 - SMTP server is down Otherwise, number of seconds spent connecting to SMTP server.
ssh_perf,<port> C hecks if SSH server is running and accepting connections tcp,port C hecks if TC P service is running and accepting connections 0 - TC P service is down 1 - TC P service is running 2 - timeout 0 - SSH server is down Otherwise, number of seconds spent connecting to SSH server.
tcp_perf,port C hecks if TC P service is running and accepting connections 0 - the service on the port is down Otherwise, number of seconds spent connecting to the TC P service.
Timeout processing Zabbix will not process a simple check longer than Timeout seconds defined in Zabbix server c onfiguration file. In c ase if Timeout time is exceeded, 2 is returned. ICMP pings Zabbix uses external utility fping for processing of ICMP pings. The utility is not part of Zabbix distribution and has to be additionally installed. If the utility is missing, has wrong permissions or its loc ation does not matc h FpingLocation defined in configuration file, ICMP pings (icmpping, icmppingsec and icmppingloss) will not be processed. fping must be executable by user Zabbix daemons run as and setuid root. Run these c ommands as user root in order to setup correc t permissions:
shell> chown root:zabbix /usr/sbin/fping shell> chmod 710 /usr/sbin/fping shell> chmod ug+s /usr/sbin/fping
56 or 68 bytes, fping default; 56 bytes on x86, 68 bytes on x86_64 -b 500 milliseconds, fping default -t
Warning: fping defaults can differ depending on platform and version - if in doubt, check fping documentation.
zabbix.com/documentation//complete
52/109
03/06/2011
Zabbix writes addresses to be checked to a temporary file, whic h is then passed to fping. If items have different parameters, only ones with identical parameters are written to a single file.
zabbix[history_str] Number of values stored in table HISTORY_STR zabbix[history_text] Do not use if MySQL InnoDB, Oracle or PostgreSQL is used! This item is supported starting from version 1.8.3. Do not use if MySQL InnoDB, Oracle or PostgreSQL is used!
zabbix[history_uint] Do not use if MySQL InnoDB, Oracle or PostgreSQL is used! This item is supported starting from version 1.8.3.
zabbix[items] Number of items in Zabbix database zabbix[items_unsupported] Number of unsupported items in Zabbix database zabbix[log] Stores warning and error messages generated by Zabbix server. zabbix[process,<type>,<mode>,<state>] The following process types are currently supported: alerter - process for sending notifications configuration syncer - process for managing inmemory cache of configuration data db watchdog - sender of a warning message in case DB is not available discoverer - process for discovery of devices escalator - process for escalation of actions history syncer - history DB writer http poller - web monitoring poller housekeeper - process for removal of old historical data icmp pinger - poller for icmpping checks ipmi poller - poller for IPMI checks node watcher - process for sending historical data and configuration changes between nodes self-monitoring - process for collecting internal server statistics poller - normal poller for passive checks proxy poller - poller for passive proxies timer - process for evaluation of time-related trigger functions and maintenances Time a particular Zabbix process or a group of processes (identified by <type> and <mode>) spent in <state> in trapper - trapper for active checks, traps, interpercentage. It is calculated for last minute only. node and -proxy communication unreachable poller - poller for unreachable If <mode> is Zabbix process number that is not running (for example, with 5 pollers running <mode> is specified to be 6), devices such an item will turn into unsupported state. Note: You can also see these process types in a Minimum and maximum refers to the usage percentage for a single process. So if in a group of 3 pollers usage percentages server log file. per process were 2, 18 and 66, min would return 2 and max would return 66. Processes report what they are doing in shared memory and the self-monitoring process summarizes that data each second. Valid modes are: State changes (busy/idle) are registered upon change - thus a process that becomes busy registers as such and doesn't avg - average value for all processes of a given type change or update the state until it becomes idle. This ensures that even fully hung processes will be correctly registered as (default) 100% busy. count - returns number of forks for a given process C urrently, busy means not sleeping, but in the future additional states might be introduced - waiting for locks, performing type, <state> should not be specified database queries, etc. max - maximum value On Linux and most other systems, resolution is 1/100 of a second. min - minimum value <process number> - process number (between 1 and the number of pre-forked instances). For example, if 4 trappers are running, the value is between 1 and 4. Valid states are: busy - process is in busy state, for example, processing request (default). idle - process is in idle state doing nothing. Examples: zabbix[process,poller,avg,busy] - average time of poller processes spent doing something during the last minute zabbix[process,icmp pinger,max,busy] - maximum time spent doing something by any IC MP pinger process during the last minute zabbix[process,trapper,count] - amount of currently running trapper processes This item is supported starting from version 1.8.5. C haracter. Add item with this key to have Zabbix internal messages stored.
zabbix.com/documentation//complete
53/109
03/06/2011
zabbix[proxy,<name>,<param>]
zabbix[queue,<from>,<to>] <from> - default: 6 seconds <to> - default: infinity Suffixes s,m,h,d,w are supported for these parameters. Parameters from and to are supported starting from version 1.8.3.
Number of server monitored items in the Queue which are delayed by <from> to <to> seconds, inclusive.
zabbix[requiredperformance] Required performance of the Zabbix server, in new values per second expected. Approximately correlates with Required server performance, new values per second in Reports Status of Zabbix. Supported since Zabbix 1.6.2.
zabbix[trends] Number of values stored in table TRENDS zabbix[trends_uint] Do not use if MySQL InnoDB, Oracle or PostgreSQL is used! This item is supported starting from version 1.8.3. Do not use if MySQL InnoDB, Oracle or PostgreSQL is used!
zabbix[triggers] Number of triggers in Zabbix database zabbix[uptime] Uptime of Zabbix server process in seconds. zabbix[wcache,<cache>,<mode>] Cache Mode all float uint values str log text not supported pfree history total used free pfree trend total used free pfree text total used free zabbix[rcache,<cache>,<mode>] Cache Mode pfree buffer total used free Number of processed not supported items. Free space in the history buffer in percentage. This item is supported starting from version 1.8.6. Low number indicates performance problems on the database side. Number of values processed by Zabbix server, except not supported. It is the best indicator of Zabbix performance.
zabbix.com/documentation//complete
54/109
03/06/2011
sum Sum of values
Examples of keys for aggregate items: Example 1 Total disk space of host group 'MySQL Servers'.
grpsum["MySQL Servers","vfs.fs.size[/,total]","last","0"]
Example 3 Average (5min) number of queries per sec ond for host group 'MySQL Servers'
grpavg["MySQL Servers","mysql.qps","avg","300"]
If you don't want to pass your parameters to the script you may use:
script[] or script <- this simplified syntax is supported starting from Zabbix 1.8.1
Zabbix server will find and execute the command in the directory defined in c onfiguration parameter ExternalScripts in zabbix_server.conf. The c ommand will be executed as the user Zabbix server runs as, so any access permissions or environment variables should be handled in a wrapper script, if necessary, and permissions on the command should allow that user to execute it. Only commands in the specified directory are available. This directory is located on the Zabbix server. For custom command execution using Zabbix agents see user parameter documentation. First command line parameter is host name, other parameters are substituted by parameters. Zabbix uses the standard output of the script as the value. Standard error and exit code are disc arded. Do not overuse external checks! It can dec rease performanc e of the Zabbix system a lot. Example 1 Exec ute sc ript check_orac le.sh with parameters -h 192.168.1.4. Host name 'www1.c ompany.com'.
check_oracle.sh[-h 192.168.1.4]
telnet.run[<unique short description>,<ip>,<port>,<encoding>] Run a command on a remote device using telnet connection
zabbix.com/documentation//complete
55/109
03/06/2011
Support of calculated items was introduced in Zabbix 1.8.1
Calculated items is a very nice way of c reating virtual data sourc es. Item values will be periodic ally c alc ulated based on a arithmetical expression. Resulting data will be stored in the Zabbix database as for any other item - this means storing both history and trends values for fast graph generation. To use calculated items, choose item type Calculated. You can create any key name using supported symbols. Calc ulation definition should be entered in the Formula field (named Expression in 1.8.1 and 1.8.2). Key is a unique identifier (per host), using allowed symbols. There is virtually no c onnection between the formula and key. Key parameters are not used in formula in any way - variables may be passed to the formula with user macros. All items that are referenced from the calc ulated item formula must be c reated and c ollec ting data. A very simple formula might look like:
func(<key>|<hostname:key>,<parameter1>,<parameter2>,...)
More complex formula may use a combination of functions, operators and brac kets. You could use all functions and operators supported in trigger expressions. Note that syntax is slightly different, however logic and operator precedenc e are exactly the same.
ARGUMENT func host:key DEFINITION One of functions supported by trigger expressions: last, min, max, avg, count, etc Is a reference to an item. It may be defined as key or hostname:key
Supported characters for a function: a..zA..Z0..9_ Unlike trigger expressions, Zabbix proc esses calculated items acc ording to item update interval, not upon receiving a new value. Also if you change item key of a referenc ed item, you have to update all formulas that used the old key manually. A calculated item may bec ome unsupported in several cases: 1. referenced item(s) not found 2. no data to calculate a function 3. division by zero 4. syntax errors Example 1 Calculate percentage of free disk space on '/'. Use of function last:
100*last("vfs.fs.size[/,free]")/last("vfs.fs.size[/,total]")
Zabbix will take the latest values for free and total disk spac es and calculate perc entage ac cording to the given formula. Example 2 Calculate 10 minute average number of values processed by Zabbix. Use of function avg:
avg("Zabbix Server:zabbix[wcache,values]",600)
Note that extensive use of calculated items with long time periods may affec t performance of the Zabbix Server. Example 3 Calculate total bandwidth on eth0. Sum of two func tions:
last("net.if.in[eth0,bytes]")+last("net.if.out[eth0,bytes]")
zabbix.com/documentation//complete
56/109
03/06/2011
Parameter Description Key Command Unique item key. C ommand to be executed to evaluate value of the Key.
The agent will always return '1' for item with key 'ping'. Example 2 More complex example
UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc l
The agent will return '1', if MySQL server is alive, '0' - otherwise.
To use positional references unaltered, spec ify double dollar sign - for example, awk '{print $$2}'. Unless UnsafeUserParameters agent daemon c onfiguration option is enabled, it is not allowed to pass flexible parameters containing these symbols: \ ' ` * ? [ ] { } ~ $ ! & ; ( ) <>| #@ Command used should always return a value that is not empty (and not a newline). If non-valid value is returned, ZBX_NOTSUPPORTED will be sent back by the agent. Example 1 Something very simple
UserParameter=ping[*],echo $1
We may define unlimited number of items for monitoring all having format ping[something]. ping[0] will always return '0' ping[aaa] will always return 'aaa' Example 2 Let's add more sense!
UserParameter=mysql.ping[*],mysqladmin u$1 p$2 ping|grep alive|wc l
This parameter can be used for monitoring availability of MySQL database. We can pass user name and password:
mysql.ping[zabbix,our_password]
Note that Zabbix agent daemon does not support user parameters with -t or -p agent switches (used to test single item or print out a list of all supported items) until version 1.8.3. See manpage in earlier versions for more information.
12 Triggers
Trigger is defined as a logic al expression and represents system state. Trigger status (expression) is recalculated every time Zabbix server rec eives new value, if this value is part of this expression. If time based functions are used in the expression, it is recalculated every 30 seconds. Time based func tions are: nodata() date() dayofmonth() dayofweek() time()
zabbix.com/documentation//complete
57/109
03/06/2011
now() The expression may have the following values:
VALUE PROBLEM OK DESCRIPTION
Normally means that something happened. For example, processor load is too high. C alled TRUE in older Zabbix versions. This is normal trigger state. C alled FALSE in older Zabbix versions. In this case, Zabbix cannot evaluate trigger expression. This may happen because of several reasons: server is unreachable trigger expression cannot be evaluated trigger expression has been recently changed
UNKNOWN
Returns absolute difference between last and previous values. For strings: 0 values are equal 1 values differ avg sec or #num float, int
Average value for period of time. Parameter defines length of the period in seconds. The function accepts a second, optional parameter time_shift. It is useful when there is a need to compare the current average value with the average value time_shift seconds back. For instance, avg(3600,86400) will return the average value for an hour one day ago. Parameter time_shift is supported from Zabbix 1.8.2. change ignored float, int, str, text, log
Returns difference between last and previous values. For strings: 0 values are equal 1 values differ count sec or #num float, int, str, text, log
Number of historical values for period of time in seconds or number of last #num values matching condition. The function accepts second optional parameter pattern, third parameter operator, and fourth parameter time_shift. For example, count(600,12) will return exact number of values equal to '12' stored in the history. Integer items: exact match Float items: match within 0.00001 String, text and log items: operators like (default), eq, ne are supported Supported operators: eq equal ne not equal gt greater ge greater or equal lt less le less or equal like (textual search only) - matches if contains pattern. For example, count(600,12,gt) will return exact number of values which are more than '12' stored in the history for the last 600 seconds. Another example: count(#10,12,gt,86400) will return exact number of values which are larger than '12' stored in the history among last 10 values 24 hours ago. If there is a need to count arbitrary values, for instance, for the last 600 seconds 24 hours ago, count(600,,,86400) should be used. Parameter #num is supported from Zabbix 1.6.1. Parameter time_shift and string operators are supported from Zabbix 1.8.2. date ignored any
Returns current date in YYYYMMDD format. For example: 20031025 dayofmonth ignored any
Returns day of month in range of 1 to 31. This function is supported since Zabbix 1.8.5. dayofweek ignored any
Returns day of week in range of 1 to 7. Mon 1, Sun 7. delta sec or #num float, int
Same as max()-min(). Since Zabbix 1.8.2, the function supports a second, optional parameter time_shift. See function avg for an example of its use. diff ignored float, int, str, text, log
zabbix.com/documentation//complete
58/109
03/06/2011
0 otherwise fuzzytime sec
Returns 1 if timestamp (item value) does not differ from Zabbix server time for more than N seconds, 0 otherwise. Usually used with system.localtime to check that local time is in sync with local time of Zabbix server. iregexp 1st string, 2nd sec or #num str, log, text
This function is non case-sensitive analogue of regexp. last sec or #num float, int, str, text, log
Last (most recent) value. Parameter: sec ignored #num Nth value For example, last(0) is always equal to last(#1) last(#3) third most recent value The function also supports an optional time_shift parameter. For example, last(0,86400) will return the most recent value one day ago. Zabbix does not guarantee exact order of values if more than two values exist within one second in history. Parameter #num is supported starting from Zabbix 1.6.2. Parameter time_shift is supported starting from Zabbix 1.8.2. logeventid string log
C heck if Event ID of the last log entry matches a regular expression. Parameter defines the regular expression, POSIX style. Returns: 0 - does not match 1 matches This function is supported since Zabbix 1.8.5. logseverity ignored log
Returns log severity of the last log entry. Parameter is ignored. 0 default severity N severity (integer, useful for Windows event logs). Zabbix takes log severity from field Information of Windows event log. logsource string log
C heck if log source of the last log entry matches parameter. 0 does not match 1 matches Normally used for Windows event logs. For example, logsource(VMWare Server) max sec or #num float, int
Maximal value for period of time. Parameter defines length of the period in seconds. Since Zabbix 1.8.2, the function supports a second, optional parameter time_shift. See function avg for an example of its use. min sec or #num float, int
Minimal value for period of time. Parameter defines length of the period in seconds. Since Zabbix 1.8.2, the function supports a second, optional parameter time_shift. See function avg for an example of its use. nodata sec any
Returns: 1 if no data received during period of time in seconds. The period should not be less than 30 seconds. 0 - otherwise now ignored any
Returns number of seconds since the Epoch (00:00:00 UTC , January 1, 1970). prev ignored float, int, str, text, log
Returns previous value. Parameter is ignored. Same as last(#2) regexp 1st string, 2nd sec or #num str, log, text
C heck if last value matches regular expression. Parameter defines regular expression, POSIX style. Second optional parameter is number of seconds or number of lines to analyse. In this case more than one value will be processed. This function is case-sensitive. Returns: 1 found 0 - otherwise str 1st string, 2nd sec or #num str, log, text
Find string in last (most recent) value. Parameter defines string to find. C ase sensitive! Second optional parameter is number of seconds or number of lines to analyse. In this case more than one value will be processed. Returns: 1 found 0 otherwise strlen sec or #num str, log, text
Length of the last (most recent) value in characters (not bytes). Parameters are the same as for function last. For example, strlen(0) is equal to strlen(#1) strlen(#3) length of the third most recent value strlen(0,86400) length of the most recent value one day ago. This function is supported since Zabbix 1.8.4. sum sec or #num float, int
Sum of values for period of time. Parameter defines length of the period in seconds. Since Zabbix 1.8.2, the function supports a second, optional parameter time_shift. See function avg for an example of its use. time ignored any
Some of the func tions cannot be used for non-numeric parameters! Most of numeric func tions ac cept number of seconds as an argument. You may also use prefix # to spec ify that argument has a different meaning:
FUNCTION CALL MEANING sum(600) sum(#5) Sum of all values within 600 seconds Sum of the last 5 values
Func tion last uses a different meaning for values, prefixed with the hash mark - it makes it c hoose n-th previous value, so given values (from most recent to least recent) 3, 7, 2, 6, 5, last(#2) would return 7 and last(#5) would return 5. The following constants are supported for triggers:
CONSTANT DEFINITION Positive float number.
zabbix.com/documentation//complete
59/109
03/06/2011
<number> <number><K|M|G> Examples: 0, 1, 0.15, 123.55 K 1024*N M 1024*1024*N G 1024*1024*1024*N Examples: 2K, 4G, 0.5M
An argument must be given even for those functions whic h ignore it. Example: last(0)
Example 1
Processor load is too high on www.zabbix.com [http://w w w.zabbix.com]
{www.zabbix.com:system.cpu.load[all,avg1].last(0)}>5
'www.zabbix.com:system.cpu.load [http://w w w .zabbix.com:system.cpu.load][all,avg1]' gives a short name of the monitored parameter. It spec ifies that the server is 'www.zabbix.c om [http://w w w .zabbix.com]' and the key being monitored is 'system.cpu.load[all,avg1]'. By using the function 'last()', we are referring to the most rec ent value. Finally, '>5' means that the trigger is in the PROBLEM state whenever the most recent processor load measurement from www.zabbix.c om [http://w w w .zabbix.com] is greater than 5.
Example 2
www.zabbix.c om [http://w w w .zabbix.com] is overloaded
{www.zabbix.com:system.cpu.load[all,avg1].last(0)}>5|{www.zabbix.com:system.cpu.load[all,avg1].min(600)}>2
The expression is true when either the current processor load is more than 5 or the proc essor load was more than 2 during last 10 minutes.
Example 3
/etc/passwd has been changed Use of function diff:
{www.zabbix.com:vfs.file.cksum[/etc/passwd].diff(0)}>0
The expression is true when the previous value of chec ksum of /etc /passwd differs from the most recent one. Similar expressions could be useful to monitor c hanges in important files, such as /etc/passwd, /etc/inetd.c onf, /kernel, etc .
Example 4
Someone is downloading a large file from the Internet Use of function min:
{www.zabbix.com:net.if.in[eth0,bytes].min(300)}>100K
The expression is true when number of rec eived bytes on eth0 is more than 100 KB within last 5 minutes.
Example 5
Both nodes of clustered SMTP server are down Note use of two different hosts in one expression:
{smtp1.zabbix.com:net.tcp.service[smtp].last(0)}=0&{smtp2.zabbix.com:net.tcp.service[smtp].last(0)}=0
The expression is true when both SMTP servers are down on both smtp1.zabbix.c om and smtp2.zabbix.com.
Example 6
Zabbix agent needs to be upgraded Use of function str():
{zabbix.zabbix.com:agent.version.str("beta8")}=1
The expression is true if Zabbix agent has version beta8 (presumably 1.0beta8).
Example 7
Server is unreachable
{zabbix.zabbix.com:status.last(0)}=2
The 'status' is a spec ial parameter which is calculated if and only if c orresponding host has at least one parameter for monitoring. See description of 'status' for more details.
Example 8
No heartbeats within last 3 minutes Use of function nodata():
{zabbix.zabbix.com:tick.nodata(180)}=1
'tic k' must have type 'Zabbix trapper'. In order to make this trigger work, item 'tick' must be defined. The host should periodic ally send data for this parameter using zabbix_sender. If no data is received within 180 sec onds, the trigger value bec omes PROBLEM.
zabbix.com/documentation//complete
60/109
03/06/2011
Example 9
CPU activity at night time Use of function time():
{zabbix:system.cpu.load[all,avg1].min(300)}>2&{zabbix:system.cpu.load[all,avg1].time(0)}>000000&{zabbix:system.cpu.load[all,avg1].time(0)}<060000
The trigger may change its status to true, only at night (00:00-06:00) time.
If the Router1 is down, then obviously the Host and the Router2 are also unreachable. One does not want to receive three notifications about the Host, the Router1 and the Router2. This is when Trigger dependencies may be handy. In this c ase, we define these dependenc ies:
trigger 'Host is down' depends on trigger 'Router2 is down' trigger 'Router2 is down' depends on trigger 'Router1 is down'
Before c hanging status of trigger 'Host is down', Zabbix will check if there are corresponding trigger dependencies defined. If so, and one of the triggers is in PROBLEM state, then trigger status will not be changed and thus actions will not be executed and notifications will not be sent. Zabbix performs this check recursively. If Router1 or Router2 is unreac hable, the Host trigger won't be updated.
Not classified Unknown severity. Information Warning Average High Disaster For information purposes. Be warned. Average problem.
Something important has happened. Red. Disaster. Financial losses, etc. Bright red.
The severities are used to: visual representation of triggers. Different c olors for different severities. audio alarms in Status of Triggers sc reen. Different audio for different severities. user medias. Different media (notification c hannel) for different severities. For example, SMS high severity, email other.
12.5 Hysteresis
Sometimes a trigger must have different conditions for different states. For example, we would like to define a trigger which would bec ome PROBLEM when server room temperature is higher than 20C while it should stay in the state until temperature will not become lower than 15C. In order to do this, we define the following trigger:
Example 1
Temperature in server room is too high
({TRIGGER.VALUE}=0&{server:temp.last(0)}>20)| ({TRIGGER.VALUE}=1&{server:temp.last(0)}>15)
Note use of mac ro {TRIGGER.VALUE}. The mac ro returns c urrent trigger value.
zabbix.com/documentation//complete
61/109
03/06/2011
Number of elements in eac h screen is unlimited.
If graph height is set to be less than 120 pixels, any trigger is not shown in the legend. Slide Show is a set of sc reens, which will be automatically rotated acc ording to c onfigured update intervals.
PARAMETER Name Description Name of slide show.
Update interval (in sec) This parameter defines default interval between screen rotations in seconds. Slides Screen Delay List of individual slides (screens): Screen name How long the screen will be displayed, in seconds. If set to 0, Update Interval of the slide show will be used.
Example 1
Slide show Zabbix administrators The slide show consists of two screens whic h will be displayed in the following order: Zabbix Server Pause 60 seconds Zabbix Server2 Pause 30 sec onds Zabbix Server Pause 60 seconds Zabbix Server2
14 IT Services
IT Services are intended for those who want to get a high-level (business) view of monitored infrastruc ture. In many cases, we are not interested in low-level details, like lack of disk space, high processor load, etc. What we are interested is availability of servic e provided by our IT department. We can also be interested in identifying weak places of IT infrastructure, SLA of various IT services, structure of existing IT infrastructure, and many other information of higher level. Zabbix IT Services provides answers to all mentioned questions. IT Services is hierarc hy representation of monitored data. A very simple IT Service struc ture may look like:
IT Service | |-Workstations | | | |-Workstation1 | | | |-Workstation2 | |-Servers
Each node of the structure has attribute status. The status is c alculated and propagated to upper levels according to selected algorithm. Triggers create lowest level of the IT Servic es. [To be finished] Note that up to and inc luding Zabbix version 1.8.1 triggers with severities Not classified and Information do not impact SLA calc ulation.
4.15.1 Overview
Zabbix has a flexible user permission sc hema whic h c an be effic iently used to manage user permission within one Zabbix installation or in a distributed environment. Permissions are granted to user groups on a host group level. Zabbix supports several types of users. The type controls what administrative func tions a user has permission to.
zabbix.com/documentation//complete
62/109
User types are used to define ac cess to administrative func tions and to specify default permissions.
User type Zabbix User Zabbix Admin Zabbix Admin Description The user has access to Monitoring menu. The user has no access to any resources by default. Permissions to host groups must be explicitly assigned. The user has access to Monitoring and C onfiguration. The user has no access to any host groups by default. Permissions to host groups must be explicitly given.
Super The user has access to everything: Monitoring, C onfiguration and Administration. The user has Read-Write access to all host groups. Permissions cannot be revoked by denying access to specific host groups.
16 The Queue
16.1 Overview
Zabbix Queue displays items that are waiting for a refresh. The Queue is just a logical representation of data from the database. There is no IPC queue or any other queue mechanism in Zabbix. Statistic s shown by the Queue is a good indicator of performance of Zabbix server.
In this c ase, we see that we have three items of type Zabbix agent waiting to be refreshed 0-5 sec onds, and one item of type Zabbix agent (ac tive) waiting more than five minutes (perhaps the agent is down?). Note that information displayed for a child node is not up-to-date. The master node rec eives historical data with a certain delay (normally, up-to 10 seconds for inter-node data transfer), so the information is delayed.
On the screenshot we see that there are 93 items waiting more than 5 minutes for refresh on node Child, however we should not trust the information as it depends on: performance of the Child node communications between Master and Child nodes possible loc al time differenc e between Master and Child nodes A special item key zabbix[queue] can be used to monitor health of the queue by Zabbix. There's a full list of such internal items in item configuration section.
17 Utilities
17.1 Start-up scripts
The scripts are used to automatically start/stop Zabbix processes during system's start-up/shutdown. The scripts are located under directory misc/init.d.
17.2 snmptrap.sh
The script is used to rec eive SNMP traps. The sc ript must be used in combination with snmptrapd, which is part of package net-snmp. Configuration guide: Install snmptrapd (part of net-snmp or ucd-snmp) Edit snmptrapd.c onf. Add this line: traphandle default /bin/bash /home/zabbix/bin/snmptrap.sh Copy misc/snmptrap/snmptrap.sh to ~zabbix/bin Edit snmptrap.sh to configure some basic parameters Add special host and trapper (type string) item to Zabbix. See snmptrap.sh for the item's key. Run snmptrapd
zabbix.com/documentation//complete
63/109
03/06/2011
4.21 Suffixes
It is possible to simplify Zabbix trigger expressions or item keys by using suffixes.
zabbix.com/documentation//complete
64/109
03/06/2011
4.21.1 Standard multipliers
The following table summarises available standard multipliers in Zabbix frontend and server:
Till_1.8.2 Additional in 1.8.2 Server K (Kilo) M (Mega) G (Giga) K (Kilo) M (Mega) G (Giga) T (Tera) T (Tera) P E Z Y (Peta) (Exa) (Zetta) (Yotta)
Frontend
4.21.3 Examples
These multipliers allow to write expressions that are easier to understand and maintain, for example the following expressions: {host:zabbix[proxy,zabbix_proxy,lastaccess]}>120
{host:system.uptime[].last()}<86400
When logged in, you will see Connected as Admin in the lower right corner of the page and access to Configuration and Administration areas will be granted:
In order to add new user, navigate to Administration Users and switch to Users in the dropdown, then click Create User. In new user form, make sure to add your user to one of existing groups, for example Network administrators.
By default, new users have no media (notification method). To create one, c lick Add in the Media section.
In this popup, enter email address of the user. You can also customise severities for whic h the media will be ac tive, but leave all of them enabled for now. Click Add, then click Save in the user properties. The new user appears in the userlist.
By default, new user has no permissions. To grant user rights, c lick on the group in Groups c olumn. This opens group properties. This user will have read-only access to Linux servers group, so c lick on Add below the Read only listbox.
In the new popup, mark checkbox next to Linux servers, then c lick Select.
In user group properties, click Save. In Zabbix, all access rights are assigned to user groups. Done! You may try to log in using c redentials of the new user.
zabbix.com/documentation//complete
65/109
03/06/2011
Administration Media types.
Set correct SMTP server, SMTP helo and SMTP email values. Press Save when ready. SMTP email is used as the From address for outgoing e-mails.
Now you have media type Email defined. A media type must be linked with users, otherwise it will not be used.
If the host is not monitored, clic k on Not monitored in the Status column and confirm the popup. That's it, we don't have to do anything else - if agent and server daemons are running properly, the host will be monitored from now on.
When done, c lick Save. The host should be succ essfully created. Clic k on Details in the upper left corner of the resulting page - that should show you what actually happened.
Acc ording to the details, the effec t of using a template should be that this new host now has entities from Template_Linux - let's verify that. In the Group dropdown, choose one of the groups you added your new host to. That should show a high level configuration overview of this host.
Looks like items have been added suc cessfully. Note the Template_Linux text in gray prefixing them, whic h indicates which template do the entities come from. What about triggers? Looking above the item list, there's a horizontal strip which allows to easily navigate between different entity categories of a host. By default, Zabbix entity lists are limited to 50 entries per page. you can modify this in your user profile.
Great - triggers also seem to be in plac e (the above sc reenshot only shows part of the output, though). There was also something about graphs - using the host bar above the trigger list navigate to custom graph configuration.
Here we c an see that some templated custom graphs are available as well. Now it is time to see what information is available. Go to MenuLatest data and expand some category in there.
zabbix.com/documentation//complete
66/109
03/06/2011
The values are being gathered and displayed along with change information, if any. In Zabbix, for all numeric items a graph can be obtained without any configuration at all - these graphs are generated on runtime. To view such a graph, c lick on Graph link next to any item.
You c an c hange the currently displayed time period using the c ontrols above the graph. Feel free to explore other areas that display monitoring information, including: Monitoring Graphs for c ustom graphs; Monitoring Triggers for a list of currently active problems; Monitoring Dashboard for a high level overview; Monitoring Maps for network maps; Monitoring Screens for compound pages showing several elements at once. After having the basic monitoring in place, we might want to actually notify on situation changes, whic h we'll set up in the next section.
By default, there are no actions configured. To create one, c lick Create Action. In the upcoming form, enter a name for the ac tion. In the most simple case, if we don't add any c onditions, action will be used upon any trigger change from OK to PROBLEM and vice versa. We still should define what the ac tion should do - and that is done in the Action operations block. Click on New in that block, which opens new operation configuration form. Here, c hoose Single user in the Send message to dropdown, then click on Selec t. In the upc oming popup, c hoose the user we created before.
Notice how the e-mail address we specified for that user will be used here. Macros (or variables) {TRIGGER.NAME} and {STATUS}, currently visible in the Default subject and Default message fields, will be replac ed with trigger name and trigger status, respectively. Trigger status will be either PROBLEM or OK. Click Add in the Edit operation block.
We are done with the simple action c onfiguration, so click Save in the Action block. Congratulations - we are done with the simple setup of monitoring some host and sending out notifications based on problem condition definitions. If the notific ations don't work, make sure user you created has at least read permissions on the host whic h generated the event, as discussed in the Add user step. Additionally, you can check out action log by going to Administration Audit, and c hoosing Ac tions in the dropdown, located in the upper right c orner.
6.2 Overview
Currently two main categories of c onfiguration are supported for export - hosts and their associated data, and network maps.
zabbix.com/documentation//complete
67/109
03/06/2011
All map elements, including images, triggers, hosts, host groups and maps; All c onnectors with associated data, inc luding labels and status indicators. Additionally, since 1.8.3 used images (ic ons and background images) are exported as well.
We selected host Template_Linux and all its items and triggers. Press button Preview to see list of elements to be exported:
Step 2 Export data Press button Export to export selected elements to a loc al XML file with default name zabbix_export.xml. The file has the following format (one element of each type is shown):
<?xml version="1.0"?> <zabbix_export version="1.0" date="11.05.07" time="11.11"> <hosts> <host name="ZABBIX Server"> <useip>1</useip> <ip>127.0.0.1</ip> <port>10050</port> <status>1</status> <groups> </groups> <items> <item type="0" key="agent.ping" value_type="3"> <description>Ping to the server (TCP)</description> <delay>30</delay> <history>7</history> <trends>365</trends> <snmp_port>161</snmp_port> <valuemap>Service state</valuemap> <applications> <application>General</application> </applications> </item> .... </items> <triggers> <trigger> <description>Version of zabbix_agent(d) was changed on {HOSTNAME}</description> <expression>{{HOSTNAME}:agent.version.diff(0)}>0</expression> <priority>3</priority> </trigger> .... <graphs> <graph name="CPU Loads" width="900" height="200"> <show_work_period>1</show_work_period> <show_triggers>1</show_triggers> <yaxismin>0.0000</yaxismin> <yaxismax>100.0000</yaxismax> <graph_elements> <graph_element item="{HOSTNAME}:system.cpu.load[,avg15]"> <color>990000</color> <yaxisside>1</yaxisside> <calc_fnc>2</calc_fnc> <periods_cnt>5</periods_cnt> </graph_element> <graph_element item="{HOSTNAME}:system.cpu.load[,avg1]"> <color>009900</color> <yaxisside>1</yaxisside> <calc_fnc>2</calc_fnc> <periods_cnt>5</periods_cnt> </graph_element> <graph_element item="{HOSTNAME}:system.cpu.load[,avg5]"> <color>999900</color> <yaxisside>1</yaxisside> <calc_fnc>2</calc_fnc> <periods_cnt>5</periods_cnt> </graph_element> </graph_elements>
zabbix.com/documentation//complete
68/109
03/06/2011
</graph> .... </graphs> </host> .... </hosts> </zabbix_export>
Note that Zabbix versions 1.8.x place triggers before items in the export and suc h data can not be imported in Zabbix 1.6.x. If such a path is desired, items should be moved in front of the triggers.
To import maps: 1. Press Import Map button. You will get to a sc reen similar to what you see when importing hosts in Configuration Export/Import (Import) menu; 2. Press on Choose file button to select XML file c ontaining exported Zabbix maps; 3. Chec k box under Update existing if you need to update (overwrite) existing maps; 4. Chec k box under Add missing if you need to c reate a new map if it's missing; 5. Press import to send needed data to Zabbix frontend; 6. Wait till page reloads. It can take some time if you have lots of maps to import or lots of hosts, triggers etc . Zabbix frontend will inform you about import suc cess or failure.
Map import dialogue Map import dialogue for Zabbix super admin, showing image importing options (available since version 1.8.3)
Click on Details link on the left hand side to see more information about what was done by import, or why it failed to import.
zabbix.com/documentation//complete
69/109
03/06/2011
<backgroundid> <node>aly_trunk</node> <name>Map BG</name> </backgroundid> <label_type>2</label_type> <label_location>0</label_location> <highlight>1</highlight> <expandproblem>1</expandproblem> </sysmap>
6.5.5.1 Map elements Let's take XML excerpt of some Zabbix map element as an example:
<selement> <selementid>100100000000372</selementid> <elementid> <node>noden1</node> <host>LocalHost</host> <description>DOUBLE</description> <expression>{TimeHost:system.localtime[local].last(0)}=0 & {TimeHost:system.localtime[local].last(0)}=2</expression> </elementid> <elementtype>2</elementtype> <iconid_off> <node>noden1</node> <name>Hub</name> </iconid_off> <label>New Element</label> <label_location>-1</label_location> <x>231</x> <y>122</y> </selement>
<selement> is the opening tag for an element (shorthand of System map element); <selementid> is a unique element id, used for map link references; <elementid> refers to the actual Zabbix entity that is represented on the map (map/hostgroup/host etc .; <node> tag will be present if the exported map c omes from a distributed setup, skipped otherwise; <elementtype> describes what type of element info is stored in <elementid> node; When importing an XML, selementid values don't have to match any values in the existing dataset - they are only used to determine map link connec tions. 6.5.5.2 Element types and storage elementtype tag in map export can be one of the following:
Value Type 0 1 2 3 4 Host Map Trigger Host group Image
Maps are referred to by map name. Trigger reference Triggers are desc ribed in a more complex way: DM setup
<node>noden1</node> <host>LocalHost</host> <description>Lack of free memory on server {HOSTNAME}</description> <expression>{LocalHost:vm.memory.size[free].last(0)}<10000</expression>
Trigger is referred to by host name, trigger description and trigger expression. Host group reference
zabbix.com/documentation//complete
70/109
03/06/2011
DM setup
<node>noden1</node> <name>Local Host Group</name>
Host groups are referred to by host group name. Image reference For images <elementid> node can be skipped. Nodes <iconid_off>, <iconid_on>, <iconid_unknown>, <iconid_maintenance> and <iconid_disabled> desc ribes what icons should be used for the map element according to its status. For default icon, <iconid_off> is used. Inside ic on bloc k, image itself is specified: DM setup
<node>noden1</node> <name>Local Image</name>
To use default icon for any state, node for that state should be skipped in the <selement> bloc k. 6.5.5.3 Element labels <label> desc ribes map elements labels. Macros can be used in labels. <label_location> is used for positioning element's label:
Value Type -1 0 1 2 3 use map default bottom left right top
6.5.5.4 Element positioning <x> and <y> nodes are used for positioning element on the map by x and y coordinates. 6.5.5.5 Map links Example:
<link> <selementid1>100100000000399</selementid1> <selementid2>100100000000402</selementid2> <drawtype>0</drawtype> <color>00AA00</color> <linktriggers> </linktriggers> </link>
<selemetid1> and <selementid2> nodes are used to specify map elements that link connec ts. <drawtype> defines default link style:
Value Style 0 2 3 4 line bold line dot dashed line
<color> spec ifies what the default link colour is; <linktriggers> c ontains information about link status indic ators. Example:
<linktrigger> <triggerid> <node>aly_trunk</node> <host>Symmetra PX40 Clone2</host> <description>APC: Input Current (PHASE L3)</description> <expression>{Symmetra PX40 Clone2:upsPhaseInputCurrent.L3.last(0)}<15 | {Symmetra PX40 Clone2:upsPhaseInputCurrent.L3.last(0)}>18</expression </triggerid> <drawtype>0</drawtype> <color>0</color> </linktrigger>
<triggerid> describes trigger used for indicating link status. Linked trigger referenced the same as map element trigger; <drawtype> and <color> are used to indicate how link should be drawn on the map if this trigger has the highest severity from all the ac tive triggers that are attached to this link. 6.5.5.6 Images Image import/export is supported since Zabbix version 1.8.3. It is possible to export and import used images alongside maps. If exported map is using any images, they are stored in the resulting XML file. An example of how an exported image might look like:
<images>
zabbix.com/documentation//complete
71/109
03/06/2011
<image> <name>Server (small)</name> <imagetype>1</imagetype> <encodedImage>iVBORw0KGgoAA...ErkJggg==</encodedImage> </image> </images>
Value for the <encodedImage> tag is truncated in the above example. Used tags: <images> - root element for images <image> - individual image element <name> - image name, unique <imagetype> - image type, where 1 icon, 2 bac kground <enc odedImage> - base64 enc oded image When importing, missing images c an be added and existing images can be overwritten by marking appropriate c hec kboxes. Image importing is only available to users of Zabbix Super Admin type. Warning: if replacing an existing image, it will affec t all maps that are using this image. It is possible to import images only by unchecking both map c hec kboxes.
To export screens: 1. Mark checkboxes next to screens you wish to export; 2. Select Export selected if it's not selected already; 3. Press button Go; 4. Select file where Zabbix should store XML data with exported screens.
To import screens: 1. Press Import Sc reen button. File selection along with options to control import is shown; 2. Click the button to select XML file containing exported Zabbix sc reens; 3. Chec k box under Update existing if you need to update (overwrite) existing sc reens; 4. Chec k box under Add missing if you need to c reate new screen if it's missing; 5. Press import to send needed data to the Zabbix frontend; 6. Wait till page reloads. It c an take some time if you have lots of sc reens to import or lots their elements. Zabbix frontend will inform you about import success or failure. Click on Details link in the left upper c orner to see more detailed information about what has been done by import, or why it failed to import.
zabbix.com/documentation//complete
72/109
03/06/2011
screenitem - individual screen items, described below.
For example, Simple graph <resourceid> entry from a non-distributed setup would look like this:
<resourceid> <host>Zabbix server</host> <key_>system.cpu.load</key_> </resourceid>
zabbix.com/documentation//complete
73/109
03/06/2011
<name>Linux servers</name>
6.6.8.3 Graph Resource type 0. Additional tags: <resourc eid> - Graph (by name); <dynamic >. Available <resourceid> c ontents:
<host>Zabbix host</host> <name>Graph name</name>
6.6.8.4 History of actions Resource type 12. Additional tags: <elements> - amount of rows to show. 6.6.8.5 History of events Resource type 13. Additional tags: <elements> - amount of rows to show. 6.6.8.6 Hosts info Resource type 4. Additional tags: <resourc eid> - Host group (by name). Available <resourceid> c ontents:
<name>Linux servers</name>
6.6.8.7 Map Resource type 2. Additional tags: <resourc eid> - Zabbix map (by name). Available <resourceid> c ontents:
<name>City map</name>
6.6.8.8 Plain text Resource type 3. Additional tags: <resourc eid> - Item (by key); <elements> - number of rows to show; <style> - if set, HTML c ode will rendered for in item data that contains strings; <dynamic >. Available <resourceid> c ontents:
<host>Zabbix server</host> <key_>system.cpu.load</key_>
6.6.8.9 Screen Resource type 8. Additional tags: <resourc eid> - Screen (by name); Available <resourceid> c ontents:
<name>Application servers screen</name>
6.6.8.10 Server info Resource type 6. No additional tags available. 6.6.8.11 Simple graph Resource type 1. Additional tags: <resourc eid> - Item (by key); <dynamic >. Available <resourceid> c ontents:
<host>Zabbix server</host> <key_>system.cpu.load</key_>
6.6.8.12 Status of host triggers Resource type 16. Additional tags: <resourc eid> - Host (by name); <elements> - number of rows to show. Available <resourceid> c ontents:
zabbix.com/documentation//complete
74/109
03/06/2011
<host>aleksei_host</host>
6.6.8.13 Status of hostgroup triggers Resource type 14. Additional tags: <resourc eid> - Host group (by name); <elements> - number of rows to show. Available <resourceid> c ontents:
<name>aaa</name>
6.6.8.14 System status Resource type 15. No additional tags available. 6.6.8.15 Triggers info Resource type 5. Additional tags: <resourc eid> - Host group (by name); Available <resourceid> c ontents:
<name>aaa</name>
6.6.8.16 Triggers overview Resource type 9. Additional tags: <resourc eid> - Host group (by name); Available <resourceid> c ontents:
<name>aaa</name>
6.6.8.17 URL Resource type 11. Additional tags: <url> - fully qualified or relative URL.
zabbix.com/documentation//complete
75/109
03/06/2011
<valign>0</valign> <halign>0</halign> <style>0</style> <dynamic>0</dynamic> </screenitem> </screenitems> </screen> </screens>
7 Tutorials
This sec tion contains step-by-step instruc tions for most common tasks.
When exec uted, the command returns total number of SQL queries. Step 2 Add this c ommand to agent's c onfiguration file. Add the command to zabbix_agentd.conf:
UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
mysql.questions is an unique identifier. It can be any string, for example, queries. Test this parameter by using zabbix_get utility. Step 3 Restart Zabbix agent. Agent will reload c onfiguration file. Step 4 Add new item for monitoring. Add new item with Key=mysql.questions to the monitored host. Type of the item must be either Zabbix Agent or Zabbix Agent (active). Be aware that type of returned values must be set correc tly on Zabbix server. Otherwise Zabbix won't ac cept them.
Type of Must be set to log. information Update interval sec) (in The parameter defines how often ZABBIX Agent will check for any changes in the log file. Normally must be set to 1 second in order to get new records as soon as possible.
zabbix.com/documentation//complete
76/109
03/06/2011
Step 2
Configure new ac tion by going to Configuration Actions and in the New action block choose operation type Remote command. Pay attention to the following parameters of the action:
PARAMETER Action type Description Must be set to 'Remote command'.
Remote command Each line must contain an command for remote execution. For example: host:sudo /etc/init.d/apache restart. Remote command may contain macros!
Note the use of sudo - Zabbix user does not have permissions to restart system services by default. See below for hints on how to configure sudo. Syntax of remote c ommands:
REMOTE COMMAND Description
{HOSTNAME}:<command> C ommand 'command' will be executed on the host where the event happened. <host>:<command> <group>#<command> C ommand 'command' will be executed on host 'host'. C ommand 'command' will be executed on all hosts of host group 'group'.
Zabbix agent exec utes c ommands in background. Zabbix does not c hec k if a command has been executed successfully. Remote c ommands in Zabbix < 1.4 are limited to 44 characters, in Zabbix >= 1.4 they are limited to 255 c harac ters. Syntax of IPMI remote commands:
REMOTE COMMAND {HOSTNAME}:IPMI [value] <ipmi Description control> The syntax is for execution of IPMI command on the host where the event happened. Supported values: on, off or number (1, by default). The syntax is for execution of IPMI command on a single host. The syntax is for execution of IPMI command for all hosts of a host group.
Acc ess permissions Make sure that user 'zabbix' has exec ute permissions for configured commands. One may be interested in using sudo to give acc ess to privileged commands. To configure ac cess, exec ute as root:
# visudo
On some systems sudoers file will prevent non-local users from executing c ommands. To c hange this, comment out requiretty option in /etc/sudoers. Example 1 Restart of Windows on c ertain condition. In order to automatically restart Windows in case of a problem detected by Zabbix, define the following ac tions:
PARAMETER Action type Remote command Description 'Remote command' host:c:\windows\system32\shutdown.exe r f Replace 'host' with Zabbix hostname of Windows server.
zabbix.com/documentation//complete
77/109
03/06/2011
9 WEB Monitoring
9.1 Goals
Zabbix WEB Monitoring support is developed with the following goals: Performance monitoring of WEB applic ations Availability monitoring of WEB applic ations Support of HTTP and HTTPS Support of complex sc enarios c onsisting of many steps (HTTP requests)
9.2 Overview
Zabbix provides effec tive and very flexible WEB monitoring functionality. The module periodically executes WEB scenarios and keeps collected data in the database. The data is automatic ally used for graphs, triggers and notific ations. The following information is c ollec ted per each step of WEB scenario: Response time Download speed per second Response c ode Zabbix also checks if a retrieved HTML page contains a pre-defined string. Zabbix WEB monitoring supports both HTTP and HTTPS. When running a web scenario, Zabbix always follows redirec ts. To use HTTP proxy, set environment variable http_proxy for Zabbix server user. For example, http_proxy=http://proxy_ip:proxy_port.
Name
Variables
Steps
As soon as a scenario is created, Zabbix automatically adds the following items for monitoring and links them to the selected application. Actual sc enario name will be used instead of Sc enario.
Item Description
This item will collect information about download speed (bytes per second) of the whole scenario, i.e. average for all steps. Download speed for scenario 'Scenario' Item key: web.test.in[Scenario,,bps] Type: float Failed step of scenario 'Scenario' This item keeps number of failed step of the scenario. If all steps are executed successfully, 0 is returned. Item key: web.test.fail[Scenario] Type: integer
Web monitoring items are added with 30 day history retention and 90 day trend retention periods. These items can be used to create triggers and define notification conditions. Example 1 Trigger WEB scenario failed
zabbix.com/documentation//complete
78/109
03/06/2011
The trigger expression can be defined as:
{host: web.test.fail[Scenario]}.last(0)#0
Do not forget to replace the Scenario with real name of your scenario. Example 2 Trigger WEB application is slow The trigger expression can be defined as:
{host: web.test.in[Scenario,,bps]}.last(0)<10000
Do not forget to replace the Scenario with real name of your scenario.
Post
Timeout
Required
Status codes
As soon as a step is created, Zabbix automatically adds the following items for monitoring and links them to the selected application. Actual scenario and step names will be used instead of Sc enario and Step respectively.
Item Download speed for step 'Step' of scenario 'Scenario' Description This item will collect information about download speed (bytes per second) of the step. Item key: web.test.in[Scenario,Step,bps] Type: float This item will collect information about response time of the step in seconds. Response time is counted from the beginning of the request until all information has been transferred. Item key: web.test.time[Scenario,Step] Type: float This item will collect response codes of the step. Item key: web.test.rspcode[Scenario,Step] Type: integer
Web monitoring items are added with 30 day history retention and 90 day trend retention periods. These items can be used to create triggers and define notification conditions. Example 1 Trigger Zabbix GUI login is too slow The trigger expression can be defined as:
{zabbix: web.test.time[ZABBIX GUI,Login]}.last(0)>3
Step 2 Add new Web scenario. We will add a new sc enario for monitoring of Zabbix Web interface. The scenario will exec ute number of steps. Navigate to Configuration Web, selec t a host, then c lick Create sc enario button. Click on Selec t next to the Application field and choose the applic ation we just c reated.
Note that we also created two macros, {user} and {password}. Step 3 Define steps for the sc enario.
zabbix.com/documentation//complete
79/109
03/06/2011
Web scenario step 1
Click on Add button in the Steps sec tion to add individual steps.
We start by c hec king that the first page responds correctly, returns with HTTP response code 200 and contains text SIA Zabbix.
When done configuring the step, c lick Add. Web scenario step 2 We continue by logging in the Zabbix frontend, and we do so by reusing the macros (variables) we defined on the scenario level, {user} and {password}.
Note that Zabbix frontend uses JavaSc ript redirect when logging in, thus first we must log in, and only further steps may check for logged-in features. Additionally, login step must use full URL to index.php file. All the post variables must be on a single line and concatenated with & symbol. Example string for logging into Zabbix frontend:
name=Admin&password=zabbix&enter=Enter
Web scenario step 3 Being logged in, we should now verify the fact. To do so, we check for a string that is only visible when logged in - for example, Profile link appears in the upper right c orner.
Web scenario step 4 Now that we have verified that frontend is acc essible, we can log in and retrieve logged-in c ontent, we should also log out - otherwise Zabbix database will become polluted with lots and lots of open session rec ords.
Final step configuration The final web sc enario step configuration should look like this:
The list of applic ations and linked sc enarios will appear in Monitoring Web:
The last one will c ollec t data from files such filelog_abc _1 or filelog__001. Important notes: The server and agent keep a trace of the monitored log's size and last modific ation time (for logrt) in two counters. The agent starts reading the log file from the point it stopped the previous time. The number of bytes already analyzed (the size counter) and the last modific ation time (the time counter) are stored in the Zabbix database and are sent to the agent, to make sure it starts reading the log file from this point. Whenever the log file bec omes smaller than the log size counter known by the agent, the counter is reset to zero and the agent starts reading the log file from the beginning taking the time counter into account. All files matching the filename format in the provided directory are analyzed every cyc le the agent tries to get the next line from the log (for logrt). If there are several matc hing files with the same last modification time in the direc tory, then the agent will read lexicographically the smallest one. Zabbix Agent processes new records of a log file onc e per Refresh period sec onds. Zabbix Agent does not send more than maxlines of a log file per sec ond. The limit prevents overloading of network and CPU resources and overrides the default value provided for MaxLinesPerSecond parameter in the configuration file of the agent. Spec ial note for \ path separators: if file_format is file\.log, then there should not be direc tory file, since it is not possible to unambiguously define whether . is escaped or is the first symbol of the file name.
zabbix.com/documentation//complete
80/109
03/06/2011
11 Discovery
11.1 Goals
There are several goals of Zabbix network discovery module: Simplify deployment Network disc overy can be used to signific antly simplify and speed up Zabbix deployment. It also makes possible creation of user friendly appliances. Simplify administration Properly configured network discovery c an simplify administration of Zabbix system a lot. Support of changing environments Network disc overy makes possible use of Zabbix in rapidly changing environments with no excessive administration.
11.2 Overview
Zabbix provides effective and very flexible network discovery func tionality. Zabbix network discovery is based on the following information: IP ranges Availability of external servic es (FTP, SSH, WEB, POP3, IMAP, TCP, etc ) Information received from Zabbix agent Information received from SNMP agent It does NOT provide: Disc overy of network topology Every service and host (IP) checked by Zabbix network discovery module generates events whic h may be used to create rules for the following actions: Generating user notifications Adding and removing hosts Enabling and disabling hosts Adding hosts to a group Removing hosts from a group Linking hosts to a template Unlinking hosts from a template Executing remote sc ripts The actions c an be configured to respect host or service uptime and downtime. If Zabbix server is compiled with IPv6 support and fping6 utility is missing, ICMP checks will fail for IPv4 devices as well. Only since Zabbix 1.8.2 IPv4 addresses are still processed by loc ated fping.
11.3.1 Discovery
Zabbix periodically scans IP ranges defined in network discovery rules. Frequency of the check is configurable for eac h rule individually. Each rule defines set of service checks to be performed for IP range. Events generated by network discovery module have Event Source Discovery. Zabbix generates the following events:
Event Service Up Service Down Host Up Host Down When generated Every time Zabbix detects active service. Every time Zabbix cannot detect service. If at least one of the services is UP for the IP. If all services are not responding.
Service Discovered If the service is back after downtime or discovered for the first time. Service Lost Host Discovered Host Lost If the service is lost after being up. If host is back after downtime or discovered for the first time. If host is lost after being up.
11.3.2 Actions
For a description of all conditions available for network discovery based events see action conditions. For a description of all operations available for network discovery based events see operations.
zabbix.com/documentation//complete
81/109
03/06/2011
Parameters of network disc overy rule:
Parameter Name Description
Name of the rule. For example, Local network. Range of IP addresses for discovery. It may have the following formats: Single IP: 192.168.1.33 Range of IP addresses: 192.168.1.1-255 IP mask: 192.168.4.0/24 List: 192.168.1.1-255,192.168.2.1-100,192.168.2.200,192.168.4.0/24 This parameter defines how often Zabbix should execute this rule. Zabbix will use this list of checks for discovery of hosts and services. List of supported checks: SSH, LDAP, SMTP, FTP, HTTP, POP, NNTP, IMAP, TC P, ZABBIX Agent, SNMPv1 Agent, SNMPv2 Agent, SNMPv3 Agent Parameter Ports may be one of following: Single port: 22 Range of ports: 22-45 List: 22-45,55,60-70
IP range
Checks
Uniqueness criteria may be: Device uniqueness criteria IP address (no processing multiple-IP devices) One of discovery check of the rule. Will be based either on a SNMP or Zabbix Agent check. Status Active the rule is active and will be execute by Zabbix server Disabled the rule is not active. It won't be executed.
Zabbix will try to discover hosts in IP range of 192.168.1.1-192.168.1.255 by connecting to Zabbix Agents and getting value from system.uname key. A value rec eived from an agent can be used to apply different actions for different operating systems. For example, link Windows boxes to Windows_Template, Linux boxes to Linux_Template. The rule will be executed every 10 minutes (600 seconds). When the rule is added, Zabbix will automatic ally start disc overy and generation of Disc overy based events for further processing. Step 2 Define an action for adding newly disc overed Linux servers.
The action will be activated if: servic e Zabbix Agent is Up value of system.uname (Zabbix Agent's key we used in rule definition) c ontains Linux Uptime is more than 1 hour (3600 sec onds) The action will execute the following operations: adds newly disc overed host to group Linux servers (also adds host if wasn't added previously) links host to template Template_Linux. Zabbix will automatic ally start monitoring of the host using items and triggers from Template_Linux. Step 3 Define an action for adding newly disc overed Windows servers.
A server will be removed if service Zabbix Agent is Down for more than 24 hours (86400 seconds).
zabbix.com/documentation//complete
82/109
03/06/2011
ifMtu ifSpeed ifPhysAddress ifAdminStatus ifOperStatus ifInOctets ifInUcastPkts ifInNUcastPkts ifInDiscards ifInErrors 1.3.6.1.2.1.2.2.1.4 1.3.6.1.2.1.2.2.1.5 1.3.6.1.2.1.2.2.1.6 1.3.6.1.2.1.2.2.1.7 1.3.6.1.2.1.2.2.1.8
1.3.6.1.2.1.2.2.1.10 The total number of octets received on the interface, including framing characters. 1.3.6.1.2.1.2.2.1.11 The number of subnetwork-unicast packets delivered to a higher-layer protocol. 1.3.6.1.2.1.2.2.1.12 The number of non-unicast (i.e., subnetwork- broadcast or subnetwork-multicast) packets delivered to a higher-layer protocol. 1.3.6.1.2.1.2.2.1.13 The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space.
1.3.6.1.2.1.2.2.1.14 The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.
ifInUnknownProtos 1.3.6.1.2.1.2.2.1.15 The number of packets received via the interface which were discarded because of an unknown or unsupported protocol. ifOutOctets ifOutUcastPkts ifOutNUcastPkts ifOutDiscards ifOutErrors ifOutQLen 1.3.6.1.2.1.2.2.1.16 The total number of octets transmitted out of the interface, including framing characters. 1.3.6.1.2.1.2.2.1.17 1.3.6.1.2.1.2.2.1.18 1.3.6.1.2.1.2.2.1.19 The total number of packets that higher-level protocols requested be transmitted, and which were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space.
1.3.6.1.2.1.2.2.1.20 The number of outbound packets that could not be transmitted because of errors. 1.3.6.1.2.1.2.2.1.21 The length of the output packet queue (in packets).
string to search for The string is used for exact match with a value when doing lookup. C ase sentitive.
Now we have index, 5388. The index will be appended to the Data OID in order to receive value we are interested in:
HOST-RESOURCES-MIB::hrSWRunPerfMem.5376 HOST-RESOURCES-MIB::hrSWRunPerfMem.5377 HOST-RESOURCES-MIB::hrSWRunPerfMem.5388 HOST-RESOURCES-MIB::hrSWRunPerfMem.5389 HOST-RESOURCES-MIB::hrSWRunPerfMem.5390 HOST-RESOURCES-MIB::hrSWRunPerfMem.5391 HOST-RESOURCES-MIB::hrSWRunPerfMem.5392 = = = = = = = INTEGER: INTEGER: INTEGER: INTEGER: INTEGER: INTEGER: INTEGER: 528 KBytes 528 KBytes 31468 KBytes 31740 KBytes 32116 KBytes 30420 KBytes 32560 Kbytes
Dynamic indexes are cac hed since Zabbix version 1.6.3. Using dynamic indexes leads to more SNMP queries in Zabbix versions up to 1.7. Dynamic index lookup and data retrieval is performed in single connec tion sinc e Zabbix version 1.7.
zabbix.com/documentation//complete
83/109
03/06/2011
13.3 IPMI actions
Two types of ac tions can be defined: automatic ac tions, whic h are executed automatically
IPMI scripts, can be executed manually from Zabbix GUI See c orresponding sections of the Manual for more details.
14 Use of Proxies
Zabbix Proxies may greatly simplify maintenance of Zabbix environment and inc rease performance of the central Zabbix server. Also, use of Zabbix Proxies is the easiest way of implementing centralized and distributed monitoring, when all Agents and Proxies report to one Zabbix server and all data is collected centrally.
Proxy Yes
3 Configuration
3.1 Managing proxies
Zabbix proxy management sc reen can be acc essed by opening Administration DM and choosing Proxies from the dropdown in the upper right corner. Proxies can be created and deleted here. Each proxy also has last time listed when it c ontacted the server (either to send in new data or because of the heartbeat connection). Opening proxy properties also allows to select which hosts should be monitored by that proxy. Zabbix proxy must use a separate database. Pointing it at the Zabbix server database will break the c onfiguration.
If a host is c onfigured to be monitored by a Proxy, the Proxy will perform gathering of performanc e and availability data for the host. The data will be collected by the Proxy and sent to Zabbix Server for further processing.
15 Distributed Monitoring
Zabbix c an be configured to support hierarchical distributed monitoring.
15.1 Goals
There are several goals of the distributed monitoring: Get control of whole monitoring from a single or several locations Zabbix administrator may control c onfiguration of all Nodes from a single Zabbix WEB front-end. Hierarc hical monitoring This is for monitoring of c omplex multi-level environments. Monitor large c omplex environments This is espec ially useful when monitoring several geographic al locations. Offload the overhead from busy Zabbix server Monitoring thousands of hosts using single Zabbix server? This may be for you!
15.2 Overview
zabbix.com/documentation//complete
84/109
03/06/2011
Zabbix provides effective and reliable way of monitoring distributed IT infrastruc ture. Configuration of the whole distributed setup can be done from a single loc ation via common WEB interface. Zabbix supports up-to 1000 (one thousand) Nodes in a distributed setup. Each Node is responsible for monitoring of its own Location. Node can be c onfigured either locally or by its Master node whic h has a c opy of configuration data of all Child Nodes. Configuration of Child Nodes can be done in off line mode, i.e. when there are no connec tivity between Master and Child Node. Hierarchical distributed monitoring allows having tree-like struc ture of Nodes. Each Node reports to its Master Node only. All Nodes may work even in c ase of c ommunication problems. Historical information and events are stored locally. When communic ation is back, Child Nodes will optionally send the data to Master Node. New Nodes c an be attac hed to and detached from the Zabbix distributed setup without any loss of functionality of the setup. No restart of any Node required. Each Node has its own c onfiguration and works as a normal Zabbix Server.
15.3 Configuration
15.3.1 Configuration of Nodes
Node configuration is performed in Administration DM sec tion.
Parameters of a Node:
Parameter Name Id Type Time zone IP Port Description Unique node name. Unique Node ID. Local Local node Remote Remote node Time zone of the Node. Zabbix automatically converts time stamps to local timezone when transferring time related data across nodes. Node IP address. Zabbix trapper must be listening on this IP address. Node Port number. Zabbix trapper must be listening on this port number. Default is 10051.
Do not keep history older than (in days) For non local historical data only. Zabbix won't keep history of the node longer than N days. Do not keep trends older than (in days) For non local trend data only. Zabbix won't keep trends of the node longer than N days.
Step 3 Convert database data. Zabbix server has to be exec uted to convert unique IDs for use by first node.
cd bin ./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf Converting tables .................................................................. done. Conversion completed.
This should be executed only onc e. This option is not required to start Zabbix server! Running Zabbix server with the -n option does not start the server process. Step 4 Configure Node parameters.
Step 6 Start Master Node. We should see NodeID in startup messages of server log file:
31754:20070629:150342 server #16 started [Node watcher. Node ID:1]
For Child Node Step 1 Install Zabbix. Follow standard installation instruc tions to create database, install Zabbix frontend and binaries. Step 2 Setup NodeID in server c onfiguration file. In file zabbix_server.c onf:
NodeID=2
zabbix.com/documentation//complete
85/109
03/06/2011
Step 3 Convert database data.
Zabbix server has to covert all IDs to unique ones for the sec ond node.
cd bin ./zabbix_server -n 2 -c /etc/zabbix/zabbix_server.conf Converting tables .................................................................. done. Conversion completed.
This should be executed only once. This option is not required to start Zabbix server! Step 4 Configure Node parameters.
Step 6 Start Child Node. We should see NodeID in startup messages of server log file:
27524:20070629:150622 server #9 started [Node watcher. Node ID:2]
Does it work? Selection of active nodes will appear automatically after nodes are defined:
Add host for monitoring for Child Node node and see events c oming to Master Node:
In this example, Riga (node 4) will collect events from all child nodes. It may also optionally c ollec t historic al information as well.
If everything was configured properly, Zabbix node will automatically start configuration and data exchange with all nodes in distributed setup. You may see the following messages in server log file:
... 11656:20061129:171614 NODE 2: Sending data of node 2 to node 1 datalen 3522738 11656:20061129:171614 NODE 2: Sending data of node 2 to node 1 datalen 20624 ...
zabbix.com/documentation//complete
86/109
Each Child Node periodically sends configuration c hanges, historical data and events to its Master Node.
Data Frequency
Configuration changes Every 120 seconds. Events History Every 10 seconds. Every 10 seconds.
Child Node will resend data in case of communication problems. Trends are calc ulated locally based on received historical data. Zabbix does not send operational data across the nodes. For example, item-related information (last c hec k, last value, etc ) exists only locally. Sending of Events and History can be controlled by configuration parameters NodeNoEvents and NodeNoHistory.
16.1 Goals
There are several goals of the maintenance mode: Protect Zabbix database from any changes initiated by users Perform database maintenance Inform users about reason of the maintenance work Users from a range of IP addresses will be able to work with the GUI during the maintenance mode normally Automatic return to normal mode when maintenanc e is over
16.2 Configuration
In order to enable maintenanc e mode, file c onf/maintenance.conf.php must be modified to uncomment the following lines:
// Maintenance mode define('ZBX_DENY_GUI_ACCESS',1); // IP range, who allowed to connect to FrontEnd $ZBX_GUI_ACCESS_IP_RANGE = array('127.0.0.1'); // MSG showed on Warning screen! $_REQUEST['warning_msg'] = 'Zabbix is under maintenance.'; Parameter ZBX_DENY_GUI_ACCESS Details Enable maintenance mode: 1 maintenance mode is enabled, disabled otherwise
C onnections from these IP addresses will be allowed with no maintenance mode. ZBX_GUI_ACCESS_IP_RANGE For example: 192.168.1.1-255 warning_msg Informative message.
zabbix.com/documentation//complete
87/109
03/06/2011
17 WEB Interface
There are several useful features of ZABBIX WEB interface: almost all sc reens support full-sc reen mode Ctrl + Mouse clic k make possible selection of multiple list elements (hosts, items, triggers, etc) sound alarm can be switched on and off in Status of Triggers view a new theme c an be created to matc h your preferences or a c ompany color sc hema
Modified c ode:
$cmbTheme = new CComboBox('theme',$theme); $cmbTheme->AddItem(ZBX_DEFAULT_CSS,S_SYSTEM_DEFAULT); $cmbTheme->AddItem('css_ob.css',S_ORIGINAL_BLUE); $cmbTheme->AddItem('css_bb.css',S_BLACK_AND_BLUE); $cmbTheme->AddItem('css_new.css','MY_COOL_THEME');
Note that original themes use constants, but the new example uses string (enclosed in apostrophes). You should not omit apostrophes, as that will result in warnings. If you want your theme name to be translatable, you must add the c onstant used for name in loc ale files - in that case make sure to prefix it with S_. Step 4 You should also add your new theme to the config.php file:
$combo_theme->addItem('css_new.css','MY_COOL_THEME');
Step 5 Activate new theme. In Zabbix GUI, you may either set this theme to be a default one or c hange your theme in user profile. Enjoy new look and feel!
2 Configuration
2.1 WEB
The screen can be used to manage monitoring of WEB sc enarios. 2.1.1 List of WEB sc enarios It provides list of ac tive WEB scenarios.
Displayed data:
Parameter Name Description Unique name of a WEB scenario.
Number of steps Number of individual steps (HTTP requests) the scenario consists of. Update interval Status Frequency of execution of the WEB scenario. Status of the scenario: Active the scenario is active Disabled the scenario is disabled. Note that disabled scenarios are not displayed by default.
zabbix.com/documentation//complete
88/109
03/06/2011
Configuration parameters:
Parameter Application Name Description Host application the scenario is linked to. Unique name of the WEB scenario.
Update interval (in sec) Frequency of execution of the WEB scenario. Agent C lient agent string. Zabbix will pretend that it is Firefox, MS Explorer or any other application. Useful when WEB site returns different content for different browsers. Status of the scenario: Active the scenario is active Disabled the scenario is disabled. Note that disabled scenarios are not displayed by default. List of variables (macros) that can be used in scenario steps (URL and Post variables). It has the following format: {macro1}=value1 {macro2}=value2 For example: username=Alexei password=kj3h5kJ34bd The macros can be referenced as {username} and {password}. Zabbix will automatically replace them with actual values. List of steps executed by the scenario: Name step name Timeout timeout URL location to connect to Required required string Status step status
Status
Variables
Steps
2.1.3 WEB step c onfiguration The screen is used to define parameters of each individual step of the WEB scenario.
Configuration parameters:
Parameter Name URL Post Timeout Required Description Unique step name. URL to connect and retrieve data. For example: http://www.zabbix.com [http://www.zabbix .com ] https://www.google.com [https://www.go ogle .com ] List of POST variables. GET variables can be passed in the URL parameter. Zabbix will not spend more than Timeout second on processing the URL. Required string. Retrieved content (HTML) must contain this string, otherwise the step will fail. If empty, no check is performed.
List of expected HTTP codes. If Zabbix gets a code which is not in the list, the step will fail. Status codes If empty, no check is performed. For example: 200,201,210-299
2.2 Hosts
2.2.1 Hosts The screen is used to manage host related information. List of Hosts The screen provides a list of monitored hosts.
Displayed data:
Parameter Name DNS IP Port Templates Status Description Unique host name. Host DNS name if used. Host IP address if used. Zabbix Agent port number. It is ignored by Zabbix if no agent used. List of templates linked to the host. Host Status: Monitored Host is active and being monitored Disabled Host disabled
Agent (Zabbix, SNMP) availability: Availability Available agent is up and running Unknown agent is not available Error Any errors related to use of agent based checks.
Host mass-update screen The screen is ac cessible by selecting hosts and clic king on button Mass update. It is a very effective way of c hanging attributes for a number of hosts.
Configuration parameters:
Parameter Name Groups New group DNS name IP address Connect to Description Unique host name. List of host groups the host belongs to. New group can be created and linked to the host. Ignored, if empty. Optional host DNS name. Optional host IP address. Zabbix server will use this setting to retrieve data from agents: DNS name C onnect to host DNS name IP address C onnect to host IP (recommended)
zabbix.com/documentation//complete
89/109
03/06/2011
Port Monitored by proxy
Status
Link with template Use IPMI IPMI IP address IPMI port IPMI privilege level IPMI username IPMI password Use profile
In the host and template properties there are also buttons Clone and Full c lone. Clone will add to the Zabbix configuration new host or template preserving host configuration parameters including template linkage (thus also all templated item, trigger, graphs and application information from those templates). Full clone in addition to this will also clone directly attached items, triggers, graphs and applic ations. 2.2.2 Templates The screen is used to manage host templates. List of Templates The screen provides list of templates.
Displayed data:
Parameter Description Name Template name.
Configuration parameters:
Parameter Name Groups New group Link with template Description Unique template name. List of host groups the template belongs to. New group can be created and linked to the template. Ignored, if empty. Link template with one or more templates. Information about items, triggers and graphs will be inherited from the templates.
2.2.3 Proxies The screen is used to manage proxies. List of Proxies The screen provides list of proxies.
Displayed data:
Parameter Name Description Unique Proxy name.
Last seen (age) Last time we received a heart beat message or data from the Proxy. Members List of hosts monitored by this Proxy.
Configuration parameters:
Parameter Description
Proxy name Unique Proxy name. Hosts List of hosts monitored by this Proxy.
2.2.4 Host groups The screen is used to manage host groups. List of Host Groups. The screen provides list of host groups.
Displayed data:
Parameter Description Name # Host Group name. Number of group members (hosts).
zabbix.com/documentation//complete
90/109
03/06/2011
Members List of host group members.
Host group configuration The screen provides acc ess to host group details.
Configuration parameters:
Parameter Description
Group name Unique host group name. Hosts List of hosts, members of the group.
2.2.5 Template linkage The screen is used to manage host template linkage. List of Templates The screen provides list of template and linked hosts.
Displayed data:
Parameter Description Templates Host template name. Hosts List of hosts linked to the template.
Template linkage The screen give ac cess to management of host template linkage.
Configuration parameters:
Parameter Description Template Hosts Template name. List of hosts linked to the template.
2.2.6 Applications The screen is used to manage applications. List of Applications The screen provides list of applications.
Displayed data:
Parameter Description
Application Application name. Show Link to host items, also displays number of items (members of the application).
Configuration parameters:
Parameter Description Name Hosts Application name. Must be unique within one host. Host name the application is linked to.
2.3 Items
2.3.1 Items The screen is used to manage item related information. List of Items The screen provides list of items linked to a host.
Displayed data:
Parameter Description Key Description Item description (name). Unique item key.
Update interval Frequency of the check. History Trends Type Status Applications Error Number of days Zabbix keeps detailed historical data. Number of days Zabbix keeps trends data. Item type. Item status. List of applications the item belongs to. Any errors related to this item.
Item mass-update screen The screen is ac cessible by selecting items and clic king on button Mass update. It is very effec tive way of changing attributes of a number of items.
Click on a parameter you would like to c hange, enter new value and press Save.
zabbix.com/documentation//complete
91/109
03/06/2011
Copy selected to
The screen makes possible copy of a selec ted item to a number of hosts.
Select hosts you would like to copy items and press Copy. Item configuration The screen provides acc ess to c onfiguration of a single item.
Item attributes:
Parameter Description Item description. It may contain this macros: $1,$2,$9 - first, second, ninth parameter of item key For example: Free disk space on $1 If item key is vfs.fs.size[/,free], the description will be automatically changed to Free disk space on / Item type. See sections below for detailed description of each type. Item key. The key must be unique within a single host. The key value must be supported by an agent or Zabbix server, if key type is Zabbix Agent, Zabbix Agent (active), Simple check, or Zabbix aggregate. Type of data as stored in the database after performing conversions, if any. Numeric (unsigned) 64bit unsigned integer Numeric (float) floating point number Character character (string) data limited to 255 bytes Log log file. Must be set for keys log[]. Text text of unlimited size The data type is used for integer items in order to specify expected data type. Decimal data in decimal format Octal data in octal format Hexadecimal data in hexadecimal format Zabbix will automatically perform conversion to numeric. This is supported starting from version 1.8. If set, Zabbix will add prefix if required and the unit postfix to all received values. Till Zabbix 1.8.2, default multiplier is 1024, and some units have special processing: b, bps - 1000 is 1K, special processing for bits. Since Zabbix 1.8.2, default multiplier is 1000, and special processing is used for units B, where multiplier is 1024. For example, if units are set to B, Zabbix will display: 1 as 1B 1024 as 1KB 1536 as 1.5KB unixtime translated to yyyy.mm.dd hh:mm:ss uptime translated to hh:mm:ss or N days, hh:mm:dd, parameter is treated as number of seconds since 01/01/1970. s translated to yyymmmdddhhhmmmsss, parameter is treated as number of seconds. Only 3 upper major units are shown, like 1m3w5d or 2h4m46s. If there are no weeks to display, only two levels are displayed - 1m5d (no hours, minutes or seconds are shown). Pre-process received values. Do not use - do not pre-process received values Custom multiplier multiply received values by value defined in C ustom multiplier Use this option to convert values received in KB, MBps, etc into B, Bps. Otherwise Zabbix cannot correctly set prefixes (K, M, G etc). Multiply all received value by this integer or floating-point value.
Description
Type Key
Type of information
Data type
Units
Use multiplier
Refresh this item every N seconds. List of exceptions for Update Interval. For example: 10 sec, 1-5,09:00-18:00 refresh set to 10 seconds for working hours. Otherwise default update interval will be used. If multiple flexible intervals overlap, the smallest Delay value is used for the overlapping period. Period format: dd-dd,hh:mm-hh:mm;dd-dd,hh:mm-hh-mm For example, 1-5,09:00-18:00;6-7,10:00-12:00 1 - Monday, ,7 - Sunday Keep detailed history for N days in the database. Older data will be removed by Housekeeper. Keep aggregated (hourly min, max, avg, count) detailed history for N days in the database. Older data will be removed by Housekeeper. Active - active (normal) status. Zabbix will process this item. Disabled item is disabled. This item will not be processed. Not supported item is not supported by Zabbix or SNMP agent. This item will not be processed, however Zabbix may try to periodically set status of such items to Active if configured. As is no pre-processing Delta (speed per second) evaluate value as (value-prev_value)/(time-prev_time), where value current value value_prev previously received value time current timestamp prev_time timestamp of previous value This setting is extremely useful to get speed per second based on constantly growing value. Delta (simple change) evaluate as (value-prev_value), where value current value value_prev previously received value Apply value mapping to this item. Value mapping does not change received values, it is for displaying data only. It works with integer items only. For example, Windows service states.
Flexible intervals
Status
Store value
Show value
Log format
Available for items of type Log only. Supported placeholders: * y: Year (0001-9999) * M: Month (01-12) * d: Day (01-31) * h: Hour (00-23) * m: Minute (00-59) time * s: Second (00-59) Leaving this field blank means don't try to parse the timestamp. For example, consider the following line from Zabbix agent log file: 23480:20100328:154718.045 Zabbix Agent started. Zabbix 1.8.2 (revision 11211). It begins with six character positions for PID, then follow date, time, and the rest of the line. Log time format for this line would be pppppp:yyyyMMdd:hhmmss. Note that p and : chars are just placeholders and can be anything other than yMdhms. Link item to one or more applications.
Applications
Until version 1.8.1 Zabbix supports the following unit prefixes: K (Kilo); M (Mega); G (Giga); T (Tera);
zabbix.com/documentation//complete
92/109
03/06/2011
Since version 1.8.2, additionally supported prefixes inc lude: P (Peta); E (Exa); Z (Zetta); Y (Yotta); See more details about items in other sec tions of the Manual. Unit blacklist
By default, spec ifying a unit for an item will result in multiplier prefix being added - for example, value 2048 with unit B would be displayed as 2KB. For a predefined, hardcoded list of units this is prevented: ms RPM rpm % Note that both lowercase and uppercase rpm (rpm and RPM) strings are blac klisted.
2.4 Triggers
2.4.1 Triggers The screen is used to manage triggers. List of Triggers The screen provides list of triggers linked to a host.
Displayed data:
Parameter Description Severity Status Name C oloured trigger severity. Trigger status. Note that Disabled triggers are hidden by default. Trigger name.
Trigger mass-update screen The screen is ac cessible by selecting triggers and c licking on button Mass update. It is very effective way of c hanging attributes of a number of triggers.
Click on a parameter you would like to c hange, enter new value and press Save. Copy selected to The screen makes possible copy of a selec ted trigger to a number of hosts.
Select hosts you would like to copy items and press Copy. Trigger configuration The screen provides acc ess to c onfiguration of a single trigger.
Trigger attributes:
Parameter Name Expression The trigger depends on New dependency Event generation Severity Comments URL Disabled Description Trigger name. The name may contain macros. Logical expression used for calculation of trigger state. List of triggers the trigger depends on. Add new dependency. Normal events are generated normally, on trigger status change Normal + Multiple PROBLEM events (Multiple TRUE events in 1.8.2 and before) events are also generated on every PROBLEM evaluation of the trigger Trigger severity. Text field used to provide more information about this trigger. May contain instructions for fixing specific problem, contact detail of responsible staff, etc. If not empty, the URL is used in the screen 'Status of Triggers'. Trigger can be disabled if required.
2.5 Actions
2.5.1 Ac tions The screen is used to manage actions. List of Actions The screen provides list of actions.
Displayed data:
Parameter Description Name Action name.
Conditions List of conditions for this action. Operations List of operations for execution.
zabbix.com/documentation//complete
93/109
03/06/2011
Status Status of the action.
Action configuration The screen provides acc ess to c onfiguration of a single action.
See more details about configuration of ac tions, conditions and operations in other sections of the Manual.
2.6 Graphs
2.6.1 Graphs Graph configuration section allows to manage custom graphs. Since Zabbix 1.8, it is acc essible by navigating to Configuration Hosts or Configuration Templates and clicking on corresponding Graphs link. List of Graphs This screen provides list of configured c ustom graphs.
Displayed data:
Parameter Description Name Width Height Graph name. Graph width in pixels. Graph height in pixels.
Graph configuration This screen provides ac cess to configuration of a single custom graph. It c an be acc essed by c licking on the graph name in graph c onfiguration list.
Graph attributes:
Parameter Name Width Height Description Unique graph name. Graph width in pixels. Graph height in pixels. Graph type: Normal normal graph, values displayed as lines. Stacked stacked graph. Pie pie graphs. Exploded exploded pie graph. If selected, non-working hours will be shown with gray background. Not available for pie and exploded pie graphs. If selected, simple triggers will be displayed as red lines. Not available for pie and exploded pie graphs. Display percentile for left Y axis. Normally used for displaying 95% percentile. Only available for normal graphs.
Graph type
Percentile line (Right) Display percentile for right Y axis. Normally used for displaying 95% percentile. Only available for normal graphs. Type of Y axis: Calculated Y axis value will be automatically calculated Calculated [min=0] Y min value is set to 0, maximum value will be automatically calculated. Fixed fixed min and max value for Y axis. Not available for pie and exploded pie graphs. Type of Y axis: Calculated Y axis value will be automatically calculated Calculated [min=0] Y min value is set to 0, maximum value will be automatically calculated. Fixed fixed min and max value for Y axis. Not available for pie and exploded pie graphs. Enable 3D style. For pie and exploded pie graphs only. Display legend. For pie and exploded pie graphs only. List of graph elements (items) to be displayed for this graph.
Graph element:
Function
Draw style
Which Y axis side the element is assigned to. Draw order, 0 will be processed first.
Below the graph preview is displayed. Note that it will not show any data for template items.
zabbix.com/documentation//complete
94/109
03/06/2011
2.7 Screens
2.7.1 Sc reens The screen is used to manage screens. List of Screens The screen provides list of screens.
Parameter Name
Screen configuration (high-level) The screen provides acc ess to c onfiguration of a single screen.
Screen configuration (screen elements) The screen provides acc ess to c onfiguration of a single screen giving ac cess to configuration of all elements.
Click on a screen element (cell) to c hange what information should be displayed in the screen cell.
Resource
Horizontal align
Vertical align
2.8 Maps
2.8.1 Maps The screen is used to manage user-defined maps. List of Maps The screen provides list of maps.
Displayed data:
Parameter Description Name Width Height Map name Map width in pixels. Map height in pixels.
Map configuration (high-level) The screen provides acc ess to c onfiguration of a user-defined sc reen.
Icon highlighting
zabbix.com/documentation//complete
95/109
03/06/2011
Mark elements on trigger status change Expand single problem
Configuration of map element The screen provides acc ess to c onfiguration of a single map element.
Type
Label
Label location
Icon (problem) Icon to be used in case of problems (one or more). Icon (unknown) Icon to be used if the selected host is in an unknown state. Icon (disabled) Icon to be used if the selected host is disabled. Coordinate X Coordinate Y URL X coordinate for the map element. Y coordinate for the map element. If set, the URL will be used when a user clicks on the screen element.
Link status indicators List of triggers linked to the link. In case if a trigger has status PROBLEM, its style is applied to the link. Default link style: Line single line Bold line bold line Dot dots Dashed line dashed line Default link colour.
Type (OK)
Colour (OK)
2.9 IT Services
2.9.1 IT Services The screen is used to manage IT Servic es. List of IT Services The screen provides list of IT Servic es.
Displayed data:
Parameter Service Description Service name.
Status calculation How the service updates its status. Trigger Linked to a trigger: none no linkage trigger name linked to the trigger, thus depends on the trigger status
IT Service configuration
zabbix.com/documentation//complete
96/109
03/06/2011
The screen provides acc ess to c onfiguration of IT services.
IT Service attributes:
Parameter Name Parent service Depends on Description Service name. Parent service. For reference only, it cannot be changed. List of child services the service depends on. How to calculate status of the service: Do not calculate do not calculate service status Problem, if it least one child has a problem consider problem if at least one child service has a problem Problem, if all children have problems consider problem if all children have problems Select to display SLA data. SLA percentage for this service. It is used for reporting. By default, all service operates 24x7x365. Add new service times to make exceptions. Service times: One-time downtime a single downtime. Service state within this period does not affect SLA. Uptime service uptime Downtime Service state within this period does not affect SLA. Services of the lowest level must be linked to triggers. Display sort order, lowest comes first.
2.10 Discovery
2.10.1 Disc overy The screen is used to manage discovery rules. List of discovery rules The screen provides list of discovery rules.
Displayed data:
Parameter Description Name IP range Delay Checks Status Name of discovery rule. Range of IP addresses affected by the discovery rule. Frequency in seconds. List of checks executed by the discovery rule. Status of the discovery rule: Active the rule is active Disabled the rule is disabled
Discovery rule configuration The screen provides acc ess to c onfiguration of a discovery rule.
Who performs discovery: Discovery by proxy (no proxy) Zabbix Server is doing discovery proxy name This proxy performs discovery Range of IP addresses for discovery. Format: Single IP: 192.168.1.33 Range of IP addresses: 192.168.1.1-255 List: 192.168.1.1-255,192.168.2.1-100,192.168.2.200 This parameter defines how often Zabbix should execute this rule in seconds. List of supported checks: SSH, LDAP, SMTP, FTP, HTTP, POP, NNTP, IMAP, TC P, Zabbix Agent, SNMPv1 Agent, SNMPv2 Agent, SNMPv3 Agent SLA percentage for this service. It is used for reporting. This parameter may be one of following: Single port: 22 Range of ports: 22-45 List: 22-45,55,60-70 Status of the discovery rule: Active the rule is active Disabled the rule is disabled
IP range
Port
Status
2.11 Export/Import
2.11.1 Export The screen is used to export hosts, items, triggers and graphs. Export The screen provides list of hosts and their elements for export.
Select elements you would like to export, then press Preview or Export. Displayed data:
Parameter Description Name DNS IP Port Status Host name. Host DNS name. IP address of Zabbix agent. Zabbix agent port number. Host status.
zabbix.com/documentation//complete
97/109
03/06/2011
Items Triggers Graphs Select to export host items. Select to export host triggers. Select to export host graphs.
Preview page:
2.11.2 Import The screen is used to perform XML import of host related data.
Rules
3 Administration
3.1 General
3.1.1 GUI This sec tion allows to set Zabbix frontend related defaults.
Configuration parameters:
Parameter Default theme Dropdown first entry Search/Filter elements limit Description Default theme for users who have not set a specific one in their profiles Whether first entry in element selection dropdowns should be all or none. Maximum amount of elements that will be available as search or filter results.
Max count of elements to show inside table cell For entries that are displayed in a single table cell, no more than configured here will be shown. Event acknowledges Show events not older (Days) Max count of events per trigger to show This parameter defines if event acknowledges are activated in Zabbix interface. This parameter defines for how many days event are displayed in Status of Triggers screen. Default is 7 days. Maximum number of event to show for each trigger in Status of Triggers screen. Default is 100.
3.1.2 Housekeeper The Housekeeper is a periodical process which is executed by Zabbix Server. The process removes outdated information and information deleted by user.
Configuration parameters:
Parameter Description
Do not keep actions older than (in This parameter defines how many days of executed actions (emails, jabber, SMS, etc) history Zabbix will keep in the database. Older actions days) will be removed. Do not keep events older than (in This parameter defines how many days of events history Zabbix will keep in the database. Older events will be removed. days)
Image definition Zabbix images are stored in the database. There are two types of images: Icon Background
Ic ons are used in for displaying System Map elements. Backgrounds are used as bac kground images of System Maps. Image attributes:
Parameter Description Name Type Upload Unique name of an image. Either Icon or Background Name of local file (PNG, JPEG) to be uploaded to Zabbix
Note that you may upload image of any size, however images bigger than 1.5MB may not be displayed in maps. Increase value of max_memory_size in php.ini if you have this problem. 3.1.4 Regular expressions This sec tion allows to create custom regular expressions for reusing elsewhere in Zabbix. A c ustom regular expression may c onsist of multiple subexpressions, and it can be tested in this section by providing a test string. Results show status of eac h subexpression and total custom expression status.
zabbix.com/documentation//complete
98/109
03/06/2011
Value maps are used to c reate a mapping between numeric values and string representations. Value mappings are used for representation of data in both Zabbix front-end and information sent by email/jabber/SMS/whatever. For example, an item which has value '0' or '1' can use value mapping to represent the values in a human readable form: '0' 'Not Available' '1' 'Available' Value mapping can be used only for items having type Unsigned integer. Value mapping definition
3.1.6 Working time Working time is system-wide parameter whic h defines working time. Currently this is used for graphs only. Working time is displayed as a white bac kground, while non-working time is displayed as grey.
Empty format is equal to 01-07,00:00-23:59 For example: 1-5,09:00-18:00 1-5,09:00-18:00;6-7,10:00-16:00 3.1.7 Other Refresh unsupported items Some items may bec ome unsupported due to errors in User Parameters or because of an item being not supported by an agent. Zabbix c an be configured to periodic ally make unsupported items ac tive. Database watchdog Availability of Zabbix server depends on availability of back-end database. It cannot work without a database. Database watchdog, a special Zabbix server process, is created in order to alarm Zabbix administrators in c ase of disaster. The watchdog will send notifications to a user group in case if the database is down. Zabbix server will not stop; it will wait until the database is back again to continue proc essing.
Parameter Refresh unsupported items (in sec) Group for discovered hosts
Description Zabbix will activate unsupported item every N seconds. If set to 0, the automatic activation will be disabled. Proxies check unsupported items every 10 minutes. This is not configurable for Proxies. Hosts discovered by network discovery will be automatically placed in the hostgroup, selected here.
User group for database down message User group for sending alarm message or 'None'.
Until Zabbix version 1.8.2 database watc hdog is supported for MySQL only. Since 1.8.2, it is supported for all databases. The Administration Tab is available to users of type Super Administrators only.
3.2 Authentication
3.2.1 HTTP The screen can be used to enable Apac he based (HTTP) authentication. The authentication will be used to check user names and passwords. Note that an user must exist in Zabbix as well, however his Zabbix password will not be used.
Configuration parameters:
Parameter Description
HTTP Authentication Enabled This parameter defines if Apache based authentication is enabled.
Be careful! Make sure that Apache authentication is configured and works properly before switc hing it on. In c ase of Apache authentication all users (even with GUI Acc ess set to Internal) will be authorised by Apache, not by Zabbix! 3.2.2 LDAP The screen can be used to enable external LDAP authentication. The authentic ation will be used to check user names and passwords. Note that an user must exist in Zabbix as well, however his Zabbix password will not be used. Zabbix LDAP authentication works at least with Microsoft Active Directory and OpenLDAP.
Configuration parameters:
Parameter Description Name of LDAP server. For example: ldap://ldap.zabbix.com
zabbix.com/documentation//complete
99/109
03/06/2011
LDAP Host Port Base DN Search Attribute Bind DN Bind Password
LDAP Authentication Enabled Enable LDAP authentication. Test Authentication Login User Password Name of a test user. The user must exist in LDAP. LDAP password of the test user. Zabbix will not activate LDAP authentication if it is unable to authenticate the test user.
Some user groups can still be authorised by Zabbix. These groups must have GUI Access set to Internal.
3.3 Users
3.3.1 Users The screen can be used to manage Zabbix users. List of users It provides list of users.
Displayed data:
Parameter Alias Name Surname Description User short-name, i.e. login name. User name. User surname. User type, one of following: Zabbix User Zabbix Admin Zabbix Super Admin List of all group the user belong to. Is user online. Access to GUI, depends on settings of user groups: System default Zabbix, HTTP Authentication, LDAP Authentication Internal the user is authenticated by Zabbix regardless of system settings Disabled GUI access is restricted to this user User status, depends on settings of user groups: Enabled the user is active Disabled the user is disabled. The user is ignored by Zabbix.
User type
Groups Is online?
GUI Access
Status Actions
User configuration The screen provides user details and gives c ontrol to change user attributes.
Configuration parameters:
Parameter Alias Name Surname Description User short-name, i.e. login name. Must be unique! User name. User surname. User type, one of following: Zabbix User access to Monitoring tab only. Zabbix Admin access to Monitoring and C onfiguration tabs. Zabbix Super Admin access to everything, including Administration tabs. List of all group the user belong to. List of all medias. The medias are used by Zabbix for sending notifications. Language of Zabbix GUI. Defines how the GUI looks like: System Default - use system settings Original Blue standard blue theme Black & Blue alternative theme Enable if you want Zabbix to remember you. Browser cookies are used for this.
User type
Theme
Auto-login (1 month)
Auto-logout (0 - disable) User will be logouted after N seconds if inactivity. Set it to 0 to disable auto-logout. URL (after login) Refresh (in seconds) Make Zabbix to transfer you to the URL after successful login. Refresh used for graphs, screens, plain text data, etc. C an be set to 0 to disable.
Click on User Rights Show to display user rights. It is impossible to change user rights here, the rights depend on user group membership! The information is available read-only.
3.3.2 User Groups The screen can be used to manage Zabbix user groups. List of user groups It provides list of user groups.
Displayed data:
Parameter Name User status Description Host group name. Must be unique. Enabled users are active Disabled all users of the group are disabled Displays how the users are authenticated. System default use default authentication Internal use Zabbix authentication
GUI Access
zabbix.com/documentation//complete
100/109
03/06/2011
Members Disabled access to Zabbix GUI is forbidden List of group members
Configuration parameters:
Parameter Description
Group name Unique group name. Users List of members of this group. How the users of the group are authenticated. System default use default authentication Internal use Zabbix authentication Disabled access to Zabbix GUI is forbidden
GUI Access
Status of group members: Users Status Enabled users are active Disabled users are disabled Three lists for different host permissions: Read-write host groups with read-write access Read-only host groups with read-only access Deny host groups with deny access
Rights
Click on User rights (Show) to see what permissions the user group has:
Displayed data:
Parameter Description Media type: Email email notification SMS SMS notifications sent using serial GSM modem Jabber Jabber notification Script script based notification Name of the media. C onfiguration details, depends on media type.
Type
Description Details
Media configuration The screen provides user details and gives c ontrol to change media attributes.
Configuration parameters:
Parameter Description
Description Unique media name. Type Media type: Email email notification SMTP Server - server name SMTP Hello Hello string, normally domain name SMTP Email sender email address SMS SMS notifications sent using serial GSM modem GSM Modem - serial device name of GSM modem Jabber Jabber notification Jabber Identifier - Jabber ID Password Password of the Jabber ID Script script based notification Script name - name of the custom script
3.5 Scripts
The screen can be used to manage user-defined sc ripts. The sc ripts are exec uted on the Zabbix server even for hosts monitored by a proxy. List of scripts Provides a list of scripts known to Zabbix. Depending on permission, Zabbix user may exec ute a sc ript from the front-end by c licking on host in these loc ations: Network maps Dashboard Status of triggers (Monitoring Triggers)
Displayed data:
Parameter Name Command User group Host group Host access Description Unique script name. C ommand to be executed. The script is available to members of the user group only. The script is available for hosts of the host group only. Read - user must have read permission for the host to execute the script Write - user must have write permission for the host to execute the script.
Script configuration
zabbix.com/documentation//complete
101/109
03/06/2011
The screen provides script details and gives control to change script attributes.
Configuration parameters:
Parameter Name Description Unique script name. Full path to a command, which will be executed on user request. The command will be run on the Zabbix server. The following macros are supported here: {HOST.CONN} {HOST.DNS} {IPADDRESS} {HOSTNAME} Example: /bin/ping-c 3 {HOST.C ONN} A special syntax for IPMI commands must be used: IPMI <ipmi control> [value] Example: IPMI power off The script is available to members of the user group only. The script is available for hosts of the host group only. Read - user must have read permission for the host to execute the script Write - user must have write permission for the host to execute the script.
Command
If macro may resolve to value with spaces (for example, host name), don't forget to quote as needed. Standard error is discarded, so make sure to redirect it to standard output manually.
3.6 Audit
The screen can be used to see front-end audit records and list of notifications sent to users. Audit logs
Displayed data:
Parameter Description Time User Time stamp when an action took place. User name. Object, which was affected: Application Graph Host Item User Performed action: Added Login Logout Removed Updated More detailed information about action.
Resource
Action
Details
Audit actions The screen provides acc ess to history of notifications and remote c ommands.
Displayed data:
Parameter Time Type Description Time stamp when an action took place. Type of executed operation: Notifications Remote command Status: Not sent Sent Number of retries left.
Recipient(s) List of recipients. Message Error Message used in notification. Error if the notification was not sent.
3.7 Queue
The Queue provides information about performanc e of Zabbix. Overview
Overview by proxy The view gives more detailed information about performance of Zabbix Server and Proxies.
zabbix.com/documentation//complete
102/109
03/06/2011
Parameter Description Proxy
For eac h Proxy and loc al Zabbix Server the following data is displayed:
Proxy name or Server. Server, displayed last, shows statistics about local server.
Details The view gives very detailed information about delayed items.
Next check Expected time stamp of next data retrieval. The time stamps will always be in the past. Host Host name.
3.8 Notifications
This is report on number of notifications sent to each user grouped by media types.
For eac h user number of notifications is displayed per each media type.
3.9 Locales
Locales provides functionality for easy editing of translations of Zabbix front-end. Locale selection Select locale you'd like to select for further processing.
Parameters:
Parameter Description
Take for default locale The locale will be used as a base one. Locale to extend New entries Select language you'd like to improve. Do not add if something is not translated, ignore it Leave empty if something is not translated, leave translation empty Fill with default value if something is not translated, fill translation with default value
Translation form This form is used to translate phrases used in Zabbix front-end. Left side is filled with default language, right side consists of translated phrases.
Onc e translation is ready, press button Download to have translation file, whic h can be used to replace files under include/locales.
3.10 Installation
The screen makes possible creation of Zabbix front-end configuration file.
18 Performance Tuning
4 Real world configuration
Server with Zabbix 1.0 installed (RedHat Linux 8.0, kernel 2.4.18-14, MySQL/MyISAM 3.23.54a-4, Pentium IV 1.5Ghz, 256Mb, IDE) is able to c ollec t more than 200 parameters per sec ond from servers being monitored (assuming no network delays). How many servers can be monitored by Zabbix on the hardware, one may ask? It depends on number of monitored parameters and how often Zabbix should acquire these parameters. Suppose, each server you monitor has ten parameters to watc h for. You want to update these parameters once in 30 seconds. Doing simple calculation, we see that Zabbix is able to handle 600 servers (or 6000 c hec ks). In case if these parameters need to be updated once in a minute, the hardware configuration will be able to handle 6002=1200 servers. These c alc ulations made in assumption that all monitored values are retrieved as soon as required (latency is 0). If this is not a requirement, then number of monitored servers c an be inc reased even up to 5x-10x times.
2 Performance tuning
It is very important to have Zabbix system properly tuned for maximum performance.
2.1 Hardware
General advices on hardware: Use fastest processor available SCSI or SAS is better than IDE (performance of IDE disks may be signific antly improved by using utility hdparm) and SATA 15K RPM is better than 10K RPM which is better than 7200 RPM User fast RAID storage Use fast Ethernet adapter Having more memory is always better
zabbix.com/documentation//complete
103/109
03/06/2011
2.3 Zabbix configuration parameters
Many parameters may be tuned to get optimal performance. 2.3.1 zabbix_server StartPollers
General rule - keep value of this parameter as low as possible. Every additional instanc e of zabbix_server adds known overhead, in the same time, parallelism is inc reased. Optimal number of instances is ac hieved when queue, on average, c ontains minimum number of parameters (ideally, 0 at any given moment). This value can be monitored by using internal check zabbix[queue]. DebugLevel Optimal value is 3. DBSocket MySQL only. It is rec ommended to use DBSocket for connection to the database. That is the fastest and the most sec ure way.
19 Cookbook
3 General Recipes
3.1 Monitoring of server's availability
At least three methods (or combination of all methods) may be used in order to monitor availability of a server. ICMP ping (Key icmpping) Key status Trigger function nodata() for monitoring availability of hosts using only ac tive checks
2.2 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
zabbix.com/documentation//complete
104/109
03/06/2011
2.2.1 mysql[ping] Check whether MySQL is alive
Result: 0 - not started 1 - alive
2.2.2 mysql[uptime] Number of seconds MySQL is running 2.2.3 mysql[threads] Number of MySQL threads 2.2.4 mysql[questions] Number of processed queries 2.2.5 mysql[slowqueries] Number of slow queries 2.2.6 mysql[qps] Queries per sec ond 2.2.7 mysql[version] Version of MySQL Example: mysql Ver 11.16 Distrib 3.23.49, for pc-linux-gnu (i686)
2.4 WIN32
Use Zabbix W32 agent included (pre-compiled) into Zabbix distribution.
2.5 Novell
Use MRTG Extension Program for NetWare Server (MRTGEXT.NLM) agent for Novell. The agent is c ompatible with protocol used by Zabbix. It is available from http://forge.novell.com/modules/xfmod/project/?mrtgext [http://forge.novell.com/modules/xfmod/project/?mrtgext]. Items have to be c onfigured of type Zabbix Agent and must have keys acc ording to the MRTGEXT documentation. For example: UTIL1 1 minute average CPU utilization CONNMAX Max licensed c onnections used VFKSys bytes free on volume Sys: Full list of parameters supported by the agent can be found in readme.txt, whic h is part of the software.
2.6 Tuxedo
Tuxedo command line utilities tmadmin and qmadmin can be used in definition of a UserParameter in order to return per server/service/queue performanc e c ounters and availability of Tuxedo resources.
2.7 Informix
Standard Informix utility onstat can be used for monitoring of virtually every aspec t of Informix database. Also, Zabbix c an retrieve information provided by Informix SNMP agent.
2.8 JMX
First of all, you need to configure your jvm to allow jmx monitoring. How do you know if you can do this? You c an use the sun jconsole utility that comes with the jdk and point it at your mac hine running the jvm. If you c an connect, you are good. In my tomcat environment, I enable it by setting the following options for the jvm: 1. Dcom.sun.management.jmxremote \ 2. Dcom.sun.management.jmxremote.port=xxxxx \ 3. Dcom.sun.management.jmxremote.ssl=false \ 4. Dcom.sun.management.jmxremote.authenticate=true \ 5. Dcom.sun.management.jmxremote.password.file=/path/java/jre/lib/management/jmxremote. password This tells the jmx server to run on port XXXXX, to use password authentication, and to refer to the passwords stored in the jmxremote.password file. See the sun docs on jc onsole for details. (You might consider enabling ssl to make the connec tion more sec ure.) Onc e that is done, I can then run jconsole and see everything that is c urrently exposed (and to verify that I c an c onnect properly). jc onsole will also provide you the information you need to query specific jmx attributes from the information tab. Now, since I use Tomc at, there are two ways that I can grab the jmx attribute values (or effect a jmx operation). The first way is I can use the servlet provided by Tomcat. (Don't know what jboss has). The second way is I can send well formatted requests via a jmx command line tool. Let's say I am interested in peak threads used by the system. I browse down through the jmx objects via jc onsole, find it under java.lang, Threading. After selecting Threading, I c lick on the info tab, and I can see the name of the mbean is java.lang:type=Threading
zabbix.com/documentation//complete
105/109
03/06/2011
With tomc at, I c an do the following:
where the jmx username and password are the ones defined in the file defined in the jvm options above, the qry string is the one obtained from jc onsole. The output from this will be all the metrics from this jmx key. Parse the output and grab the number of your choic e. If you don't have a servlet that will allow you to make a http request to the jmx interfac e, you can use the command line tool like this
/<pathTo>/java -jar /<pathTo>/cmdline-jmxclient.jar <jmxusername>:<jmxpassword> <jvmhostname>:<jmxport> java.lang:type=Threading PeakThreadCount
The difference with the command line client is you need to spec ify the attribute you are interested in specifically. Leaving it out will give you a list of all the attributes available under Threading. Again, parse the output for the data of your c hoice. Onc e you can reliably grab the data you are interested in, you can then turn that command into a zabbix userparm. e.g.
or
That's it. I prefer getting my stats from the servlet via http rather than using the java c ommand line client as it is muc h lighter to start up and grab the information. Need a command line jmx client? I use the one from here: http://crawler.archive.org/cmdline-jmxclient/ [http://craw ler.archive.org/cmdline-jmxclient/] Information on setting up jmx monitoring for your jvms http://java.sun.c om/j2se/1.5.0/docs...ment/agent.html
[http://java.sun.com/j2se/1.5.0/docs...ment/agent.html]
General Information on JMX http://java.sun.c om/j2se/1.5.0/docs...verviewTOC.html [http://java.sun.com/j2se/1.5.0/docs...verview TOC.html] Apparently the 1.5 jvm also supports SNMP which provides another option.
3 Integration
3.1 HP OpenView
ZABBIX c an be configured to send messages to OpenView server. The following steps must be performed: Step 1 Define new media. The media will execute a script whic h will send required information to OpenView. Step 2 Define new user. The user has to be linked with the media. Step 3 Configure actions. Configure actions to send all (or selected) trigger status changes to the user. Step 4 Write media sc ript. The script will have the following logic. If trigger is ON, then execute OpenView c ommand opcmsg -id application=<application> msg_grp=<msg_grp> object= <object> msg_text=<text>. The c ommand will return unique message ID which has to be stored somewhere, preferrably in a new table of ZABBIX database. If trigger is OFF then opcmac k <message id> has to be exec uted with message ID retrieved from the database. Refer to OpenView offic ial doc umentation for more details about opcmsg and opcmac k. The media script is not given here.
20 Troubleshooting
20.2 Sound in browsers
Sounds in web browsers for Zabbix frontend have been tested in the following browser versions and no additional configuration was required: Firefox 3.5.16 on Linux Opera 11.01 on Linux Google Chrome 9.0 on Windows Firefox 3.5.16 on Windows IE7 browser on Windows Opera v11.01 on Windows Chrome v9.0 on Windows Safari v5.0 on Windows, but this browser requires Quick Time Player to be installed For playing sounds in Zabbix in the user's profile GUI Messaging should be enabled for all trigger severities and in the GUI global notific ation pop-up window sounds also should be enabled.
zabbix.com/documentation//complete
106/109
03/06/2011
20.2.1 Safari 5.0
Quick Time Player is required.
The numbered error messages are supported starting from Zabbix 1.8.
zabbix.com/documentation//complete
107/109
03/06/2011
Since we are not interested in sending multiple messages or escalating MySQL problems to other user groups, esc alations are not enabled. Zabbix will send a single message to MySQL Administrators and a recovery message when problem is resolved. If sending of recovery messages is not enabled, Zabbix will send only one message with information about new problem, no messages will be sent on rec overy, i.e. when the problem is resolved. Action c onditions is defined so that it will be activated in c ase of any problem with any of MySQL applic ations. Note also use of mac ros in the messages. Zabbix supports wide range of macros. Complete list of mac ros is available here: mac ros
As a reaction to the disaster problem Zabbix will try to restart Apac he process:
Note use of the macro {HOSTNAME} here. User 'zabbix' must have enough permissions to execute this sc ript. Also Zabbix agent should run on a remote host and acc ept incoming connec tions. Remote c ommands are disabled by default and can be enabled in Zabbix agent daemon c onfiguration file on Unix-like or Windows systems. See remote command tutorial for more information.
4 Repeated notifications
Repeated notifications is probably one of the most common use of Zabbix escalations. Make sure that esc alations are enabled in the ac tion details:
The period defines how frequently Zabbix should increase esc alation step. By default, it goes to the next step every hour, i.e. 3600 seconds. As soon as we enabled escalations, actions operations get additional options: Step(s), Period and Conditions. Suppose we would like to send 5 messages every hour, so we defined that the operation will be ac tive from escalation step 1 till 5. The escalation period will be taken from action definition unless we overwrote it for an individual operation.
As soon as we have a problem, Zabbix is at step 1, so all operations assigned to the step will be exec uted. After one hour, escalation period will be inc reased automatically (if the problem still exists obviously), so all operations of step 2 will be execute. And so on. A recovery message will be sent only to those people who received at least one message before in scope of the esc alation. If the trigger that generated an ac tive escalation is disabled, Zabbix sends a message informing about this fact to persons that have already received notifications.
The operation is assigned only to step 2. It means it will be executed once after one escalation period, i.e. 10 hours:
Therefore user 'Alexei' will get a message only in case if a problem exists for more than 10 hours. The notification delay is controlled by the escalation period.
Note use of the {ESC.HISTORY} macros in the message. The macro will c ontain information about all previously executed steps. The manager will get information about all email and all ac tion executed before. MySQL administrators, beware!
zabbix.com/documentation//complete
108/109
03/06/2011
21.7 Complex scenario
Look at this set of ac tions. After multiple messages to MySQL administrators and escalation to the manager, Zabbix will try to restart the MySQL database. It will happen if problem exists for 2:30 hours and it hasn't been acknowledged. If the problems still exists, after another 30 minutes Zabbix will send a message to all users in Japan. If this does help, after another hour Zabbix will reboot server with the MySQL database (second remote c ommand) using IPMI commands.
zabbix.com/documentation//complete
109/109