Révision fc3bfaeb
comment print statements that are not useful to munin
| plugins/system/uptime_bsd | ||
|---|---|---|
| 47 | 47 |
|
| 48 | 48 |
my $kern=`sysctl -n kern.version`; |
| 49 | 49 |
$kern=~ /:\s+(.*\S)\s+\w+\@/; |
| 50 |
print "Compile: $1\n"; |
|
| 50 |
#print "Compile: $1\n";
|
|
| 51 | 51 |
$kern=str2time($1); |
| 52 | 52 |
|
| 53 | 53 |
my $boot=`sysctl -n kern.boottime`; # OpenBSD will return seconds from the epoch |
| 54 | 54 |
if ($ostype ne "OpenBSD") {
|
| 55 | 55 |
$boot=~ / sec = (\d+)/; |
| 56 |
print "Boot: $1\n"; |
|
| 56 |
#print "Boot: $1\n";
|
|
| 57 | 57 |
$boot=$1; |
| 58 | 58 |
} |
| 59 | 59 |
|
Formats disponibles : Unified diff