How this works:
Perl script from the NW-server console checks every 60 sec LAST LOG-file in the folder:
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:
- create folder:
- unpak checkgwweb.zip to the
- You need to get this information:
3.1 IP-address your foriegn SMTP server (over this server will be send SMS-notify),
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: firstname.lastname@example.org
5.1 add this string :
5.2 end edit this file.
- Open for edit file:
6.1 Find in folder: \\server\sys\Novell\WebAccess\logs the NEWEST file.
6.2 File sys:\etc\ngwwebus\lastfile mast have this one string:
- Run from the server console this script:
How to STOP script:
Need to create file: sys:\gwstop.txt. (don`t forget after stop-script delete this file ;) ).
User rbradbary log in to the GWWebAccess from the interbnet. After this rbradnary receive SMS with information, example:
email@example.com - from this e_mail was send
2007-07-02 - (07 - Jul, 02 - day of the month)
14:00:06 - HH:mm:ss
126.96.36.199 - from this IP-address was login.
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
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, test, test before you do anything drastic with it.