change perfdata hardware ibmc huawei
This commit is contained in:
parent
a3636fdd3e
commit
590388ad26
|
@ -291,10 +291,13 @@ sub display {
|
||||||
$self->{components}->{$comp}->{total},
|
$self->{components}->{$comp}->{total},
|
||||||
$comp));
|
$comp));
|
||||||
}
|
}
|
||||||
$self->{output}->perfdata_add(label => 'count_' . $comp,
|
$self->{output}->perfdata_add(
|
||||||
|
label => 'count_' . $comp,
|
||||||
|
nlabel => 'hardware.' . $comp . '.count',
|
||||||
value => $self->{components}->{$comp}->{total},
|
value => $self->{components}->{$comp}->{total},
|
||||||
warning => $warn,
|
warning => $warn,
|
||||||
critical => $crit);
|
critical => $crit
|
||||||
|
);
|
||||||
push @{$exits}, $exit;
|
push @{$exits}, $exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,10 @@ sub check {
|
||||||
}
|
}
|
||||||
my $perf_label = $result->{fanDevicename};
|
my $perf_label = $result->{fanDevicename};
|
||||||
$perf_label =~ s/ /_/g;
|
$perf_label =~ s/ /_/g;
|
||||||
$self->{output}->perfdata_add(label => 'speed_' . $perf_label, unit => 'rpm',
|
$self->{output}->perfdata_add(
|
||||||
|
label => 'speed', unit => 'rpm',
|
||||||
|
nlabel => 'hardware.fan.speed.rpm',
|
||||||
|
instances => $perf_label,
|
||||||
value => $result->{fanSpeed},
|
value => $result->{fanSpeed},
|
||||||
warning => $warn,
|
warning => $warn,
|
||||||
critical => $crit,
|
critical => $crit,
|
||||||
|
|
|
@ -77,7 +77,10 @@ sub check {
|
||||||
}
|
}
|
||||||
my $perf_label = $result->{hardDiskDevicename};
|
my $perf_label = $result->{hardDiskDevicename};
|
||||||
$perf_label =~ s/ /_/g;
|
$perf_label =~ s/ /_/g;
|
||||||
$self->{output}->perfdata_add(label => 'temperature_' . $perf_label, unit => 'C',
|
$self->{output}->perfdata_add(
|
||||||
|
label => 'temperature', unit => 'C',
|
||||||
|
nlabel => 'hardware.harddisk.temperature.celsius',
|
||||||
|
instances => $perf_label,
|
||||||
value => $result->{hardDiskTemperature},
|
value => $result->{hardDiskTemperature},
|
||||||
warning => $warn,
|
warning => $warn,
|
||||||
critical => $crit,
|
critical => $crit,
|
||||||
|
|
|
@ -60,7 +60,10 @@ sub check {
|
||||||
short_msg => sprintf("Temperature of '%s' is '%s' celsius degrees", $result->{temperatureObject}, $result->{temperatureReading} / 10));
|
short_msg => sprintf("Temperature of '%s' is '%s' celsius degrees", $result->{temperatureObject}, $result->{temperatureReading} / 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{output}->perfdata_add(label => 'temperature_' . $result->{temperatureObject}, unit => 'C',
|
$self->{output}->perfdata_add(
|
||||||
|
label => 'temperature', unit => 'C',
|
||||||
|
nlabel => 'hardware.temperature.celsius',
|
||||||
|
instances => $result->{temperatureObject},
|
||||||
value => $result->{temperatureReading} / 10,
|
value => $result->{temperatureReading} / 10,
|
||||||
warning => $warn,
|
warning => $warn,
|
||||||
critical => $crit
|
critical => $crit
|
||||||
|
|
Loading…
Reference in New Issue