mirror of https://github.com/mikaku/Monitorix.git
last update for 3.0.0beta1
This commit is contained in:
parent
e641808b6e
commit
ad381b25c0
8
README
8
README
|
@ -53,10 +53,10 @@ hands to work.
|
|||
Since the release 2.6.0 Monitorix includes support for NetBSD systems.
|
||||
|
||||
With the release of the 3.0.0 version, Monitorix suffered another big rewrite
|
||||
which became it into a complete modular code structure reducing notably its
|
||||
memory footprint. That new version also included a number of new features and
|
||||
graphs, cleaned up all the code, fixed a lot of bugs and had a safest code as
|
||||
it used 'strict' in all its modules.
|
||||
which became it into a complete modular code structure reducing in some cases
|
||||
its memory footprint. That new version also included a number of new features
|
||||
and graphs, cleaned up all the code, fixed a lot of bugs and had a safest code
|
||||
as it used 'strict' in all its modules.
|
||||
|
||||
With this new modular structure, Monitorix can now be packaged either into a
|
||||
single one package requiring all its dependences to be satisfied during the
|
||||
|
|
|
@ -261,6 +261,7 @@ sub bind_update {
|
|||
|
||||
$value = $data->{bind}->{statistics}->{server}->{requests}->{opcode}->{counter};
|
||||
$str = $n . "totalinq";
|
||||
$value = $value || 0;
|
||||
$totalinq = $value - ($config->{bind_hist}->{$str} || 0);
|
||||
$totalinq = 0 unless $totalinq != $value;
|
||||
$totalinq /= 60;
|
||||
|
|
|
@ -164,6 +164,10 @@ sub fs_init {
|
|||
|
||||
# get the major and minor of $d
|
||||
my $rdev = (stat($d))[6];
|
||||
if(!$rdev) {
|
||||
logger("$myself: Unable to detect the device name of '$d'. I/O stats for this filesystem won't be shown in graph.");
|
||||
next;
|
||||
}
|
||||
my $minor = $rdev % 256;
|
||||
my $major = int($rdev / 256);
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ sub hptemp_update {
|
|||
close(IN);
|
||||
my $str;
|
||||
for($l = 0; $l < scalar(@data); $l++) {
|
||||
foreach my $t (split(',', $hptemp->{graph_0})) {
|
||||
foreach my $t (split(',', ($hptemp->{graph_0} || ""))) {
|
||||
$str = sprintf("%2d", trim($t));
|
||||
if($data[$l] =~ m/^$str /) {
|
||||
my $temp = trim(substr($data[$l], 47, 3));
|
||||
|
@ -135,7 +135,7 @@ sub hptemp_update {
|
|||
push(@hptemp1, map {$_ eq "---" ? 0 : $_} ($temp));
|
||||
}
|
||||
}
|
||||
foreach my $t (split(',', $hptemp->{graph_1})) {
|
||||
foreach my $t (split(',', ($hptemp->{graph_1} || ""))) {
|
||||
$str = sprintf("%2d", trim($t));
|
||||
if($data[$l] =~ m/^$str /) {
|
||||
my $temp = trim(substr($data[$l], 47, 3));
|
||||
|
@ -143,7 +143,7 @@ sub hptemp_update {
|
|||
push(@hptemp2, map {$_ eq "---" ? 0 : $_} ($temp));
|
||||
}
|
||||
}
|
||||
foreach my $t (split(',', $hptemp->{graph_2})) {
|
||||
foreach my $t (split(',', ($hptemp->{graph_2} || ""))) {
|
||||
$str = sprintf("%2d", trim($t));
|
||||
if($data[$l] =~ m/^$str /) {
|
||||
my $temp = trim(substr($data[$l], 47, 3));
|
||||
|
@ -319,7 +319,7 @@ sub hptemp_cgi {
|
|||
print(" <td bgcolor='$colors->{title_bg_color}'>\n");
|
||||
}
|
||||
|
||||
if(scalar(my @hptemp0 = split(',', $hptemp->{graph_0}))) {
|
||||
if(scalar(my @hptemp0 = split(',', ($hptemp->{graph_0} || "")))) {
|
||||
undef(@tmp);
|
||||
undef(@tmpz);
|
||||
for($n = 0; $n < 8; $n++) {
|
||||
|
@ -413,7 +413,7 @@ sub hptemp_cgi {
|
|||
print(" </td>\n");
|
||||
print(" <td valign='top' bgcolor='" . $colors->{title_bg_color} . "'>\n");
|
||||
}
|
||||
if(scalar(my @hptemp1 = split(',', $hptemp->{graph_1}))) {
|
||||
if(scalar(my @hptemp1 = split(',', ($hptemp->{graph_1} || "")))) {
|
||||
undef(@tmp);
|
||||
undef(@tmpz);
|
||||
for($n = 0; $n < 6; $n++) {
|
||||
|
@ -502,7 +502,7 @@ sub hptemp_cgi {
|
|||
}
|
||||
}
|
||||
|
||||
if(scalar(my @hptemp2 = split(',', $hptemp->{graph_2}))) {
|
||||
if(scalar(my @hptemp2 = split(',', ($hptemp->{graph_2} || "")))) {
|
||||
undef(@tmp);
|
||||
undef(@tmpz);
|
||||
for($n = 0; $n < 6; $n++) {
|
||||
|
|
Loading…
Reference in New Issue