Skip to content

Commit

Permalink
console/sysstat.pm: Support for sysstat 12.7.5
Browse files Browse the repository at this point in the history
From sysstat.changes:
 * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s.
 * sar: Remove %vmeff metric.
  • Loading branch information
Vogtinator committed Jul 15, 2024
1 parent 7d7ff65 commit 41311fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/console/sysstat.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ sub run {
} else {
validate_script_output "sar -b", sub { /tps rtps wtps bread\/s bwrtn\/s/ };
}
validate_script_output "sar -B", sub { /pgpgin\/s pgpgout\/s fault\/s majflt\/s pgfree\/s pgscank\/s pgscand\/s pgsteal\/s %vmeff/ };
if (version->parse(script_output('rpm --qf "%{VERSION}\n" -q sysstat')) >= version->parse('12.7.5')) {
validate_script_output "sar -B", sub { /pgpgin\/s pgpgout\/s fault\/s majflt\/s pgfree\/s pgscank\/s pgscand\/s pgsteal\/s pgprom\/s pgdem\/s/ };
} else {
validate_script_output "sar -B", sub { /pgpgin\/s pgpgout\/s fault\/s majflt\/s pgfree\/s pgscank\/s pgscand\/s pgsteal\/s %vmeff/ };
}
validate_script_output "sar -H", sub { /kbhugfree kbhugused %hugused/ };
validate_script_output "sar -S", sub { /kbswpfree kbswpused %swpused kbswpcad %swpcad/ };

Expand Down

0 comments on commit 41311fb

Please sign in to comment.