-
lentitud en la obtención de gráficas de estadísticas.
Hola buenos días
Llevo bastante tiempo notando lentitud cuando se obtienen gráficas de monitores snmp que muestrean anchos de banda, errores, etc.
En concreto me tarda del orden de 2-3 minutos cada vez que intento obtener una gráfica.He utilizado el script /usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf para mantener la base de datos y parece que lo hace bien:
Pandora FMS DB Tool 6.0 PS151020 Copyright (c) 2004-2009 Artica ST
This program is Free Software, licensed under the terms of GPL License v2
You can download latest versions and documentation at http://www.pandorafms.orgPandora DB now initialized and running (PURGE=730 days, COMPACT=0 days, STEP=1) .
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/PandoraFMS/Tools.pm line 595.
Can’t locate PandoraFMS/Enterprise.pm in @INC (@INC contains: /usr/lib/perl5/5.10.0 /usr/lib/perl5 /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5 .) at (eval 12) line 1.- Pandora FMS Enterprise module not available.
Starting at 2017-03-09 09:51:04
09:51:04 [PURGE] No data to purge in tagente_datos.
09:51:04 [PURGE] Deleting old export data from tserver_export_data09:51:04 [PURGE] Deleting old session data from tsessions_php
09:51:04 [PURGE] No data in tagente_datos_log4x.
09:51:04 [PURGE] No data to purge in tagente_datos_string.
09:51:04 [PURGE] Deleting old event data at tevento table (More than 7 days).
09:51:04 [PURGE] Deleting old audit data (More than 15 days).
09:51:04 [PURGE] Deleting old SNMP traps (More than 7 days).
09:51:04 [PURGE] Deleting old GIS data (More than 7 days).
09:51:04 [PURGE] Deleting pending delete modules (data table).
09:51:04 [PURGE] Deleting pending delete modules (status, module table).
09:51:04 [PURGE] Deleting old access data (More than 24hr)
09:51:04 [PURGE] No agent access data to purge.
09:51:04 [PURGE] Delete contents in report that have some deleted modules.
09:51:04 [PURGE] Delete contents in report that have some deleted agents.
09:51:04 [PURGE] Delete empty contents in report (like SLA or Exception).
09:51:04 [PURGE] Deleting old netflow data.
09:51:04 [PURGE] Deleting old log data.
09:51:04 [!] Log data directory does not exist, skipping.
09:51:04 [CHECKDB] Ignoring not-init data.
09:51:04 [CHECKDB] Deleting unknown data (More than 0 days).
09:51:04 [CHECKDB] Checking database consistency (Missing status).
09:51:05 [CHECKDB] Checking database consistency (Missing module).
09:51:06 [INTEGRITY] Cleaning up group stats.
09:51:06 [INTEGRITY] Deleting orphan alerts.
09:51:06 [INTEGRITY] Deleting orphan modules.
Ending at 2017-03-09 09:51:06
[root@localhost util]#Por otro lado, la lentitud solamente la noto cuando obtengo las gráficas, en la navegación normal y uso de la herramienta a través de la interface web no va mal.
Por otro lado el my.cnf lo he modificado según indicaciones en la wiki y el asunto sigue igual,[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Mysql optimizations for Pandora FMS
# Please check the documentation in http://pandorafms.com for better results
table_cache = 64
key_buffer = 400M
max_allowed_packet = 64M
max_connections = 500
query_cache_size = 128M
query_cache_limit = 48M
join_buffer_size = 16M
innodb_log_file_size = 64M
innodb_log_buffer_size = 16M
innodb_io_capacity = 140
innodb_buffer_pool_size = 400M
innodb_additional_mem_pool_size = 62M
innodb_lock_wait_timeout = 50
innodb_file_per_table
innodb_thread_concurrency = 0
innodb_flush_log_at_trx_commit = 0
thread_stack = 64K
thread_cache_size = 8
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pidLa verdad es que el tema me tiene bastante despistado y no se a qué puede ser debido.