mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
nutups2: fix for status line without value
"upsc name" can output line "input.transfer.reason: " (key without value). Allow it.
This commit is contained in:
parent
d43862ac62
commit
46723dec16
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ sub read_ups_values {
|
|||
for my $line (@lines) {
|
||||
chomp $line;
|
||||
|
||||
my ($key, $value) = $line =~ m/^([^:]+):\s+(\S.*)$/;
|
||||
my ($key, $value) = $line =~ m/^([^:]+):\s+(.*)$/;
|
||||
$values->{$key} = $value;
|
||||
}
|
||||
return $values;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue