Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Kami/2935271 to your computer and use it in GitHub Desktop.
raxmon create alarm example
raxmon-alarms-create --entity-id=<entity id> --notification-plan-id=<notification plan id> --check-id=<check id> --criteria="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