-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.11.3 | ||
FROM alpine:3.8 | ||
|
||
LABEL maintainer="Diogo Serrano <info@diogoserrano.com>" | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Need help? | ||
|
||
## Normal mode | ||
|
||
```sh | ||
docker run -it \ | ||
-p 2812:2812 \ | ||
-v $(pwd)/monitrc:/etc/monitrc \ | ||
-e "SLACK_URL=<SLACK_URL>" \ | ||
-e "PUSH_OVER_TOKEN=<PUSH_OVER_TOKEN>" \ | ||
-e "PUSH_OVER_USER=<PUSH_OVER_USER>" \ | ||
-e "DEBUG=1" \ | ||
diogopms/monit-docker-kubernetes | ||
``` | ||
|
||
## Debug | ||
|
||
```sh | ||
docker run -it \ | ||
-p 2812:2812 \ | ||
-v $(pwd)/monitrc:/etc/monitrc \ | ||
-e "SLACK_URL=<SLACK_URL>" \ | ||
-e "PUSH_OVER_TOKEN=<PUSH_OVER_TOKEN>" \ | ||
-e "PUSH_OVER_USER=<PUSH_OVER_USER>" \ | ||
-e "DEBUG=0" \ | ||
diogopms/monit-docker-kubernetes | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set daemon 15 | ||
set log syslog | ||
set httpd port 2812 and allow admin:monit | ||
|
||
check host google.com with address google.com | ||
every 1 cycles | ||
if failed | ||
port 443 protocol https | ||
request / | ||
status = 200 | ||
content = "google" | ||
for 2 cycles | ||
then exec "/bin/slack" | ||
else if succeeded then exec "/bin/slack" | ||
then exec "/bin/pushover" | ||
else if succeeded then exec "/bin/pushover" | ||
EOF |