1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel Access Alert/Notification

Discussion in 'General Discussion' started by Vinayak, Aug 4, 2009.

  1. Vinayak

    Vinayak Member

    Joined:
    Jun 27, 2003
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bharat
    Hello All,

    I was wondering if there's a solution to get email notification when some one login to their cPanel account.

    Say an account owner want to receive alert when someone (developer, IT guy etc.) access successfully his/her cPanel account at 2082 0r 2083 port.

    Like CSF sends a notification for WHM root access, something similar.

    One method I am thinking of, is to write a script that will run as a daemon and watch /home/user/.lastlogin

    Second is to parse /usr/local/cpanel/logs/access_log or /usr/local/cpanel/logs/login_log but access_log generates lot of lines when a login occurs and login_log does not seems to have cpanel login entry.

    So what better suggestions/solution you guys/gals can provide?
     
  2. thewebhosting

    thewebhosting Active Member

    Joined:
    May 9, 2008
    Messages:
    1,202
    Likes Received:
    1
    Trophy Points:
    38
    I think you will have to write shell script. There is no direct way. cPanel access_logs and login_log gives exact idea who logs in cPanel.
     

Share This Page