1
0
Fork 0
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:
Colin Mollenhour 2014-10-16 14:34:50 -04:00
parent e9bda2bab6
commit 868937c848

View file

@ -65,9 +65,11 @@ my $seconds = 0;
my (@infos,$info,$i_seconds);
my $info = `$COMMAND`;
$info =~ /: (\d+)/;
print("seconds.value $1\n");
if($info =~ /: (\d+)/) {
print("seconds.value $1\n");
} else {
print("seconds.value U\n");
}
sub print_config {