Skip to content

Commit

Permalink
Merge pull request #253 from wayyoungboy/2.2.0-qulei
Browse files Browse the repository at this point in the history
fix check core_pattern.yaml
  • Loading branch information
wayyoungboy authored Jun 14, 2024
2 parents 3e2d9aa + 60258d0 commit 0142aff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions handler/checker/tasks/observer/system/core_pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ task:
verify: '[[ $core_pattern != *" "* ]]'
err_msg: 'kernel.core_pattern: #{core_pattern} , is not recommended for configuring functions other than the specified core path'
- type: ssh
ssh: 'dirname ${core_pattern}'
ssh: 'dirname "${core_pattern}"'
result:
set_value: core_path
verify: '[ -d "$core_path" ]'
err_msg: 'core_path: #{core_path} is not exist. Please create it.'
#d
- type: ssh
ssh: "df \"$directory\" | awk 'NR==2 {print $4}'"
ssh: "df \"#{core_path}\" | awk 'NR==2 {print $4}'"
result:
set_value: core_path_free_space
verify_type: min
Expand Down

0 comments on commit 0142aff

Please sign in to comment.