Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 6580
blob2f8450c3e8949797ceba2d4daba05d210df15c5c
1 Title: Optionally send parts of the service state to Graphite/InfluxDB
2 Level: 1
3 Component: cmc
4 Compatible: compat
5 Edition: cee
6 Version: 1.6.0i1
7 Date: 1537171102
8 Class: feature
10 In addition to the existing options
12 LI:Value
13 LI:Unity of measurement
14 LI:Warning threshold
15 LI:Critical threshold
16 LI:Minimum
17 LI:Maximum
19 three new options have been added to the rule "Send metrics to Graphite/InfluxDB":
21 LI:State
22 LI:Scheduled downtime depth
23 LI:Acknowledged
25 When these options are activated, the corresponding parts of the service state
26 are sent via the Graphite/InfluxDB interface, too. Note that these value are
27 sent once per service, while the already existing options are per metric. To
28 avoid a clash with existing metric names, the three new metric names all start
29 with an equals sign, because due to the Nagios metric syntax, no metric can
30 start with that character. In detail:
32 LI:=state: the current state of the service, 0/1/2/3 for OK/WARN/CRIT/UNKNOWN
33 LI:=scheduled_downtime_depth: the number of downtimes the service is currently in
34 LI:=acknowledged: whether the current problem, if any, has been acknowledged (0/1)
36 As an example, here the data sent to Graphite/InfluxDB for the "CPU load"
37 service on host "myhost" when all options are enabled:
39 C+:
40 myhost.CPU_load.=state 0 1537170248
41 myhost.CPU_load.=scheduled_downtime_depth 0 1537170248
42 myhost.CPU_load.=acknowledged 0 1537170248
43 myhost.CPU_load.load1 1.05 1537170248
44 myhost.CPU_load.load1.warn 40 1537170248
45 myhost.CPU_load.load1.crit 80 1537170248
46 myhost.CPU_load.load1.min 0 1537170248
47 myhost.CPU_load.load1.max 8 1537170248
48 myhost.CPU_load.load5 0.75 1537170248
49 myhost.CPU_load.load5.warn 40 1537170248
50 myhost.CPU_load.load5.crit 80 1537170248
51 myhost.CPU_load.load5.min 0 1537170248
52 myhost.CPU_load.load5.max 8 1537170248
53 myhost.CPU_load.load15 0.71 1537170248
54 myhost.CPU_load.load15.warn 40 1537170248
55 myhost.CPU_load.load15.crit 80 1537170248
56 myhost.CPU_load.load15.min 0 1537170248
57 myhost.CPU_load.load15.max 8 1537170248
58 C-:
60 CMK-898