Skip to content

Instantly share code, notes, and snippets.

@Kami
Created June 15, 2012 07:57
Show Gist options
  • Select an option

  • Save Kami/2935291 to your computer and use it in GitHub Desktop.

Select an option

Save Kami/2935291 to your computer and use it in GitHub Desktop.
raxmon alarm criteria example
if (metric['code'] == '500') {
return CRITICAL, 'Internal server error'
}
if (metric['body_match'] == '') {
return WARNING, 'Copyright not found, returning WARNING.'
}
return OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment