User Log's in and log's off script

Hi,

We are needing a script which will run everytime a user log’s in and out of their computers/laptops. A client has a number of remote users and feels some are not working when they should be. Is it possible to create a script which will send an email to a clients email when processed or log it against the machine as a ticket or something?

@monster-it ,

We have forwarded your request to our Scripts Team for analysis. We will provide you an output as soon as it is completed.

Hello @monster-it

Kindly, please refer the script link for your request :

https://scripts.comodo.com/frontend/web/topic/alert-if-user-logon-or-logoff-and-send-an-email

Let us know your feedback.

Thank you.

Ok, not working. I’ve added to our servers but it’s not sending emails.

If you can give me how to add correctly in the procedures that would be good.

Could you please share me the screenshot of the output image? For your reference, Please see the attached output image. Have you modified the email id correctly?

Here is the guide reference which describes how to use custom script monitoring. Kindly, please take a look on it :

https://wiki.comodo.com/frontend/web/topic/how-to-use-custom-script-procedure-monitoring

Output image :

Script works well for me. However, could we have an alternate version which sends a plain text email with the log on/off EP name and account name as the subject and the full output in the body of the email rather than as a text file attachment? Also, could it exclude log on/off of computer accounts (ending in $) so we just receive actual user account activity?

@amcssit ,

We forwarded your request to our Scripts Team. We provide an update as soon as possible.

Thanks Jimmy. I end up with a whole slew of emails which relate to machine account log-ins and not user log-ins, so filtering out machine accounts is now a priority otherwise there is too much noise. In the examples below one can see that alerts have been triggered overnight when there has been no user activity at all:

Alert #1:
Account Name : MachineAccount$
Log_On Date : 2018-07-14
Log_On Time : 04:53:40.355

Account Name : UserAccount
Log_Off Date : 2018-07-13
Log_Off Time : 22:32:37.574

Alert #2:
Account Name : MachineAccount$
Log_On Date : 2018-07-14
Log_On Time : 03:49:25.112

Account Name : UserAccount
Log_Off Date : 2018-07-13
Log_Off Time : 22:32:37.574

Hi @amcssit ,

Thank you for reporting this case. We’ve informed our Developers about this and we’ll get back to you as soon as possible.

Hello @amcssit

We have modified the script according to your request.

Please refer to the below link:

https://scripts.comodo.com/frontend/web/topic/alert-if-user-logon-or-logoff-and-send-an-email

Thank you