KB - Supervision
KB - Supervision - Zabbix
KB - Supervision - Zabbix
KB-Zabbix-Server - Erreur Cache Usage
S'applique à : Zabbix, toutes versions.
Symptôme(s)
Le service ne se lance pas et une erreur “cache usage” apparaît.
Problème
Le cache défini n’est pas suffisant pour contenir l’ensemble des données et nécessite d'être étendu.
Solution
Éditer le fichier “/etc/zabbix/zabbix_server.cnf”
Dé commenter la ligne “CacheSize=9M” et définir une nouvelle taille de cache.
Relancer les services Zabbix.
Sources
n/a
KB - Supervision - Zabbix
KB-Zabbix-Server - Partition DB pleine
S'applique à : Zabbix, toutes versions.
Symptôme(s)
Impossible de lancer le service de base de donnée car la partition est pleine.
Problème
Par défaut, la DB garde en mémoire toutes les informations et par conséquent ne fait que grossir.
Solution
Exécuter un script de purge de la DB.
-- intervals in days
SET @history_interval = 7;
SET @trends_interval = 90;
DELETE FROM alerts WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM acknowledges WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM events WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM history WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM history_uint WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM history_str WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM history_text WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM history_log WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@history_interval * 24 * 60 * 60);
DELETE FROM trends WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@trends_interval * 24 * 60 * 60);
DELETE FROM trends_uint WHERE (UNIX_TIMESTAMP(NOW()) - clock) > (@trends_interval * 24 * 60 * 60);
Sources
n/a