Herramientas de usuario

Herramientas del sitio


manuales:nagios:thruk

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
Próxima revisiónAmbos lados, revisión siguiente
manuales:nagios:thruk [2015/04/16 20:36] – [CLI & Scripting] cayumanuales:nagios:thruk [2015/04/23 20:13] – [Configuración de Thruk] cayu
Línea 226: Línea 226:
 ^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 'expand_user_macros' que limitará qué macros están expuestos al usuario.|resource_file = /etc/nagios3/resource.cfg| ^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 'expand_user_macros' que limitará qué macros están expuestos al usuario.|resource_file = /etc/nagios3/resource.cfg|
 === Opciones de búsqueda === === 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, groups, names, descriptions|use_new_search = 1|
 +^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 "test_". You can use regular expressions. The Default is not set.|default_service_filter = !<html>^</html>test_|
 +^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 === === 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, but only for the groups overview page.|group_paging_overview =  *3,  10, 100, all|
 +^group_paging_summary|Just like the paging_steps, but only for the groups summary page.|group_paging_summary = *10, 50, 100, all|
 +^group_paging_grid|Just like the paging_steps, but only for the groups grip page.|group_paging_grid = *5,  10, 50,  all|
 +
 === Opciones de pantalla === === 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 'action_pnp.png' when using pnp. Icon can be overridden by a custom variable '_ACTION_ICON'.|host_action_icon = action.gif|
 +^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 'action_pnp.png' when using pnp. Icon can be overridden by a custom variable '_ACTION_ICON'.|service_action_icon = action.gif|
 +^initial_menu_state|Set initial menu state.|closed  => 0\\ open    => 1<code>
 +<initial_menu_state>
 +  General        = 1
 +  Current_Status = 1
 +  Reports        = 1
 +  System         = 1
 +  Bookmarks      = 1
 +</initial_menu_state></code>|
 +^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  %H:%M:%S|
 +^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, downtimes and comments.\\ See http://www.bosrup.com/web/overlib/?Command_Reference for what options are available|info_popup_options = STICKY,CLOSECLICK,HAUTO,MOUSEOFF|
 +^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/site name in the status table. This is useful if you have same hosts or services on different backends and need to know which one returns an error.|Valid values are:\\ 1 - show site name at the end\\ 2 - put site name in front\\ \\ show_backends_in_table = 0|
 +^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 'resource_file' in your peer config or a general resource_file option.\\ 0 = off, don’t show the command line at all\\ 1 = show them for contacts with the role: authorized_for_configuration_information \\ 2 = show them for everyone|show_full_commandline = 0\\ show_full_commandline_source|
 +
 +
 === Opciones de conexión === === Opciones de conexión ===
 ==== Configuración de CGI ==== ==== Configuración de CGI ====
Línea 589: Línea 631:
        { Limit => "10,20" }        { Limit => "10,20" }
     );     );
 +</code>
 +
 +== Otros ejemplos ==
 +<code perl>
 +#!/usr/bin/perl
 +use Monitoring::Livestatus;
 +
 +$filtergrp = 'NAGIOS_ARGENTINA';
 +
 +$ml = Monitoring::Livestatus->new(
 + socket => '/usr/local/nagios/var/rw/live'
 +);
 +
 +my $up = $ml->selectscalar_value("GET hosts\nFilter: host_groups >= $filtergrp\nStats: state = 0");
 +my $down = $ml->selectscalar_value("GET hosts\nFilter: host_groups >= $filtergrp\nStats: state = 1");
 +my $unknown = $ml->selectscalar_value("GET hosts\nFilter: host_groups >= $filtergrp\nStats: state = 2");
 +my $total = $up + $down + $unknown;
 +
 +print "$down\/$total \n";
 </code> </code>
 ===== 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://www.thruk.org/donate.html|donación al proyecto]] 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://www.thruk.org/donate.html|donación al proyecto]]
  
manuales/nagios/thruk.txt · Última modificación: 2015/10/22 14:46 por cayu