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" |
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-notification-plans-create --label="plan #1" --critical-state=<email notification id>,<webhook notification id> --warning-state=<email notification id>,<webhook notification id> |
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-notifications-create --label="automation server" --type=webhook --details=url=http://example.com/myexample |
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-notifications-create --label="work email" --type=email --details=address=name@example.com | |
| raxmon-notifications-create --label="automation server" --type=webhook --details=url=http://example.com/myexample |
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-entities-create --label="webserver #1" --ip-addresses=eth0=203.0.113.1,eth1=203.0.113.2 |
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-checks-create --entity-id=<entity id> --label="webserver check" --monitoring-zones=mzord,mzdfw,mzlon --target-alias=eth0 --type=remote.http --details=url=http://www.example.com/index.html,body=.*Copyright.* |
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
| [credentials] | |
| username=<your username> | |
| api_key=<your api key> | |
| [auth_api] | |
| url=https://lon.identity.api.rackspacecloud.com/v2.0 |
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
| [credentials] | |
| username=<your username> | |
| api_key=<your api key> |
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
| [ | |
| { | |
| "host": "519.Hssi2-0-0.GW1.EWR1.ALTER.NET", | |
| "ip": "157.130.0.17", | |
| "rtts": [6.918, 8.213, null] | |
| } | |
| ] |
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
| local Emitter = require('core').Emitter | |
| local Error = require('core').Error | |
| local table = require('table') | |
| local childprocess = require('childprocess') | |
| function split(str, pattern) | |
| pattern = pattern or '[^%s]+' | |
| if pattern:len() == 0 then pattern = '[^%s]+' end | |
| local parts = {__index = table.insert} | |
| setmetatable(parts, parts) |