Réduire les logs d'icinga2
Bonjour,
Je n'arrive pas à baisser l'intensité des logs d'icinga2 dans
/var/log/syslog.
J'ai tenté de passer par /etc/default/icinga2 en rajoutant -x critical
comme l'indique la doc :
[root@canoe]:~ # cat /etc/default/icinga2
# default settings for icinga2's initscript
DAEMON_ARGS="-d -e /var/log/icinga2/icinga2.err -x critical"
Je suis aussi passé directement par le script /etc/init.d/icinga2 en
modifiant DAEMON_ARGS:
DAEMON_ARGS="-e /var/log/icinga2/icinga2.err -x critical"
Mais rien à faire, après un
service icinga2 restart, ps -axuf m'indique toujours :
nagios 13129 6.3 2.8 939920 25648 ? Ssl 13:19 0:00
/usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon
-e /var/log/icinga2/error.log
nagios 13169 0.0 0.1 511768 1256 ? S 13:19 0:00 \_
/usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon
-e /var/log/icinga2/error.log
Donc aucun des arguments passés... Est-ce normal ?
Je me retrouve avec des logs trop verbeux dans /var/log/syslog :
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:32:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 928/5min 1772/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:32:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 1812/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:33:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 932/5min 1860/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:33:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 1910/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:33:25 +0200]
information/ConfigObject: Dumping program state to file
'/var/lib/icinga2/icinga2.state'
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:33:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 1958/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:33:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate:
3.06667/s (184/min 928/5min 1996/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:34:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate:
3.13333/s (188/min 932/5min 2048/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:34:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2096/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:34:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2144/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:34:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 928/5min 2182/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:35:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 932/5min 2234/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:35:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2282/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:35:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2330/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:35:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 928/5min 2368/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:36:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate:
3.13333/s (188/min 934/5min 2422/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:36:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2468/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:36:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2516/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:36:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 928/5min 2554/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:37:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 934/5min 2608/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:37:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2654/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:37:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2702/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:37:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 928/5min 2740/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:38:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate:
3.06667/s (184/min 932/5min 2792/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:38:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2781/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:38:25 +0200]
information/ConfigObject: Dumping program state to file
'/var/lib/icinga2/icinga2.state'
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:38:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2788/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:38:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2780/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:39:10 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2794/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:39:25 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2782/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:39:40 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate:
3.08333/s (185/min 929/5min 2787/15min);
Apr 16 16:40:10 canoe icinga2[25364]: [2019-04-16 16:39:55 +0200]
information/IdoMysqlConnection: Query queue items: 0, query rate: 3.1/s
(186/min 930/5min 2780/15min);
Une idée ?
--
Migrec
Reply to: