charts.d.plugin: set "module" when sending CHART (#11390)
Ilya Mashchenko committed
Aug 3, 2021 at 11:33 UTC
54621aa8a1a1e1d5a845ca84ba1432ce72b21076
7 files changed
+46
-46
collectors/charts.d.plugin/ap/ap.chart.sh
+6
-6
@@ -61,25 +61,25 @@ ap_create() {
61
62
# create the chart with 3 dimensions
63
cat << EOF
64
-CHART ap_clients.${dev} '' "Connected clients to ${ssid} on ${dev}" "clients" ${dev} ap.clients line $((ap_priority + 1)) $ap_update_every
64
+CHART ap_clients.${dev} '' "Connected clients to ${ssid} on ${dev}" "clients" ${dev} ap.clients line $((ap_priority + 1)) $ap_update_every '' '' 'ap'
65
DIMENSION clients '' absolute 1 1
66
67
-CHART ap_bandwidth.${dev} '' "Bandwidth for ${ssid} on ${dev}" "kilobits/s" ${dev} ap.net area $((ap_priority + 2)) $ap_update_every
67
+CHART ap_bandwidth.${dev} '' "Bandwidth for ${ssid} on ${dev}" "kilobits/s" ${dev} ap.net area $((ap_priority + 2)) $ap_update_every '' '' 'ap'
68
DIMENSION received '' incremental 8 1024
69
DIMENSION sent '' incremental -8 1024
70
71
-CHART ap_packets.${dev} '' "Packets for ${ssid} on ${dev}" "packets/s" ${dev} ap.packets line $((ap_priority + 3)) $ap_update_every
71
+CHART ap_packets.${dev} '' "Packets for ${ssid} on ${dev}" "packets/s" ${dev} ap.packets line $((ap_priority + 3)) $ap_update_every '' '' 'ap'
72
DIMENSION received '' incremental 1 1
73
DIMENSION sent '' incremental -1 1
74
75
-CHART ap_issues.${dev} '' "Transmit Issues for ${ssid} on ${dev}" "issues/s" ${dev} ap.issues line $((ap_priority + 4)) $ap_update_every
75
+CHART ap_issues.${dev} '' "Transmit Issues for ${ssid} on ${dev}" "issues/s" ${dev} ap.issues line $((ap_priority + 4)) $ap_update_every '' '' 'ap'
76
DIMENSION retries 'tx retries' incremental 1 1
77
DIMENSION failures 'tx failures' incremental -1 1
78
79
-CHART ap_signal.${dev} '' "Average Signal for ${ssid} on ${dev}" "dBm" ${dev} ap.signal line $((ap_priority + 5)) $ap_update_every
79
+CHART ap_signal.${dev} '' "Average Signal for ${ssid} on ${dev}" "dBm" ${dev} ap.signal line $((ap_priority + 5)) $ap_update_every '' '' 'ap'
80
DIMENSION signal 'average signal' absolute 1 1000
81
82
-CHART ap_bitrate.${dev} '' "Bitrate for ${ssid} on ${dev}" "Mbps" ${dev} ap.bitrate line $((ap_priority + 6)) $ap_update_every
82
+CHART ap_bitrate.${dev} '' "Bitrate for ${ssid} on ${dev}" "Mbps" ${dev} ap.bitrate line $((ap_priority + 6)) $ap_update_every '' '' 'ap'
83
DIMENSION receive '' absolute 1 1000
84
DIMENSION transmit '' absolute -1 1000
85
DIMENSION expected 'expected throughput' absolute 1 1000
collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh
+9
-9
@@ -80,35 +80,35 @@ apcupsd_create() {
80
81
# create the charts
82
cat << EOF
83
-CHART apcupsd_${host}.charge '' "UPS Charge for ${host} on ${src}" "percentage" ups apcupsd.charge area $((apcupsd_priority + 1)) $apcupsd_update_every
83
+CHART apcupsd_${host}.charge '' "UPS Charge for ${host} on ${src}" "percentage" ups apcupsd.charge area $((apcupsd_priority + 1)) $apcupsd_update_every '' '' 'apcupsd'
84
DIMENSION battery_charge charge absolute 1 100
85
86
-CHART apcupsd_${host}.battery_voltage '' "UPS Battery Voltage for ${host} on ${src}" "Volts" ups apcupsd.battery.voltage line $((apcupsd_priority + 3)) $apcupsd_update_every
86
+CHART apcupsd_${host}.battery_voltage '' "UPS Battery Voltage for ${host} on ${src}" "Volts" ups apcupsd.battery.voltage line $((apcupsd_priority + 3)) $apcupsd_update_every '' '' 'apcupsd'
87
DIMENSION battery_voltage voltage absolute 1 100
88
DIMENSION battery_voltage_nominal nominal absolute 1 100
89
90
-CHART apcupsd_${host}.input_voltage '' "UPS Input Voltage for ${host} on ${src}" "Volts" input apcupsd.input.voltage line $((apcupsd_priority + 4)) $apcupsd_update_every
90
+CHART apcupsd_${host}.input_voltage '' "UPS Input Voltage for ${host} on ${src}" "Volts" input apcupsd.input.voltage line $((apcupsd_priority + 4)) $apcupsd_update_every '' '' 'apcupsd'
91
DIMENSION input_voltage voltage absolute 1 100
92
DIMENSION input_voltage_min min absolute 1 100
93
DIMENSION input_voltage_max max absolute 1 100
94
95
-CHART apcupsd_${host}.input_frequency '' "UPS Input Frequency for ${host} on ${src}" "Hz" input apcupsd.input.frequency line $((apcupsd_priority + 5)) $apcupsd_update_every
95
+CHART apcupsd_${host}.input_frequency '' "UPS Input Frequency for ${host} on ${src}" "Hz" input apcupsd.input.frequency line $((apcupsd_priority + 5)) $apcupsd_update_every '' '' 'apcupsd'
96
DIMENSION input_frequency frequency absolute 1 100
97
98
-CHART apcupsd_${host}.output_voltage '' "UPS Output Voltage for ${host} on ${src}" "Volts" output apcupsd.output.voltage line $((apcupsd_priority + 6)) $apcupsd_update_every
98
+CHART apcupsd_${host}.output_voltage '' "UPS Output Voltage for ${host} on ${src}" "Volts" output apcupsd.output.voltage line $((apcupsd_priority + 6)) $apcupsd_update_every '' '' 'apcupsd'
99
DIMENSION output_voltage voltage absolute 1 100
100
DIMENSION output_voltage_nominal nominal absolute 1 100
101
102
-CHART apcupsd_${host}.load '' "UPS Load for ${host} on ${src}" "percentage" ups apcupsd.load area $((apcupsd_priority)) $apcupsd_update_every
102
+CHART apcupsd_${host}.load '' "UPS Load for ${host} on ${src}" "percentage" ups apcupsd.load area $((apcupsd_priority)) $apcupsd_update_every '' '' 'apcupsd'
103
DIMENSION load load absolute 1 100
104
105
-CHART apcupsd_${host}.temp '' "UPS Temperature for ${host} on ${src}" "Celsius" ups apcupsd.temperature line $((apcupsd_priority + 7)) $apcupsd_update_every
105
+CHART apcupsd_${host}.temp '' "UPS Temperature for ${host} on ${src}" "Celsius" ups apcupsd.temperature line $((apcupsd_priority + 7)) $apcupsd_update_every '' '' 'apcupsd'
106
DIMENSION temp temp absolute 1 100
107
108
-CHART apcupsd_${host}.time '' "UPS Time Remaining for ${host} on ${src}" "Minutes" ups apcupsd.time area $((apcupsd_priority + 2)) $apcupsd_update_every
108
+CHART apcupsd_${host}.time '' "UPS Time Remaining for ${host} on ${src}" "Minutes" ups apcupsd.time area $((apcupsd_priority + 2)) $apcupsd_update_every '' '' 'apcupsd'
109
DIMENSION time time absolute 1 100
110
111
-CHART apcupsd_${host}.online '' "UPS ONLINE flag for ${host} on ${src}" "boolean" ups apcupsd.online line $((apcupsd_priority + 8)) $apcupsd_update_every
111
+CHART apcupsd_${host}.online '' "UPS ONLINE flag for ${host} on ${src}" "boolean" ups apcupsd.online line $((apcupsd_priority + 8)) $apcupsd_update_every '' '' 'apcupsd'
112
DIMENSION online online absolute 0 1
113
114
EOF
collectors/charts.d.plugin/charts.d.plugin.in
+1
-1
@@ -634,7 +634,7 @@ global_update() {
634
charts_run_counter[$chart]=0
635
charts_serial_failures[$chart]=0
636
637
- echo "CHART netdata.plugin_chartsd_$chart '' 'Execution time for $chart plugin' 'milliseconds / run' charts.d netdata.plugin_charts area 145000 ${charts_update_every[$chart]}"
637
+ echo "CHART netdata.plugin_chartsd_$chart '' 'Execution time for $chart plugin' 'milliseconds / run' charts.d netdata.plugin_charts area 145000 ${charts_update_every[$chart]} '' '' '$chart'"
638
echo "DIMENSION run_time 'run time' absolute 1 1"
639
done
640
collectors/charts.d.plugin/example/example.chart.sh
+2
-2
@@ -89,11 +89,11 @@ example_check() {
89
example_create() {
90
# create the chart with 3 dimensions
91
cat << EOF
92
-CHART example.random '' "Random Numbers Stacked Chart" "% of random numbers" random random stacked $((example_priority)) $example_update_every
92
+CHART example.random '' "Random Numbers Stacked Chart" "% of random numbers" random random stacked $((example_priority)) $example_update_every '' '' 'example'
93
DIMENSION random1 '' percentage-of-absolute-row 1 1
94
DIMENSION random2 '' percentage-of-absolute-row 1 1
95
DIMENSION random3 '' percentage-of-absolute-row 1 1
96
-CHART example.random2 '' "A random number" "random number" random random area $((example_priority + 1)) $example_update_every
96
+CHART example.random2 '' "A random number" "random number" random random area $((example_priority + 1)) $example_update_every '' '' 'example'
97
DIMENSION random '' absolute 1 1
98
EOF
99
collectors/charts.d.plugin/libreswan/libreswan.chart.sh
+2
-2
@@ -124,10 +124,10 @@ libreswan_create_one() {
124
libreswan_tunnel_charts[${name}]="$(fixid "${name}")"
125
126
cat << EOF
127
-CHART libreswan.${libreswan_tunnel_charts[${name}]}_net '${name}_net' "LibreSWAN Tunnel ${name} Traffic" "kilobits/s" "${name}" libreswan.net area $((libreswan_priority)) $libreswan_update_every
127
+CHART libreswan.${libreswan_tunnel_charts[${name}]}_net '${name}_net' "LibreSWAN Tunnel ${name} Traffic" "kilobits/s" "${name}" libreswan.net area $((libreswan_priority)) $libreswan_update_every '' '' 'libreswan'
128
DIMENSION in '' incremental 8 1000
129
DIMENSION out '' incremental -8 1000
130
-CHART libreswan.${libreswan_tunnel_charts[${name}]}_uptime '${name}_uptime' "LibreSWAN Tunnel ${name} Uptime" "seconds" "${name}" libreswan.uptime line $((libreswan_priority + 1)) $libreswan_update_every
130
+CHART libreswan.${libreswan_tunnel_charts[${name}]}_uptime '${name}_uptime' "LibreSWAN Tunnel ${name} Uptime" "seconds" "${name}" libreswan.uptime line $((libreswan_priority + 1)) $libreswan_update_every '' '' 'libreswan'
131
DIMENSION uptime '' absolute 1 1
132
EOF
133
collectors/charts.d.plugin/opensips/opensips.chart.sh
+19
-19
@@ -49,61 +49,61 @@ opensips_check() {
49
opensips_create() {
50
# create the charts
51
cat << EOF
52
-CHART opensips.dialogs_active '' "OpenSIPS Active Dialogs" "dialogs" dialogs '' area $((opensips_priority + 1)) $opensips_update_every
52
+CHART opensips.dialogs_active '' "OpenSIPS Active Dialogs" "dialogs" dialogs '' area $((opensips_priority + 1)) $opensips_update_every '' '' 'opensips'
53
DIMENSION dialog_active_dialogs active absolute 1 1
54
DIMENSION dialog_early_dialogs early absolute -1 1
55
56
-CHART opensips.users '' "OpenSIPS Users" "users" users '' line $((opensips_priority + 2)) $opensips_update_every
56
+CHART opensips.users '' "OpenSIPS Users" "users" users '' line $((opensips_priority + 2)) $opensips_update_every '' '' 'opensips'
57
DIMENSION usrloc_registered_users registered absolute 1 1
58
DIMENSION usrloc_location_users location absolute 1 1
59
DIMENSION usrloc_location_contacts contacts absolute 1 1
60
DIMENSION usrloc_location_expires expires incremental -1 1
61
62
-CHART opensips.registrar '' "OpenSIPS Registrar" "registrations/s" registrar '' line $((opensips_priority + 3)) $opensips_update_every
62
+CHART opensips.registrar '' "OpenSIPS Registrar" "registrations/s" registrar '' line $((opensips_priority + 3)) $opensips_update_every '' '' 'opensips'
63
DIMENSION registrar_accepted_regs accepted incremental 1 1
64
DIMENSION registrar_rejected_regs rejected incremental -1 1
65
66
-CHART opensips.transactions '' "OpenSIPS Transactions" "transactions/s" transactions '' line $((opensips_priority + 4)) $opensips_update_every
66
+CHART opensips.transactions '' "OpenSIPS Transactions" "transactions/s" transactions '' line $((opensips_priority + 4)) $opensips_update_every '' '' 'opensips'
67
DIMENSION tm_UAS_transactions UAS incremental 1 1
68
DIMENSION tm_UAC_transactions UAC incremental -1 1
69
70
-CHART opensips.core_rcv '' "OpenSIPS Core Receives" "queries/s" core '' line $((opensips_priority + 5)) $opensips_update_every
70
+CHART opensips.core_rcv '' "OpenSIPS Core Receives" "queries/s" core '' line $((opensips_priority + 5)) $opensips_update_every '' '' 'opensips'
71
DIMENSION core_rcv_requests requests incremental 1 1
72
DIMENSION core_rcv_replies replies incremental -1 1
73
74
-CHART opensips.core_fwd '' "OpenSIPS Core Forwards" "queries/s" core '' line $((opensips_priority + 6)) $opensips_update_every
74
+CHART opensips.core_fwd '' "OpenSIPS Core Forwards" "queries/s" core '' line $((opensips_priority + 6)) $opensips_update_every '' '' 'opensips'
75
DIMENSION core_fwd_requests requests incremental 1 1
76
DIMENSION core_fwd_replies replies incremental -1 1
77
78
-CHART opensips.core_drop '' "OpenSIPS Core Drops" "queries/s" core '' line $((opensips_priority + 7)) $opensips_update_every
78
+CHART opensips.core_drop '' "OpenSIPS Core Drops" "queries/s" core '' line $((opensips_priority + 7)) $opensips_update_every '' '' 'opensips'
79
DIMENSION core_drop_requests requests incremental 1 1
80
DIMENSION core_drop_replies replies incremental -1 1
81
82
-CHART opensips.core_err '' "OpenSIPS Core Errors" "queries/s" core '' line $((opensips_priority + 8)) $opensips_update_every
82
+CHART opensips.core_err '' "OpenSIPS Core Errors" "queries/s" core '' line $((opensips_priority + 8)) $opensips_update_every '' '' 'opensips'
83
DIMENSION core_err_requests requests incremental 1 1
84
DIMENSION core_err_replies replies incremental -1 1
85
86
-CHART opensips.core_bad '' "OpenSIPS Core Bad" "queries/s" core '' line $((opensips_priority + 9)) $opensips_update_every
86
+CHART opensips.core_bad '' "OpenSIPS Core Bad" "queries/s" core '' line $((opensips_priority + 9)) $opensips_update_every '' '' 'opensips'
87
DIMENSION core_bad_URIs_rcvd bad_URIs_rcvd incremental 1 1
88
DIMENSION core_unsupported_methods unsupported_methods incremental 1 1
89
DIMENSION core_bad_msg_hdr bad_msg_hdr incremental 1 1
90
91
-CHART opensips.tm_replies '' "OpenSIPS TM Replies" "replies/s" transactions '' line $((opensips_priority + 10)) $opensips_update_every
91
+CHART opensips.tm_replies '' "OpenSIPS TM Replies" "replies/s" transactions '' line $((opensips_priority + 10)) $opensips_update_every '' '' 'opensips'
92
DIMENSION tm_received_replies received incremental 1 1
93
DIMENSION tm_relayed_replies relayed incremental 1 1
94
DIMENSION tm_local_replies local incremental 1 1
95
96
-CHART opensips.transactions_status '' "OpenSIPS Transactions Status" "transactions/s" transactions '' line $((opensips_priority + 11)) $opensips_update_every
96
+CHART opensips.transactions_status '' "OpenSIPS Transactions Status" "transactions/s" transactions '' line $((opensips_priority + 11)) $opensips_update_every '' '' 'opensips'
97
DIMENSION tm_2xx_transactions 2xx incremental 1 1
98
DIMENSION tm_3xx_transactions 3xx incremental 1 1
99
DIMENSION tm_4xx_transactions 4xx incremental 1 1
100
DIMENSION tm_5xx_transactions 5xx incremental 1 1
101
DIMENSION tm_6xx_transactions 6xx incremental 1 1
102
103
-CHART opensips.transactions_inuse '' "OpenSIPS InUse Transactions" "transactions" transactions '' line $((opensips_priority + 12)) $opensips_update_every
103
+CHART opensips.transactions_inuse '' "OpenSIPS InUse Transactions" "transactions" transactions '' line $((opensips_priority + 12)) $opensips_update_every '' '' 'opensips'
104
DIMENSION tm_inuse_transactions inuse absolute 1 1
105
106
-CHART opensips.sl_replies '' "OpenSIPS SL Replies" "replies/s" core '' line $((opensips_priority + 13)) $opensips_update_every
106
+CHART opensips.sl_replies '' "OpenSIPS SL Replies" "replies/s" core '' line $((opensips_priority + 13)) $opensips_update_every '' '' 'opensips'
107
DIMENSION sl_1xx_replies 1xx incremental 1 1
108
DIMENSION sl_2xx_replies 2xx incremental 1 1
109
DIMENSION sl_3xx_replies 3xx incremental 1 1
@@ -114,31 +114,31 @@ DIMENSION sl_sent_replies sent incremental 1 1
114
DIMENSION sl_sent_err_replies error incremental 1 1
115
DIMENSION sl_received_ACKs ACKed incremental 1 1
116
117
-CHART opensips.dialogs '' "OpenSIPS Dialogs" "dialogs/s" dialogs '' line $((opensips_priority + 14)) $opensips_update_every
117
+CHART opensips.dialogs '' "OpenSIPS Dialogs" "dialogs/s" dialogs '' line $((opensips_priority + 14)) $opensips_update_every '' '' 'opensips'
118
DIMENSION dialog_processed_dialogs processed incremental 1 1
119
DIMENSION dialog_expired_dialogs expired incremental 1 1
120
DIMENSION dialog_failed_dialogs failed incremental -1 1
121
122
-CHART opensips.net_waiting '' "OpenSIPS Network Waiting" "kilobytes" net '' line $((opensips_priority + 15)) $opensips_update_every
122
+CHART opensips.net_waiting '' "OpenSIPS Network Waiting" "kilobytes" net '' line $((opensips_priority + 15)) $opensips_update_every '' '' 'opensips'
123
DIMENSION net_waiting_udp UDP absolute 1 1024
124
DIMENSION net_waiting_tcp TCP absolute 1 1024
125
126
-CHART opensips.uri_checks '' "OpenSIPS URI Checks" "checks / sec" uri '' line $((opensips_priority + 16)) $opensips_update_every
126
+CHART opensips.uri_checks '' "OpenSIPS URI Checks" "checks / sec" uri '' line $((opensips_priority + 16)) $opensips_update_every '' '' 'opensips'
127
DIMENSION uri_positive_checks positive incremental 1 1
128
DIMENSION uri_negative_checks negative incremental -1 1
129
130
-CHART opensips.traces '' "OpenSIPS Traces" "traces / sec" traces '' line $((opensips_priority + 17)) $opensips_update_every
130
+CHART opensips.traces '' "OpenSIPS Traces" "traces / sec" traces '' line $((opensips_priority + 17)) $opensips_update_every '' '' 'opensips'
131
DIMENSION siptrace_traced_requests requests incremental 1 1
132
DIMENSION siptrace_traced_replies replies incremental -1 1
133
134
-CHART opensips.shmem '' "OpenSIPS Shared Memory" "kilobytes" mem '' line $((opensips_priority + 18)) $opensips_update_every
134
+CHART opensips.shmem '' "OpenSIPS Shared Memory" "kilobytes" mem '' line $((opensips_priority + 18)) $opensips_update_every '' '' 'opensips'
135
DIMENSION shmem_total_size total absolute 1 1024
136
DIMENSION shmem_used_size used absolute 1 1024
137
DIMENSION shmem_real_used_size real_used absolute 1 1024
138
DIMENSION shmem_max_used_size max_used absolute 1 1024
139
DIMENSION shmem_free_size free absolute 1 1024
140
141
-CHART opensips.shmem_fragments '' "OpenSIPS Shared Memory Fragmentation" "fragments" mem '' line $((opensips_priority + 19)) $opensips_update_every
141
+CHART opensips.shmem_fragments '' "OpenSIPS Shared Memory Fragmentation" "fragments" mem '' line $((opensips_priority + 19)) $opensips_update_every '' '' 'opensips'
142
DIMENSION shmem_fragments fragments absolute 1 1
143
EOF
144
collectors/charts.d.plugin/sensors/sensors.chart.sh
+7
-7
@@ -143,7 +143,7 @@ sensors_create() {
143
files="$(sensors_check_files "$files")"
144
files="$(sensors_check_temp_type "$files")"
145
[ -z "$files" ] && continue
146
- echo "CHART sensors.temp_$id '' '$name Temperature' 'Celsius' 'temperature' 'sensors.temp' line $((sensors_priority + 1)) $sensors_update_every"
146
+ echo "CHART sensors.temp_$id '' '$name Temperature' 'Celsius' 'temperature' 'sensors.temp' line $((sensors_priority + 1)) $sensors_update_every '' '' 'sensors'"
147
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.temp_$id \$1\""
148
divisor=1000
149
;;
@@ -152,7 +152,7 @@ sensors_create() {
152
files="$(ls "$path"/in*_input 2>/dev/null)"
153
files="$(sensors_check_files "$files")"
154
[ -z "$files" ] && continue
155
- echo "CHART sensors.volt_$id '' '$name Voltage' 'Volts' 'voltage' 'sensors.volt' line $((sensors_priority + 2)) $sensors_update_every"
155
+ echo "CHART sensors.volt_$id '' '$name Voltage' 'Volts' 'voltage' 'sensors.volt' line $((sensors_priority + 2)) $sensors_update_every '' '' 'sensors'"
156
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.volt_$id \$1\""
157
divisor=1000
158
;;
@@ -161,7 +161,7 @@ sensors_create() {
161
files="$(ls "$path"/curr*_input 2>/dev/null)"
162
files="$(sensors_check_files "$files")"
163
[ -z "$files" ] && continue
164
- echo "CHART sensors.curr_$id '' '$name Current' 'Ampere' 'current' 'sensors.curr' line $((sensors_priority + 3)) $sensors_update_every"
164
+ echo "CHART sensors.curr_$id '' '$name Current' 'Ampere' 'current' 'sensors.curr' line $((sensors_priority + 3)) $sensors_update_every '' '' 'sensors'"
165
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.curr_$id \$1\""
166
divisor=1000
167
;;
@@ -170,7 +170,7 @@ sensors_create() {
170
files="$(ls "$path"/power*_input 2>/dev/null)"
171
files="$(sensors_check_files "$files")"
172
[ -z "$files" ] && continue
173
- echo "CHART sensors.power_$id '' '$name Power' 'Watt' 'power' 'sensors.power' line $((sensors_priority + 4)) $sensors_update_every"
173
+ echo "CHART sensors.power_$id '' '$name Power' 'Watt' 'power' 'sensors.power' line $((sensors_priority + 4)) $sensors_update_every '' '' 'sensors'"
174
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.power_$id \$1\""
175
divisor=1000000
176
;;
@@ -179,7 +179,7 @@ sensors_create() {
179
files="$(ls "$path"/fan*_input 2>/dev/null)"
180
files="$(sensors_check_files "$files")"
181
[ -z "$files" ] && continue
182
- echo "CHART sensors.fan_$id '' '$name Fans Speed' 'Rotations / Minute' 'fans' 'sensors.fans' line $((sensors_priority + 5)) $sensors_update_every"
182
+ echo "CHART sensors.fan_$id '' '$name Fans Speed' 'Rotations / Minute' 'fans' 'sensors.fans' line $((sensors_priority + 5)) $sensors_update_every '' '' 'sensors'"
183
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.fan_$id \$1\""
184
;;
185
@@ -187,7 +187,7 @@ sensors_create() {
187
files="$(ls "$path"/energy*_input 2>/dev/null)"
188
files="$(sensors_check_files "$files")"
189
[ -z "$files" ] && continue
190
- echo "CHART sensors.energy_$id '' '$name Energy' 'Joule' 'energy' 'sensors.energy' areastack $((sensors_priority + 6)) $sensors_update_every"
190
+ echo "CHART sensors.energy_$id '' '$name Energy' 'Joule' 'energy' 'sensors.energy' areastack $((sensors_priority + 6)) $sensors_update_every '' '' 'sensors'"
191
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.energy_$id \$1\""
192
algorithm="incremental"
193
divisor=1000000
@@ -197,7 +197,7 @@ sensors_create() {
197
files="$(ls "$path"/humidity*_input 2>/dev/null)"
198
files="$(sensors_check_files "$files")"
199
[ -z "$files" ] && continue
200
- echo "CHART sensors.humidity_$id '' '$name Humidity' 'Percent' 'humidity' 'sensors.humidity' line $((sensors_priority + 7)) $sensors_update_every"
200
+ echo "CHART sensors.humidity_$id '' '$name Humidity' 'Percent' 'humidity' 'sensors.humidity' line $((sensors_priority + 7)) $sensors_update_every '' '' 'sensors'"
201
echo >>"$TMP_DIR/sensors.sh" "echo \"BEGIN sensors.humidity_$id \$1\""
202
divisor=1000
203
;;