Need Help with Modifying Config #108
Replies: 1 comment
-
Figured out my issue I need |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm struggling to add anything to the config file and getting errors. My config is the following and I'm using the following:
`[[checks]]
interval = 6
name = "Filesystem usage"
type = "FilesystemUsage"
mountpoints = ["/home"]
[[checks.alarms]]
name = "Warning"
level = 70
cycles = 3
repeat_cycles = 100
action = "Webhook 1"
recover_cycles = 5
recover_action = "Webhook 1"
error_repeat_cycles = 200
error_action = "Log error"
[[actions]]
name = "Webhook 1"
type = "Webhook"
url = "https://discord.com/api/webhooks/1143370452660658318/uYIiSlvGci83DHJymqafs4rswHnyt6oxdq6EXqRmUAwYp1haTxza5mEwm9_zdT4a7XnH"
body = """{"username": "Webhook", "avatar_url": "https://i.imgur.com/4M34hi2.png", "content": "{{check_name}}: Alarm '{{alarm_name}}' for mountpoint '{{check_id}}' changed state to {{alarm_state}} at {{level}}."}"""
headers = {"Content-Type" = "application/json"}
[[actions]]
name = "Log error"
type = "Log"
level = "Error"
template = """{{check_name}} check didn't have valid data for alarm '{{alarm_name}}' and id '{{alarm_id}}': {{check_error}}."""
[[log]]
level = "Debug"
`
Error/Logs:
[+] Running 1/0 ✔ Container minmon-minmon-1 Created 0.0s Attaching to minmon-minmon-1 minmon-minmon-1 | Exiting due to error: Failed to parse config file: TOML parse error at line 32, column 1 minmon-minmon-1 | | minmon-minmon-1 | 32 | level = 'Debug' minmon-minmon-1 | | ^^^^^ minmon-minmon-1 | unknown variant
level, expected one of
Debug,
Info,
Warning,
Errorminmon-minmon-1 | minmon-minmon-1 | minmon-minmon-1 exited with code 1
I've tried to add a report as well and have a similar issue. Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions