Hi. I've configured sending alerts from agent to Slack. I've tested it with alert-notify.sh script and it works. I've also configured filecheck plugin to check file. It works, charts are present in Web. And finally - I have a configured alert for filecheck like this:
# cat health.d/filecheck.conf
template: filecheck_file_size_template
on: filecheck.file_size
lookup: max -1m absolute foreach *
calc: $this / 1000000000
units: GB
every: 60s
crit: $this > (($status == $CRITICAL) ? (3)) : (5)
warn: $this > (($status >= $WARNING) ? (1)) : (3)
info: Head dump file too big ($this GB)
red: 5
green: 1
And this alert present in alarms?all and alarm_log (with statuses UNDEFINED, UNINITIALIZED & REMOVED, but not CRITICAL or WARNING).
What I'm doing wrong?