forked from andrefreitas/rocketchat-nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (34 loc) · 830 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: test-unknown test-ok test-critical test-warning
URL=$(shell cat url.txt)
test-unknown:
./rocketchat.py \
--url $(URL) \
--hostalias alfredo \
--notificationtype RECOVERY \
--servicestate UNKNOWN \
--serviceoutput "PING 100% LOSS" \
--servicedesc counter
test-ok:
./rocketchat.py \
--url $(URL) \
--hostalias alfredo \
--notificationtype RECOVERY \
--servicestate OK \
--serviceoutput "PING 100% LOSS" \
--servicedesc counter
test-critical:
./rocketchat.py \
--url $(URL) \
--hostalias alfredo \
--notificationtype RECOVERY \
--servicestate CRITICAL \
--serviceoutput "PING 100% LOSS" \
--servicedesc counter
test-warning:
./rocketchat.py \
--url $(URL) \
--hostalias alfredo \
--notificationtype RECOVERY \
--servicestate WARNING \
--serviceoutput "PING 100% LOSS" \
--servicedesc counter