Automate Security Advisor Script?

PCZero

Well-Known Member
Dec 13, 2003
647
73
178
Earth
Is it possible to run cPanel Security Advisor via cron and have the output emailed to an address of choice?
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,110
659
263
Houston
cPanel Access Level
DataCenter Provider
Hello,

You can run the following via CLI:

Code:
# /usr/local/cpanel/scripts/check_security_advice_changes --help
This tool monitors the state of the Security Advisor and can send a notification when the state changes.

Usage: /usr/local/cpanel/scripts/check_security_advice_changes [options]

Options:
    --help     Display this help message.
    --notify   Send a notification to the system administrator.
    --quiet    Do not display output, and instead set the UNIX exit code.
Used with the notify flag it will send an email to notify the system administrator for the system of any changes.

Thank you,