Alerts overview#
An alert makes the server tell you when something happens that somebody should know about: the disk is nearly full, an address was banned, a listener stopped, a job did not start. Without alerts you find out from users.
This page is about what there is and what to set up. The form itself is described in Preferences, Alerts.
What an alert is#
| Part | Is |
|---|---|
| a type | what it watches for: one of about seventy |
| what it does | a mail, a job, an SNMP trap, or several of them |
| a limit | the most times an hour it may act: 60 unless you change it |
An alert does only what you fill in. A new server has no alerts at all, and an alert without a recipient, a job or a trap does nothing.
What it can do#
| Action | For | Set in |
|---|---|---|
| a mail | people. To, Subject and Body, with variables. | the alert |
| a job | anything else: a message into a chat, a ticket by an HTTP call, a script | the alert's Plugin to run; the job gets the alert's facts as variables. See Jobs. |
| an SNMP trap | a network management system | the alert's switch, and the receivers in SNMP |
Mail needs the server's mail settings to work. Send yourself a test from the alert's form before you rely on it.
The kinds of alert#
| About | For example |
|---|---|
| the server | started, update available, disk space, low memory, a listener failed, a settings file could not be read, a mail was refused |
| logins and security | an address banned, repeated failed logins, logins too often, an admin action from a forbidden address, a certificate that was not the pinned one, storage that refused its password |
| users | a user created, a password or a second factor changed, a quota nearly used, a transfer limit passed, a transfer too slow |
| jobs | a job changed, a scheduled job skipped, the job engine not answering |
| a cluster | a server down and back, a member added or removed, replication behind, the shared address changing hands |
| any value you choose | Watching a variable |
Every type, with its own fields and variables, is listed in Preferences, Alerts, and with the text of its mail in Alert types.
The ones to set up first#
On every server:
| Alert | Why |
|---|---|
| Disk Space Below Threshold, for the disk the files are on and the disk the logs are on | a full disk stops everything, and is always noticed too late |
| Server Port Failed | a listener that stopped is a service that is down |
| Invalid Email Attempted | tells you that the server's own mails are not going out. Send this one to an address that does not depend on the same mail server, or as a trap. |
| Low Memory Alert | the warning before the server slows down |
| CrushMFT Update Available | so that security fixes are not missed |
| Corrupt XML Read or Write | a settings or user file is damaged: act before the next restart |
On a server that faces the internet:
| Alert | Why |
|---|---|
| IP Banned for Failed Logins | with a sensible limit per hour, a feel for how hard the door is being tried |
| Admin Operation Blocked Due to IP Policy Violation | somebody tried to administer the server from outside the allowed addresses |
| Repeated Login Failure User Banned | a real account was locked: either its owner forgot the password, or somebody is guessing it |
With jobs: Skipped scheduled job, Job Engine Not Responding and Job Max Runtime Reached. With reports: Report Alert. In a cluster: Cluster Node Down and Replication Falling Behind.
Not too many#
An alert that fires every day is read for a week and then filtered away, and the one that matters goes with it.
- Max of … alerts per hour caps each alert. Under attack, "IP banned" can fire thousands of times: cap it at a few, and read the rest in a report.
- Send the routine to a report, not to a mailbox: a scheduled report of yesterday's bans, once a morning.
- Alert on states, not on events, where you can. The types that fire "and when it is back" tell you once that something broke and once that it is mended.
Alerts from other parts of the server#
| a failed job | drawn in the job: a task named Default Failure, or the mail template JOB_FAILURE. See When a job fails. |
| something a user did to a file | an event of the user |
| anything in the activity record: "no upload from ACME today", "three times the usual downloads" | Report alerts and expected files, passed on by one alert of the type Report Alert |
| from outside: is the server up at all? | Health checks, asked by your monitoring. A server that is down sends no alert. |
Things to know#
- A DMZ server passes its alerts to the internal server, which sends the mail and runs the job.
- In a cluster, alerts are part of the shared settings. Each server raises its own; put
{hostname}into the subject. - Variables such as
{user_name},{user_ip},{hostname}and the alert's own make the text say what happened: the variables. - Saved with the page. A new or changed alert counts after Save, without a restart.
- Alerts are events too. A firing alert is sent to a SIEM target among the security events, and counted in the metrics.