Skip to content

Commit 6bc76f9

Browse files
author
yacut
committed
add local environment
1 parent 2c6f272 commit 6bc76f9

2 files changed

Lines changed: 47 additions & 2 deletions

File tree

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
# ilert-nagios
2+
23
iLert Integration Plugin for Nagios, Icinga, and Check_MK.
34

45
For setup instructions, refer to our integration guides below.
56

67
## Integration Guides
7-
* [iLert Nagios Integration](https://docs.ilert.com/integrations/nagios/)
8-
* [iLert Check_MK Integration](https://docs.ilert.com/integrations/check-mk/)
8+
9+
- [iLert Nagios Integration](https://docs.ilert.com/integrations/nagios/)
10+
- [iLert Check_MK Integration](https://docs.ilert.com/integrations/check-mk/)
11+
12+
### Local environment
13+
14+
#### Nagios
15+
16+
```sh
17+
docker-compose up -d
18+
```
19+
20+
#### CheckMk
21+
22+
```sh
23+
docker-compose -f ./docker-compose-checkmk.yaml up -d
24+
```

docker-compose-checkmk.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
version: "3"
3+
services:
4+
checkmk:
5+
image: checkmk/check-mk-raw:1.6.0
6+
restart: always
7+
hostname: checkmk.local
8+
command: >
9+
bash -c "set -e;
10+
echo 'Initialize plugins...';
11+
chmod 755 /usr/local/bin/ilert_nagios.py ;
12+
chmod 755 /omd/sites/cmk/share/check_mk/notifications/ilert_check_mk.sh;
13+
/docker-entrypoint.sh"
14+
ulimits:
15+
nofile: 1024
16+
ports:
17+
- "5000:5000"
18+
volumes:
19+
- checkmk_data:/omd/sites
20+
- /etc/localtime:/etc/localtime:ro
21+
- /var/run/docker.sock:/var/run/docker.sock
22+
- ./ilert_nagios.py:/usr/local/bin/ilert_nagios.py
23+
- ./ilert_check_mk.sh:/omd/sites/cmk/share/check_mk/notifications/ilert_check_mk.sh
24+
environment:
25+
CMK_USERNAME: cmkadmin
26+
CMK_PASSWORD: cmkadmin
27+
28+
volumes:
29+
checkmk_data: {}

0 commit comments

Comments
 (0)