Monita

Configuration

Monita reads MONITA_* environment variables at start. monita setup writes them to /etc/monita/monita.env, which systemd loads.

VariableMeansProduction value
MONITA_ENVdev, test or prod. Required.prod
MONITA_BINDListen address127.0.0.1:7466, behind the reverse proxy
MONITA_BASE_URLPublic URL, for links and the origin check. Set it to the address people open in the browser: a page at another address, such as the server's IP or another port, cannot sign in. https:// in prod. Unset, it is http://localhost:7466.https://monita.example.com
MONITA_DB_PATHDatabase file/var/lib/monita/monita.db
MONITA_BACKUP_DIRDaily backup folder; empty turns backups off/var/backups/monita
MONITA_BACKUP_KEEPBackups kept7
MONITA_SMTP_URLsmtps://user:pass@host:465. A fallback: a mail server saved on Admin, Outgoing email wins. With neither, Monita logs emails instead.your mail server, or leave it empty and set the server on the Outgoing email page
MONITA_MAIL_FROMSender. Unset, it is Monita <monita@ plus the host of MONITA_BASE_URL.Monita <monita@example.com>
MONITA_PING_URLA heartbeat Monita pings every 60 s, to be watched from outsidea peer's ping URL
MONITA_TRUST_PROXYRead the client IP from X-Forwarded-Fortrue behind a proxy
MONITA_DIGEST_UTC_HOURHour of the daily ticket digest1
MONITA_LOGLog filterinfo
MONITA_LOG_FORMATpretty or jsonjson
MONITA_TELEGRAM_APIThe Bot API server for the global Telegram bot: Telegram's, or a self-hosted telegram-bot-apihttps://api.telegram.org

monita probe reads two more variables, MONITA_PROBE_SERVER and MONITA_PROBE_TOKEN. Locations explains them.

MONITA_RESET_TOKEN exists for development only. In prod the reset route is not registered at all.

Runtime limits

Admins see these values, except secrets, on System information under Admin. Changing a variable takes an edit of the env file and sudo systemctl restart monita.

Email delivery and the mail server live on Outgoing email, with a Test connection button and a Send a test email form. See Admin and roles.

A super admin changes these on Rate limits without a restart:

SettingDefault
Checks at the same time50
API calls per minute from one key120
Pings per second for one heartbeat1
Bug reports per user per day5
Bug reports per project per day100

The time zone for every page is also an admin setting, not a variable. See Time zone.

The full reference, with dev and test values, is spec 11.

Edit this page on GitHub