Skip to content

Instantly share code, notes, and snippets.

@xikaos
Last active July 4, 2018 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xikaos/40062e4dced73f9b8fb7e724383c7cf2 to your computer and use it in GitHub Desktop.
Save xikaos/40062e4dced73f9b8fb7e724383c7cf2 to your computer and use it in GitHub Desktop.
Netdata alert to check if a node is down. Put on the master health.d directory.
alarm: slave_down
on: system.cpu
calc: $now - $last_collected_t
units: seconds ago
every: 10s
warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
info: number of seconds since the last successful data collection
to: sysadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment