mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
parent
538cdc9359
commit
211ec3afdb
1 changed files with 3 additions and 2 deletions
|
@ -79,10 +79,11 @@ if (defined $ARGV[0] and $ARGV[0] eq "config") {
|
|||
}
|
||||
|
||||
if ($response->content =~ /Temperature:\s*(.*)\s+F\s*\(\s*(.*)\s+C/) {
|
||||
my ($f, $c) = ($1, $2);
|
||||
if ($unit =~ /F/) {
|
||||
print "temperature.value $1\n";
|
||||
print "temperature.value $f\n";
|
||||
} else {
|
||||
print "temperature.value $2\n";
|
||||
print "temperature.value $c\n";
|
||||
}
|
||||
} else {
|
||||
print "temperature.value U\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue