Automate Security Advisor Script?

PCZero

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

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,263
313
Houston
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,