diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-03-23 13:18:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 13:18:45 +0300 |
commit | 98fb2725013a6cfd0918a6ca46edf5bf455301af (patch) | |
tree | 64fe14d1e598743a698987650384a9fe76e979bb /plugins | |
parent | 17ac4d2c1cfc1aa8432401cae834779874d3e734 (diff) | |
parent | 6de9c31cf54c9be5fd7524fc5fcdfa42994a45f6 (diff) |
Merge pull request #865 from topimiettinen/journald-fix-disk-usage
Fix journalctl output parsing for recent journalctls
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/plugin_systemd_phase1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugin_systemd_phase1 b/plugins/plugin_systemd_phase1 index 9d424915..0c73f45d 100644 --- a/plugins/plugin_systemd_phase1 +++ b/plugins/plugin_systemd_phase1 @@ -176,7 +176,7 @@ if [ ! "${JOURNALCTLBINARY}" = "" -a ${SYSTEMD_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no PLGN-3816 --preqs-met ${PREQS_MET} --weight L --network NO --description "Query journal for boot related information" --progress if [ ${SKIPTEST} -eq 0 ]; then - FIND=`${JOURNALCTLBINARY} --disk-usage | awk '{ if ($1=="Journals") { print $4 }}'` + FIND=`${JOURNALCTLBINARY} --disk-usage | awk '{ if ($1=="Journals") { print $4 } else if ($1=="Archived") { print $7 }}'` Report "journal_disk_size=${FIND}" LogText "Result: journals are ${FIND} in size" fi |