Accept lynis-report.dat files (upload), transform it into json and put it into a mariadb to visualize the result with grafana.
![lynis_grafana]lynis_grafana.png
When using lynis-cron, you can post the result to your lynis-bridge with curl (yes, the user-agent must be set to lynis-bridge
, otherwise the lynis-bridge will response http code 403).
curl -A "lynis-bridge" -F [email protected] http://<lynis-bridge>:8080/upload
curl -A "lynis-bridge" -F [email protected] http://172.16.1.180:30007/upload
Currently only Mariadb >= 10.3 is supported.
The table reports
is using WITH SYSTEM VERSIONING
. So you got a report history about you hosts.
You just need to query them ;)
lynis-report-converter.pl
is taken from https://github.com/d4t4king/lynis-report-converter
lynis-bridge
is taken from https://github.com/markuman/lynis-bridge