I have a ubuntu server where a number of users login, i need to monitor who logs in. I am thinking of a pythonic way or anything better because i need to send the notification to slack.
So what i meant is , a python script sends notification to slack only when a user successfully logs in. I can write the slack integration but i am not sure how the script will be triggered on login?