Initial commit: agent_logwatch v1.0

- Réception logs MQTT depuis machines distantes (agents/logwatch/+/logs)
- Pré-filtrage sans LLM (14 patterns: ERROR, FATAL, OOM, segfault, auth fail...)
- Analyse LLM par créneau horaire configurable (APScheduler)
- Gestion round-robin avec reprise sur interruption
- Extension de créneau (+30 min) avec confirmation admin
- Skills: machine (gestion machines) + logwatch (contrôle)
- Script send_logs.sh pour machines distantes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 08:59:20 +00:00
commit bdcfff9f8e
20 changed files with 1618 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
{
"agent_id": "logwatch",
"xmpp": {
"jid": "logwatch@xmpp.ovh",
"password": "Matador3721",
"admin_jid": "sylvain@xmpp.ovh",
"muc_room": "agents@muc.xmpp.ovh",
"use_omemo": true
},
"mqtt": {
"host": "localhost",
"port": 1883,
"username": null,
"password": null,
"tls": false
},
"llm": {
"base_url": "http://192.168.7.119:11434",
"model": "gpt-oss:120b-cloud",
"temperature": 0.2
},
"work_hours": "00:00-23:59",
"queue_db": "/opt/agent_logwatch/data/queue.db",
"db_path": "/opt/agent_logwatch/data/logwatch.db",
"system_prompt": "/opt/agent_logwatch/config/system_prompt.txt",
"use_llm_coordinator": true,
"llm_profiles": {
"cloud": "gpt-oss:120b-cloud"
}
}