mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00

💥 Old results are now removed by their age, not based on their number. 💥 Warning: `max_results` setting has been replaced by `max_results_age`, which is a duration. Use `argos server generate-config > /etc/argos/config.yaml-dist` to generate a new example configuration file.
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
---
|
|
general:
|
|
# Except for frequency and recheck_delay settings, changes in general
|
|
# section of the configuration will need a restart of argos server.
|
|
db:
|
|
# The database URL, as defined in SQLAlchemy docs:
|
|
# https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls
|
|
url: "sqlite:////tmp/test-argos.db"
|
|
# Can be "production", "dev", "test".
|
|
# If not present, default value is "production"
|
|
env: test
|
|
# To get a good string for cookie_secret, run:
|
|
# openssl rand -hex 32
|
|
cookie_secret: "foo-bar-baz"
|
|
|
|
# Default delay for checks.
|
|
# Can be superseeded in domain configuration.
|
|
# For ex., to run checks every 5 minutes:
|
|
frequency: "1m"
|
|
alerts:
|
|
ok:
|
|
- local
|
|
warning:
|
|
- local
|
|
critical:
|
|
- local
|
|
unknown:
|
|
- local
|
|
no_agent:
|
|
- local
|
|
service:
|
|
secrets:
|
|
# Secrets can be generated using `argos server generate-token`.
|
|
# You need at least one. Write them as a list, like:
|
|
# - secret_token
|
|
- "O4kt8Max9/k0EmHaEJ0CGGYbBNFmK8kOZNIoUk3Kjwc"
|
|
- "x1T1VZR51pxrv5pQUyzooMG4pMUvHNMhA5y/3cUsYVs="
|
|
ssl:
|
|
thresholds:
|
|
- "1d": critical
|
|
- "5d": warning
|
|
|
|
# Argos will execute some tasks in the background for you
|
|
# every 2 minutes and needs some configuration for that
|
|
recurring_tasks:
|
|
# Maximum age of results
|
|
# Use m for minutes, h for hours, d for days
|
|
# w for weeks, M for months, y for years
|
|
# See https://github.com/timwedde/durations_nlp#scales-reference for details
|
|
max_results_age: "1d"
|
|
# Max number of seconds a task can be locked
|
|
# Minimum value is 61, default is 100
|
|
max_lock_seconds: 100
|
|
# Max number of seconds without seing an agent
|
|
# before sending an alert
|
|
# Minimum value is 61, default is 300
|
|
time_without_agent: 300
|
|
|
|
# It's also possible to define the checks in another file
|
|
# with the include syntax:
|
|
#
|
|
websites: !include websites.yaml
|