Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Automate Security Advisor Script?

Discussion in 'Security' started by PCZero, Apr 24, 2018.

  1. PCZero

    PCZero Well-Known Member

    Joined:
    Dec 13, 2003
    Messages:
    609
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    Earth
    Is it possible to run cPanel Security Advisor via cron and have the output emailed to an address of choice?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,552
    Likes Received:
    253
    Trophy Points:
    193
    Location:
    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,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice