Skip to content

Commit

Permalink
add check core_file is exist by kernel.core_pattern (#672)
Browse files Browse the repository at this point in the history
* fix: major_hold_scene dmesg get

 add: version check task

* rca disconnection support env  'from' 'to'

* rca disconnection support env  'from' 'to'

* rca disconnection support env  'from' 'to'

* add check core_file is exist by kernel.core_pattern
  • Loading branch information
wayyoungboy authored Jan 9, 2025
1 parent 97e0096 commit 9e0e5d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/check/tasks/observer/system/core_pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ task:
set_value: core_path
verify: '[ -d "$core_path" ]'
err_msg: 'core_path: #{core_path} is not exist. Please create it.'
- type: ssh
ssh: 'ls #{core_path}| grep "^core" | wc -l'
result:
set_value: core_file_number
verify_type: equal
verify: 0
err_msg: 'The core file exists.'
- type: ssh
ssh: "df \"#{core_path}\" | awk 'NR==2 {print $4}'"
result:
Expand Down

0 comments on commit 9e0e5d4

Please sign in to comment.