Skip to content

Commit

Permalink
Merge pull request #297 from mnrkbys/json_results
Browse files Browse the repository at this point in the history
artif: get findmnt and lsblk results in JSON format
  • Loading branch information
tclahr authored Dec 17, 2024
2 parents d547df3 + 2eae9a3 commit b800b4e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
- live_response/packages/conary.yaml: Added collection of the list of installed packages managed by the Conary package manager [linux] (by [Pierre-Gronau-ndaal](https://github.com/Pierre-Gronau-ndaal)).
- live_response/packages/dpkg.yaml: Updated to verify all packages to compare information about the installed files in the package with information about the files taken from the package metadata stored in the dpkg database [linux] ([mnrkbys](https://github.com/mnrkbys)).
- live_response/packages/package_owns_file.yaml: Added collection of which installed package owns a specific file or command. Note that this artifact is resource-intensive and time-consuming to execute, so it is disabled by default in all profiles [linux] ([mnrkbys](https://github.com/mnrkbys)).
- live_response/storage/findmnt.yaml: Added JSON output format for listing all mounted file systems [linux] ([mnrkbys](https://github.com/mnrkbys)).
- live_response/storage/lsblk.yaml: Added JSON output format for listing block devices [linux] ([mnrkbys](https://github.com/mnrkbys)).
- live_response/system/coredump.yaml: Added collection of core dump files information [linux] ([mnrkbys](https://github.com/mnrkbys)).
- live_response/system/getcap.yaml: Added functionality to collect the list of files with associated process capabilities [linux] ([mnrkbys](https://github.com/mnrkbys)).
- live_response/system/ulimit.yaml: Added collection of all resource limits information [all] ([mnrkbys](https://github.com/mnrkbys)).
Expand Down
9 changes: 7 additions & 2 deletions artifacts/live_response/storage/findmnt.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0
version: 2.1
condition: command_exists "findmnt"
output_directory: /live_response/storage
artifacts:
Expand All @@ -8,4 +8,9 @@ artifacts:
collector: command
command: findmnt --ascii
output_file: findmnt.txt

-
description: Displays all mounted file systems in the tree-like format as JSON.
supported_os: [linux]
collector: command
command: findmnt -J
output_file: findmnt_-J.txt
21 changes: 19 additions & 2 deletions artifacts/live_response/storage/lsblk.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 3.0
version: 3.1
condition: command_exists "lsblk"
output_directory: /live_response/storage
artifacts:
Expand All @@ -8,16 +8,33 @@ artifacts:
collector: command
command: lsblk
output_file: lsblk.txt
-
description: List block devices as JSON.
supported_os: [linux]
collector: command
command: lsblk -J
output_file: lsblk_-J.txt
-
description: List block devices.
supported_os: [linux]
collector: command
command: lsblk -l
output_file: lsblk_-l.txt
-
description: List block devices as JSON.
supported_os: [linux]
collector: command
command: lsblk -l -J
output_file: lsblk_-l_-J.txt
-
description: List block devices including information about filesystems.
supported_os: [linux]
collector: command
command: lsblk -f
output_file: lsblk_-f.txt

-
description: List block devices including information about filesystems as JSON.
supported_os: [linux]
collector: command
command: lsblk -f -J
output_file: lsblk_-f_-J.txt

0 comments on commit b800b4e

Please sign in to comment.