manuales:nagios:thruk
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
manuales:nagios:thruk [2015/03/30 15:03] – [Configuración de Thruk] cayu | manuales:nagios:thruk [2015/04/23 20:12] – [Configuración de Thruk] cayu | ||
---|---|---|---|
Línea 214: | Línea 214: | ||
^cgi_cfg|Ruta al archivo cgi.cfg|cgi_cfg = cgi.cfg| | ^cgi_cfg|Ruta al archivo cgi.cfg|cgi_cfg = cgi.cfg| | ||
^log4perl_conf|Archivo de configuración de log4perl|log4perl_conf = ./ | ^log4perl_conf|Archivo de configuración de log4perl|log4perl_conf = ./ | ||
+ | ^plugin_path|Ruta de acceso a los plugins, no debe ser accesible vía web|plugin_path = ./plugins| | ||
+ | ^themes_path|Ruta de acceso a los temas, no debe ser accesible vía web|themes_path = ./themes| | ||
+ | ^var_path|Ruta del directorio //var// de thruk|var_path = ./var| | ||
+ | ^tmp_path|Ruta del directorio de archivos temporales|tmp_path = /tmp| | ||
+ | ^ssi_path|Ruta donde se encuentran los archivos SSI (Server Side Includes)|ssi_path = ssi/| | ||
+ | ^user_template_path|Directorio adicional de plantillas. Se pueden priorizar fácilmente por sobre las plantillas por default de Thruk.\\ El orden de búqueda es :\\ -> users template path\\ -> themes template path\\ -> plugins template path\\ -> thruks template path|user_template_path = ./ | ||
+ | ^logo_path_prefix|cambia la ruta de acceso a las imágenes de logotipo. El valor predeterminado es $url_prefix+' | ||
+ | ^physical_logo_path|Ubicación de sus logos en su sistema de archivos. Este directorio debe tener relación con ' | ||
+ | ^mode_file|Modo usado para crear o guardar archivos|mode_file = 0660| | ||
+ | ^mode_dir|Modo usado para crear directorios|mode_dir = 0770| | ||
+ | ^resource_file|Establezca un archivo de recursos en general. Se recomienda solo usar esta opción si no hay contraseñas se utilizan en este archivo o en combinación con la opción ' | ||
+ | === Opciones de búsqueda === | ||
+ | ^Valor^Descripción^Ejemplo^ | ||
+ | ^use_new_search|The new search supports regular expressions and searches in many attributes. For example: plugin_output, | ||
+ | ^default_service_filter|Set a default service filter which is used when no other filter is applied (except from links to hosts or groups). The filter is negated by a leading exclamation mark. The example filters out all services starting with " | ||
+ | ^use_ajax_search|Enables the ajax search field. There will be suggestions while typing into the search field.|use_ajax_search = 1| | ||
+ | ^ajax_search_hosts|Enables the suggestion of hosts in the ajax search field. Depending on the number of hosts, this can make the search slow.|ajax_search_hosts = 1| | ||
+ | ^ajax_search_hostgroups|Enables the suggestion of hostgroups in the ajax search field.|ajax_search_hostgroups = 1| | ||
+ | ^ajax_search_services|Enables the suggestion of services in the ajax search field. Depending on the number of services, this can make the search slow.|ajax_search_services = 1| | ||
+ | ^ajax_search_servicegroups|Enables the suggestion of servicegroups in the ajax search field.|ajax_search_servicegroups = 1| | ||
+ | ^ajax_search_timeperiods|Enables the suggestion of timeperiods in the ajax search field. Timeperiods will only displayed when filtering by check- or notification period.|ajax_search_timeperiods = 1| | ||
+ | === Opciones de paginación === | ||
+ | ^use_pager|Using the pager will make huge pages much faster as most people don’t want a services page with 100.000 services displayed. Can be disabled if you don’t need it.|use_pager = 1| | ||
+ | ^paging_steps|Define the selectable paging steps. Use the * to set the default selected value.|paging_steps = *100, 500, 1000, all| | ||
+ | ^group_paging_overview|Just like the paging_steps, | ||
+ | ^group_paging_summary|Just like the paging_steps, | ||
+ | ^group_paging_grid|Just like the paging_steps, | ||
+ | |||
+ | === Opciones de pantalla === | ||
+ | ^host_action_icon|Change path to your host action icons. You may use relative paths to specify completely different location. You also may want to use ' | ||
+ | ^service_action_icon|Change path to your service action icons. You may use relative paths to specify completely different location. You also may want to use ' | ||
+ | ^initial_menu_state|Set initial menu state.|closed | ||
+ | < | ||
+ | General | ||
+ | Current_Status = 1 | ||
+ | Reports | ||
+ | System | ||
+ | Bookmarks | ||
+ | </ | ||
+ | ^use_frames|Set whether you want to use a framed navigation or not. With using frames it’s sometimes easier to include addons. See allowed_frame_links option for how to integrate addons.|use_frames = 0| | ||
+ | ^use_new_command_box|Show the new split command box on the host / service details page.|use_new_command_box = 1| | ||
+ | ^bug_email_rcpt|what email address bug reports will be sent to|bug_email_rcpt = bugs@thruk.org| | ||
+ | ^datetime_format|Default timeformat. Use POSIX format.|datetime_format = %Y-%m-%d | ||
+ | ^datetime_format_long|Default long timeformat.|datetime_format_long = %a %b %e %H:%M:%S %Z %Y| | ||
+ | ^datetime_format_log|Default log timeformat.|datetime_format_log = %B %d, %Y %H| | ||
+ | ^datetime_format_trends|Default trends timeformat.|datetime_format_trends = %a %b %e %H:%M:%S %Y| | ||
+ | ^datetime_format_today|Default timeformat for todays date. Can be useful if you want a shorter date format for today.|datetime_format_today = %H:%M:%S| | ||
+ | ^info_popup_event_type|On which event should the comments / downtime or longpluginoutput popup show up. Valid values are onclick or onmouseover.|info_popup_event_type = onmouseover| | ||
+ | ^info_popup_options|Options for the popup window used for long pluginoutput, | ||
+ | ^show_notification_number|Display the current number of notification after the current / max attempts on the status details page.|show_notification_number = 0| | ||
+ | ^show_backends_in_table|Display the backend/ | ||
+ | ^show_config_edit_buttons|Show links to config tool for each host / service. You need to have the config tool plugin enabled and you need proper permissions for the link to appear.|show_config_edit_buttons = 1| | ||
+ | ^show_full_commandline|Display the full command line for host / service checks . Be warned, the command line could contain passwords and other confidential data. In order to replace the user macros for commands, you have to set the ' | ||
+ | |||
+ | === Opciones de conexión === | ||
==== Configuración de CGI ==== | ==== Configuración de CGI ==== | ||
Línea 355: | Línea 410: | ||
==== Server Side Includes ==== | ==== Server Side Includes ==== | ||
==== CLI & Scripting ==== | ==== CLI & Scripting ==== | ||
+ | === Herramienta de línea de comandos === | ||
**thruk** - Utilidad de línea de comandos para la GUI de Monitoreo Thruk | **thruk** - Utilidad de línea de comandos para la GUI de Monitoreo Thruk | ||
Línea 391: | Línea 447: | ||
==== Benchmarks ==== | ==== Benchmarks ==== | ||
==== API ==== | ==== API ==== | ||
- | Thruk:: | + | **Thruk:: |
Rutas de búsqueda de librerias para el paquete Thruk : | Rutas de búsqueda de librerias para el paquete Thruk : | ||
Línea 407: | Línea 463: | ||
use lib qw(/ | use lib qw(/ | ||
$ENV{ CATALYST_CONFIG } = "/ | $ENV{ CATALYST_CONFIG } = "/ | ||
+ | </ | ||
+ | <code perl> | ||
+ | $options = { | ||
+ | verbose | ||
+ | credential | ||
+ | remoteurl | ||
+ | local => 0|1, # local requests only | ||
+ | } | ||
</ | </ | ||
Línea 530: | Línea 594: | ||
print " | print " | ||
} | } | ||
+ | </ | ||
+ | |||
+ | === Monitoring:: | ||
+ | API de Perl para acceder a datos Nagios e Icinga por medio de check_mk livestatus | ||
+ | <code perl> | ||
+ | use Monitoring:: | ||
+ | my $ml = Monitoring:: | ||
+ | socket => '/ | ||
+ | ); | ||
+ | my $hosts = $ml-> | ||
+ | </ | ||
+ | == new ([ARGS]) == | ||
+ | Creates an Monitoring:: | ||
+ | Crea el objeto Monitoring:: | ||
+ | ^Argumentos^^ | ||
+ | ^socket|Ruta al socket UNIX de check_mk livestatus| | ||
+ | ^server|Usar este servidor para una conexión TCP| | ||
+ | ^peer|Camino alternativo al socket o servidor, si se usa el valor ':' | ||
+ | ^name|Nombre para la conexión, default dirección socket/ | ||
+ | ^verbose|Modo verbose| | ||
+ | ^line_seperator|Código ascii separador de líneas default 10, (newline)| | ||
+ | ^column_seperator|Código ascii separador de columnas, defaults 0 (null byte)| | ||
+ | ^list_seperator|Código ascii separador de listas, default 44 (comma)| | ||
+ | ^host_service_seperator|Código ascii separador host/ | ||
+ | ^keepalive|keepalive. Default off| | ||
+ | ^errors_are_fatal|Errores con mensaje de caída. Default: on| | ||
+ | ^warnings|muestran advertencias en las consultas sin Columnas| | ||
+ | ^timeout|Tiempo de espera general. Usado para conexión y consultas| | ||
+ | ^query_timeout|set a query timeout. Used for retrieving querys, Default 60sec| | ||
+ | ^connect_timeout|Tiempo de espera de conexión inicial. Por defecto 5 s| | ||
+ | == Limit == | ||
+ | <code perl> | ||
+ | my $array_ref = $ml-> | ||
+ | " | ||
+ | { Limit => " | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | == Otros ejemplos == | ||
+ | <code perl> | ||
+ | # | ||
+ | use Monitoring:: | ||
+ | |||
+ | $filtergrp = ' | ||
+ | |||
+ | $ml = Monitoring:: | ||
+ | socket => '/ | ||
+ | ); | ||
+ | |||
+ | my $up = $ml-> | ||
+ | my $down = $ml-> | ||
+ | my $unknown = $ml-> | ||
+ | my $total = $up + $down + $unknown; | ||
+ | |||
+ | print " | ||
</ | </ | ||
===== Acerca de la Guía ===== | ===== Acerca de la Guía ===== | ||
- | Esta guía **no oficial** esta inspirada en la documentación original de Thruk. Está pensada para ir presentando casos de uso que se van dando en la operatoria día a dia. | + | Esta guía **no oficial** esta inspirada en la documentación original de Thruk. Está pensada para ir presentando casos de uso que se van dando en la operatoria día a dia. |
+ | |||
+ | En principio es casi una copia de la original, con algunas partes traducidas y otras no. La idea es que con el tiempo y poniendo códigos y experiencias personales. | ||
Thruk es un proyecto muy bueno que me ayuda en mostrar mi trabajo día a día y tiene una comunidad muy activa. Si estas leyendo esto y estas siendo beneficiado por Thruk, te invito a realizar una [[http:// | Thruk es un proyecto muy bueno que me ayuda en mostrar mi trabajo día a día y tiene una comunidad muy activa. Si estas leyendo esto y estas siendo beneficiado por Thruk, te invito a realizar una [[http:// | ||
manuales/nagios/thruk.txt · Última modificación: 2015/10/22 14:46 por cayu