mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-12 19:30:39 +01:00
Ajout surveillance Zabbix optionnelle et migration Alpine
- Migration vers Debian Trixie avec surveillance Zabbix optionnelle - Configure variables d'environnement pour activation conditionnelle - Met à jour documentation avec instructions Docker complètes
This commit is contained in:
@@ -5,7 +5,7 @@ Server=zabbix-server.example.com
|
||||
ServerActive=zabbix-server.example.com:10051
|
||||
|
||||
# Configuration de l'agent
|
||||
Hostname=mamie-henrriette-bot
|
||||
Hostname=MamieHenriette
|
||||
ListenPort=10050
|
||||
ListenIP=0.0.0.0
|
||||
|
||||
@@ -24,7 +24,4 @@ UserParameter=discord.bot.memory,ps -o pid,vsz,rss,comm -p $(pgrep -f bot.py) |
|
||||
|
||||
# Surveillance des logs
|
||||
UserParameter=discord.bot.errors,grep -c "ERROR" /var/log/discord-bot.log 2>/dev/null || echo 0
|
||||
UserParameter=discord.bot.warnings,grep -c "WARNING" /var/log/discord-bot.log 2>/dev/null || echo 0
|
||||
|
||||
# Vérification de la connectivité Discord
|
||||
UserParameter=discord.connectivity,timeout 5 curl -s https://discord.com/api/v10/gateway >/dev/null && echo 1 || echo 0
|
||||
UserParameter=discord.bot.warnings,grep -c "WARNING" /var/log/discord-bot.log 2>/dev/null || echo 0
|
||||
Reference in New Issue
Block a user