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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
##_________________________________________________________________________
## Grundlagen-Werte
#
#
# Battery
define ngraph{
graph_perf_regex battery=([0-9]+)%
graph_value battery_perc
hide yes
service_name apcusv
}
# Load
define ngraph{
graph_perf_regex load=([0-9]+)%
graph_value load_perc
hide yes
service_name apcusv
}
#_________________________________________________________________________
#
# Load < Cap =>
# die rote Fläche zuerst
define ngraph{
graph_calc load_perc,UN,0,load_perc,battery_perc,LE,load_perc,0,IF,IF
graph_value load_perc_area
hide no
graph_units Prozent (%)
graph_legend USV-Last
graph_legend_eol center
graph_upper_limit 100
graph_lower_limit 0
rrd_color FF000075
rrd_plottype AREA
service_name apcusv
type CDEF
}
# ...dann die grüne...
define ngraph{
graph_calc battery_perc,UN,0,load_perc,battery_perc,LE,battery_perc,load_perc,-,0,IF,IF
# graph_calc battery_perc,load_perc,-
graph_value battery_load_area
hide no
graph_legend Ladestand Batterie
graph_legend_eol center
rrd_color 00FF0075
rrd_plottype STACK
service_name apcusv
type CDEF
}
#_________________________________________________________________________
#
# Load > Cap =>
# grüne Fläche zuerst
define ngraph{
graph_calc battery_perc,UN,0,load_perc,battery_perc,GT,battery_perc,0,IF,IF
graph_value load_perc_area1
hide no
graph_upper_limit 100
graph_lower_limit 0
rrd_color 00FF0075
rrd_plottype AREA
service_name apcusv
type CDEF
}
# ...dann die rote
define ngraph{
graph_calc load_perc,UN,0,load_perc,battery_perc,GT,load_perc,battery_perc,-,0,IF,IF
graph_value battery_load_area2
hide no
rrd_color FF000075
rrd_plottype STACK
service_name apcusv
type CDEF
}
#...grüne Linie
define ngraph{
graph_calc battery_perc
graph_value battery_perc_line
hide no
service_name apcusv
rrd_color 00FF00
rrd_plottype LINE1
type CDEF
}
# rote Linie....
define ngraph{
graph_calc load_perc
graph_value load_perc_line
hide no
service_name apcusv
rrd_color FF0000
rrd_plottype LINE1
type CDEF
}
|