Cool Solutions

Notify GWWebUsers over SMS when Log in to GWWEBACCESS



By:

July 2, 2007 10:23 am

Reads:3,878

Comments:0

Score:Unrated

License:
Free

Download checkgwweb

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
  2. unpak checkgwweb.zip to the

    sys:\perl\scripts\checkgwweb.pl

    sys:\etc\ngwwebus\lastfile

    sys:\etc\ngwwebus\lastnotif

    sys:\etc\ngwwebus\notifyusers
  3. 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
  4. 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.
  5. 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.
  6. 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
  7. 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.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...

Tags:
Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS