Skip to content

Commit

Permalink
Add some data to Linux inventory that would help IT teams (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 authored Jul 23, 2023
1 parent a630912 commit ee0f82f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion core/mondoo-linux-inventory.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,24 @@ packs:
mql: |
if ( package('openssh-server').installed || package('openssh').installed ) {
sshd.config.params
}
}
- uid: mondoo-linux-system-manufacturer
title: Retrieve the system manufacturer
mql: |
machine.baseboard.manufacturer
- uid: mondoo-linux-system-product-name
title: Retrieve the system product name
mql: |
machine.baseboard.product
- uid: mondoo-linux-cpu-type
title: Retrieve the type of CPU
mql: |
command('cat /proc/cpuinfo | grep "model name" | sort -u | cut -d : -f 2-').stdout.trim
- uid: mondoo-linux-root-volume
title: Retrieve the size and filesystem type of the root volume
mql: |
command("df -TH / | grep '/dev' | awk '{ print $3 "+'" "'+" $2 }'").stdout.trim
- uid: mondoo-linux-physical-memory
title: Retrieve the amount of physical memory
mql: |
command("free --mega | grep Mem | awk '{ print $2}'").stdout.trim + "M"

0 comments on commit ee0f82f

Please sign in to comment.