mirror of
https://github.com/ranl/monitor-utils.git
synced 2024-11-22 07:23:42 +01:00
commit
d5c6aed09a
@ -205,10 +205,10 @@ if($check_type =~ /^temp/) {
|
|||||||
}
|
}
|
||||||
if($temp <= $warn) {
|
if($temp <= $warn) {
|
||||||
$stat = 0;
|
$stat = 0;
|
||||||
$msg = "Temperature: OK - Tempeture is $temp Celsius";
|
$msg = "Temperature: OK - Temperature is $temp Celsius";
|
||||||
} elsif($temp > $warn and $temp < $crit) {
|
} elsif($temp > $warn and $temp < $crit) {
|
||||||
$stat = 1;
|
$stat = 1;
|
||||||
$msg = "Temperature: Warn - Tempeture is $temp Celsius";
|
$msg = "Temperature: Warn - Temperature is $temp Celsius";
|
||||||
} elsif($temp >= $crit) {
|
} elsif($temp >= $crit) {
|
||||||
$stat = 2;
|
$stat = 2;
|
||||||
$msg = "Temperature: CRIT - Tempeture is $temp Celsius";
|
$msg = "Temperature: CRIT - Tempeture is $temp Celsius";
|
||||||
|
Loading…
Reference in New Issue
Block a user