monitoring based on checkup
This commit is contained in:
parent
6ddfa344c8
commit
71ca7132eb
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
backup.env
|
backup.env
|
||||||
|
checkup.json
|
||||||
|
|
44
checkup.json.example
Normal file
44
checkup.json.example
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -47,6 +47,14 @@ services:
|
||||||
networks:
|
networks:
|
||||||
localnet:
|
localnet:
|
||||||
ipv4_address: 10.5.0.5
|
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:
|
volumes:
|
||||||
odoo-web-data:
|
odoo-web-data:
|
||||||
odoo-db-data:
|
odoo-db-data:
|
||||||
|
|
7
monitoring/Dockerfile
Normal file
7
monitoring/Dockerfile
Normal 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
|
Reference in a new issue