Profundizando nagios.pdf

Vista previa de texto
Convertir el timestamp de nagios.log a human readable
tail -f nagios.log | perl -pe 's/(\d+)/localtime($1)/e'
LQL - The Livestatus Query Language
El lenguaje de consultas de Livestatus, basicamente consiste en consultas del
tipo GET (case sensitive) con estos parámetros a los cuales consideraremos
como equivalente a tablas SQL :
• hosts - your Nagios hosts
• services - your Nagios services, joined with all data from hosts
• hostgroups - you Nagios hostgroups
• servicegroups - you Nagios servicegroups
• contactgroups - you Nagios contact groups
• servicesbygroup - new in 1.1.3 - all services grouped by service groups
• servicesbyhostgroup - new in 1.1.3 - all services grouped by host groups
• hostsbygroup - new in 1.1.3 - all hosts group by host groups
• contacts - your Nagios contacts
• commands - your defined Nagios commands
• timeperiods - time period definitions (currently only name and alias)
• downtimes - all scheduled host and service downtimes, joined with data from
hosts and services.
• comments - all host and service comments
• log - a transparent access to the nagios logfiles (include archived ones)ones
• status - general performance and status information. This table contains
exactly one dataset.
• columns - a complete list of all tables and columns available via Livestatus,
including descriptions!
Ver como Human Readable el timestamp del archivo nagios.log
# cat /usr/local/nagios/var/nagios.log | perl -pe 's/(\d+)/localtime($1)/e'
NetMySLA
netMySLA es una variedad de procedimientos almacenados de MySQL. Se creó
un procedimiento para calcular un único valor de disponibilidad de servicio. El
otro itera a través de todos los hosts y servicios para crear valores de
disponibilidad de servicio y lo divide en plazos. Por lo tanto, usted puede
calcular los valores una vez al día y consulta la tabla de resultados para
obtener sus datos.
https://www.nagiosforge.org/gf/project/netmysla/
Ejemplo de consulta con netMySLA
Lista de argumentos
