Created
June 15, 2012 07:49
-
-
Save Kami/2935271 to your computer and use it in GitHub Desktop.
raxmon create alarm example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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