1
0
Fork 0

monitoring based on checkup

This commit is contained in:
Tobias Brunner 2018-08-05 15:49:46 +00:00
parent 6ddfa344c8
commit 71ca7132eb
4 changed files with 60 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
backup.env
checkup.json

44
checkup.json.example Normal file
View File

@ -0,0 +1,44 @@
{
"checkers": [
{
"type": "http",
"endpoint_name": "Mikrotik Access Point",
"endpoint_url": "http://192.168.233.1"
},
{
"type": "http",
"endpoint_name": "Odoo",
"endpoint_url": "http://10.5.0.2:8069"
},
{
"type": "http",
"endpoint_name": "PosBox",
"endpoint_url": "http://10.5.0.3:8069"
},
{
"type": "tcp",
"endpoint_name": "Printer 1",
"endpoint_url": "192.168.233.3:80"
},
{
"type": "tcp",
"endpoint_name": "Printer 2",
"endpoint_url": "192.168.233.5:80"
},
{
"type": "tcp",
"endpoint_name": "PoS Tablet",
"endpoint_url": "192.168.233.49:80"
}
],
"storage": {
"provider": "github",
"access_token": "HIDDEN",
"repository_owner": "tobru",
"repository_name": "fwu-pos-statuspage",
"committer_name": "Checkup on PoS",
"committer_email": "pos@feuerwehrurdorf.ch",
"branch": "gh-pages",
"dir": "updates"
}
}

View File

@ -47,6 +47,14 @@ services:
networks:
localnet:
ipv4_address: 10.5.0.5
monitoring:
build: ./monitoring
command: checkup every 10m
volumes:
- ./checkup.json:/opt/checkup/checkup.json:ro
networks:
localnet:
ipv4_address: 10.5.0.6
volumes:
odoo-web-data:
odoo-db-data:

7
monitoring/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM golang:1.10-alpine
RUN set -x; apk add --no-cache git build-base && \
go get -v -u github.com/sourcegraph/checkup/cmd/checkup && \
mkdir -p /opt/checkup
WORKDIR /opt/checkup