mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Report properly when value is undefined (slave error).
This commit is contained in:
parent
e9bda2bab6
commit
868937c848
1 changed files with 5 additions and 3 deletions
|
@ -65,9 +65,11 @@ my $seconds = 0;
|
||||||
my (@infos,$info,$i_seconds);
|
my (@infos,$info,$i_seconds);
|
||||||
|
|
||||||
my $info = `$COMMAND`;
|
my $info = `$COMMAND`;
|
||||||
$info =~ /: (\d+)/;
|
if($info =~ /: (\d+)/) {
|
||||||
|
print("seconds.value $1\n");
|
||||||
print("seconds.value $1\n");
|
} else {
|
||||||
|
print("seconds.value U\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sub print_config {
|
sub print_config {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue