mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
comment print statements that are not useful to munin
This commit is contained in:
parent
444ccae260
commit
fc3bfaebc1
1 changed files with 2 additions and 2 deletions
|
@ -47,13 +47,13 @@ use Date::Parse;
|
||||||
|
|
||||||
my $kern=`sysctl -n kern.version`;
|
my $kern=`sysctl -n kern.version`;
|
||||||
$kern=~ /:\s+(.*\S)\s+\w+\@/;
|
$kern=~ /:\s+(.*\S)\s+\w+\@/;
|
||||||
print "Compile: $1\n";
|
#print "Compile: $1\n";
|
||||||
$kern=str2time($1);
|
$kern=str2time($1);
|
||||||
|
|
||||||
my $boot=`sysctl -n kern.boottime`; # OpenBSD will return seconds from the epoch
|
my $boot=`sysctl -n kern.boottime`; # OpenBSD will return seconds from the epoch
|
||||||
if ($ostype ne "OpenBSD") {
|
if ($ostype ne "OpenBSD") {
|
||||||
$boot=~ / sec = (\d+)/;
|
$boot=~ / sec = (\d+)/;
|
||||||
print "Boot: $1\n";
|
#print "Boot: $1\n";
|
||||||
$boot=$1;
|
$boot=$1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue