Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

hddtemp*: avoid using the degrees symbol in vlabel.

The encodings between the different files don't match, and besides, it
seems like even on a fully configured UTF-8 system, an UTF-8 degrees
symbol can throw rrd off.

Every other temperature graph out there uses a variant of 'degrees
Celsius', and that's what the new freeipmi and hwmon plugins use as
well, so that looks like the standard.
  • Loading branch information...
commit 807d12ff7ac8f7aa9974615a476f8c5d1e84fa7a 1 parent a9730f6
@Flameeyes Flameeyes authored
View
2  plugins/node.d/hddtemp.in
@@ -28,7 +28,7 @@ if [ "$1" = "config" ]; then
echo 'graph_title HDD temperature'
echo 'graph_args --base 1000 -l 0'
- echo 'graph_vlabel temp in °C'
+ echo 'graph_vlabel Degrees Celsius'
echo 'graph_category sensors'
for a in $drives ; do echo $a.label $a ; done
exit 0
View
2  plugins/node.d/hddtemp2.in
@@ -35,7 +35,7 @@ my $HDDTEMP = $ENV{'hddtemp'} || 'hddtemp';
my %config = (
regex => qr/^\/dev\/([^:]+):\s*([^:]+):\s*([\d.]+) C/m,
title => "Temperatures (Hard Disks)",
- vlabel => '°Celsius',
+ vlabel => 'Degrees Celsius',
warning => 50,
critical => 60,
graph_args => '--base 1000'
View
2  plugins/node.d/hddtemp_smartctl.in
@@ -192,7 +192,7 @@ if (defined $ARGV[0]) {
}
} elsif ($ARGV[0] eq 'config') {
print "graph_title HDD temperature\n";
- print "graph_vlabel temp in °C\n";
+ print "graph_vlabel Degrees Celsius\n";
print "graph_category sensors\n";
print "graph_info This graph shows the temperature in degrees Celsius of the hard drives in the machine.\n";
foreach (@drives) {
View
2  plugins/node.d/hddtempd.in
@@ -72,7 +72,7 @@ if ($ARGV[0] and $ARGV[0] eq "autoconf") {
if ($ARGV[0] and $ARGV[0] eq "config") {
print "graph_title HDD temperature\n";
print "graph_args --base 1000 -l 0\n";
- print "graph_vlabel temperature in °$scale\n";
+ print "graph_vlabel Degrees $scale\n";
my @data = get_data();
Please sign in to comment.
Something went wrong with that request. Please try again.