Schedule/Automate audits/health checks via Cron?

Started by AspiringNewbie, May 13, 2025, 06:10:58 PM

Previous topic - Next topic
Is there any way to schedule the various available audits and health checks via Cron (preferably through the UI, but open to ssh)? NOT just automate updates and change log... but the various audit types available in the firmware status Audit menu.

It'd be great to be able to schedule these then have reports emailed out or sent to an SIEM (I use Wazuh).

Did a cursory search and didn't immediately see this specific question in existing forum posts...

Currently running 25.1.4_6 on metal.

It's possible to enable cron for these but some script would have to grab the output as it's not otherwise shown.

In that case it makes more sense to write monitor scripts for the preferred solution calling the actual scripts which do output:

# /usr/local/opnsense/scripts/firmware/security.sh
# /usr/local/opnsense/scripts/firmware/health.sh


Cheers,
Franco