Notify GWWebUsers over SMS when Log in to GWWEBACCESS

0 Likes
over 14 years ago

How this works:


Perl script from the NW-server console checks every 60 sec LAST LOG-file in the folder:

\\server\sys\Novell\WebAccess\logs

If Script found records about: "login" - script check in the sys:\etc\ngwwebus\notifyusers - notify or no logged user .

If need notify - send e_mail to SMS-provider for user telephone number.



This works on the NetWare 6.5 With GroupWise 7 (gwweb) with Apache tomcat.

This will be not work on SLES (gwwweb apache tomcat on sles) because - GW FLUSH logs on the LINUX to the hardware every 15 min..:(

My script - check logs on the hardware.



How to configure:



  1. create folder:

    sys:\etc\ngwwebus


  • unpak checkgwweb.zip to the

    sys:\perl\scripts\checkgwweb.pl

    sys:\etc\ngwwebus\lastfile

    sys:\etc\ngwwebus\lastnotif

    sys:\etc\ngwwebus\notifyusers


  • You need to get this information:

    3.1 IP-address your foriegn SMTP server (over this server will be send SMS-notify),

    example: 192.168.200.10

    3.2 Name your mail domain. Example, for Novell this: @novell.com

    3.3 User name from which will be send notify, example: gwnotifyu


  • Open for edit file: sys:\perl\scripts\checkgwweb.pl

    4.1 search string with: 192.168.248.11 and replace to the 192.168.200.10

    4.2 seacrh all strings with rovsepian\@novell.com and replace this record to the gwnotifyu\@novell.com

    4.3 end edit this file.


  • Open for edit file: sys:\etc\ngwwebus\notifyusers in this file lise users and e_mail for send SMS to the users.

    Example, if for send SMS to the 8-050-347-11-84 (this cellural phone by user: rbradbary) need send e_mail to the: 380503471184@sms.umc.ua

    5.1 add this string :

    rbradnary;380503471184@sms.umc.ua

    5.2 end edit this file.


  • Open for edit file:

    sys:\etc\ngwwebus\lastfile

    6.1 Find in folder: \\server\sys\Novell\WebAccess\logs the NEWEST file.

    Example: \\server\sys\Novell\WebAccess\logs\0702was.001

    6.2 File sys:\etc\ngwwebus\lastfile mast have this one string:

    0702was.001


  • Run from the server console this script:

    perl sys:\perl\scripts\checkgwweb.pl



How to STOP script:


Need to create file: sys:\gwstop.txt. (don`t forget after stop-script delete this file ).



What result?


User rbradbary log in to the GWWebAccess from the interbnet. After this rbradnary receive SMS with information, example:

gwnotifyu@novell.com

2007-07-02

14:00:06

123.45.56.78



where:


gwnotifyu@novell.com - from this e_mail was send

2007-07-02 - (07 - Jul, 02 - day of the month)

14:00:06 - HH:mm:ss

123.45.56.78 - from this IP-address was login.





Tags:

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended