Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore
README.md
Vagrantfile

README.md

Mondoo agent demo with Vagrant

Preparation:

  1. Login to https://mondoo.app/
  2. Create or select a Mondoo space and select Agents on the sidebar
  3. Create a new registration token and set it as an environment variable

Start VM

# set registration token
export MONDOO_REGISTRATION_TOKEN='ey..k6C1TYwOk0J'
# on mac you can use pbpaste to read the token from clipboard
export MONDOO_REGISTRATION_TOKEN=$(pbpaste)

# ensure its set
echo $MONDOO_REGISTRATION_TOKEN

# spin up centos
vagrant up centos

# spin up Debian
vagrant up debian

# spin up Ubuntu
vagrant up ubuntu

Verify setup

vagrant ssh {machine}
$ sudo -i

List Mondoo service status

$ systemctl status mondoo
● mondoo.service - mondoo scan
   Loaded: loaded (/etc/systemd/system/mondoo.service; static; vendor preset: disabled)
   Active: inactive (dead)

Jun 14 12:35:17 localhost.localdomain mondoo[3668]: Start vulnerability scan:
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [59B blob data]
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [43B blob data]
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [32B blob data]
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [33B blob data]
Jun 14 12:35:19 localhost.localdomain mondoo[3668]: [63B blob data]
Jun 14 12:35:19 localhost.localdomain mondoo[3668]: [27B blob data]
Jun 14 12:35:19 localhost.localdomain mondoo[3668]: →  enabled collector
Jun 14 12:35:24 localhost.localdomain mondoo[3668]: ✔  sent packages successfully
Jun 14 12:35:24 localhost.localdomain systemd[1]: Started mondoo scan.

To see the full log, run:

$ journalctl -u mondoo.service
-- Logs begin at Fri 2019-06-14 12:24:28 UTC, end at Fri 2019-06-14 12:35:24 UTC. --
Jun 14 12:35:17 localhost.localdomain systemd[1]: Starting mondoo scan...
Jun 14 12:35:17 localhost.localdomain mondoo[3668]: Start vulnerability scan:
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [59B blob data]
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [43B blob data]
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [32B blob data]
Jun 14 12:35:18 localhost.localdomain mondoo[3668]: [33B blob data]
Jun 14 12:35:19 localhost.localdomain mondoo[3668]: [63B blob data]
Jun 14 12:35:19 localhost.localdomain mondoo[3668]: [27B blob data]
Jun 14 12:35:19 localhost.localdomain mondoo[3668]: <E2><86><92>  enabled collector
Jun 14 12:35:24 localhost.localdomain mondoo[3668]: <E2><9C><94>  sent packages successfully
You can’t perform that action at this time.