diff --git a/core/mondoo-linux-inventory.mql.yaml b/core/mondoo-linux-inventory.mql.yaml index dc3366e..8ee7ebd 100644 --- a/core/mondoo-linux-inventory.mql.yaml +++ b/core/mondoo-linux-inventory.mql.yaml @@ -101,4 +101,24 @@ packs: mql: | if ( package('openssh-server').installed || package('openssh').installed ) { sshd.config.params - } \ No newline at end of file + } + - 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" \ No newline at end of file