- Nuevo módulo daemon.zig: fork() + setsid() + /dev/null - Opción --daemon/-d para ejecutar en background - Archivo PID en service-monitor.pid - Config externo desde archivo (--config/-c) - Formato CSV simple: http,nombre,url / tcp,nombre,host,puerto - Soporte para email y telegram en config (preparado) - services.conf.example con documentación - Ayuda actualizada con todas las opciones 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
# Service Monitor - Archivo de configuración
|
|
# ============================================
|
|
#
|
|
# Formato: tipo,parámetros separados por comas
|
|
# Las líneas que empiezan con # son comentarios
|
|
#
|
|
# SERVICIOS
|
|
# ---------
|
|
# http,Nombre,URL
|
|
# tcp,Nombre,host,puerto
|
|
|
|
# Servicios HTTP/HTTPS
|
|
http,Forgejo (HTTP),https://git.reugenio.com
|
|
http,Simifactu API,https://simifactu.com
|
|
http,Mundisofa,https://mundisofa.com
|
|
http,Menzuri,https://menzuri.com
|
|
|
|
# Servicios TCP
|
|
tcp,Forgejo (SSH),git.reugenio.com,2222
|
|
|
|
# NOTIFICACIONES EMAIL
|
|
# --------------------
|
|
# email,destinatario@ejemplo.com
|
|
# email_smtp,servidor,puerto,usuario,password,remitente
|
|
|
|
# Destinatarios (uno por línea)
|
|
#email,admin@ejemplo.com
|
|
#email,alertas@ejemplo.com
|
|
|
|
# Servidor SMTP
|
|
#email_smtp,smtp.gmail.com,587,usuario@gmail.com,app_password,alertas@ejemplo.com
|
|
|
|
# NOTIFICACIONES TELEGRAM
|
|
# -----------------------
|
|
# telegram,bot_token,chat_id
|
|
#
|
|
# Para obtener el bot_token:
|
|
# 1. Habla con @BotFather en Telegram
|
|
# 2. Usa /newbot y sigue las instrucciones
|
|
# 3. Copia el token que te da
|
|
#
|
|
# Para obtener tu chat_id:
|
|
# 1. Habla con @userinfobot en Telegram
|
|
# 2. Te dirá tu chat_id
|
|
|
|
#telegram,123456789:ABCdefGHIjklMNOpqrsTUVwxyz,987654321
|