1
0
Dominique Leuenberger 2024-08-16 10:23:41 +00:00 committed by Git OBS Bridge
commit d1c3053021
3 changed files with 17 additions and 6 deletions

View File

@ -210,6 +210,12 @@ if ($crit_util && $util >= $crit_util) {
$status = 2;
}
if ($util == 100 && $kbread == 0 && $kbwritten == 0) {
$msg = "CRITICAL";
$reasons{'stuck'} = 2;
$status = 2;
}
$msg .= " (".join(",",keys(%reasons)).")" if $status != 0;
my $p_tps = $tps;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 24 12:24:59 CEST 2024 - ro@suse.de
- check_iostat: report as critical and as "stuck" if read and
write are at 0 and util is at 100 percent
-------------------------------------------------------------------
Fri Feb 23 08:37:18 UTC 2024 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package monitoring-plugins-sar-perf
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -53,7 +53,6 @@ check_sar_perf disk sda
sar OK| DEV=sda tps=0.00 rd_sec/s=0.00 wr_sec/s=0.00 avgrq-sz=0.00
avgqu-sz=0.00 await=0.00 svctm=0.00 util=0.00
%prep
%autosetup -p0 -n nickanderson-check-sar-perf-4878d0c