[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] +++ LoQ Checker 1.00-dev1 released +++
Hello,
Attached is a development released of the LoQ Checker 1.00. I did NOT
have the time to test it out on my production RaQ3, so any feedback is
welcome ;-) Installation instructions are included in the script.
Please also read the disclaimer!
This script will work on a RaQ3 and, though the RaQ2 IMHO has no FTP
and mail logs, also on a RaQ2. I don't have the possibility to test on
a RaQ4, so I can't give you any advice here.
Please give me as much feedback as you can: bugs, feature requests,
wishes, suggestions, and so on.
I can't send attachments to this list, so I have added the script in
the message. The lines are numbered, so you can copy wrapped lines to
one. Don't forget to remove the numbers before starting the script. :)
Sorry for that, but as I said, I can't attach a file to the message.
=== Script starts here ====================
1. # LoQ Checker - log analysis help for the RaQ3
2. # version 1.00-dev1 19 August 2000 23:02:17
3. # written by Florian Effenberger
<florian.effenberger@xxxxxxxxxxxxx>
4. # thanks a lot to the guys on the UseNet for their generous help
5. #
6. # I GIVE ABSOLUTELY NO WARRANTY FOR THIS PRODUCT! USE AT YOUR OWN
RISK!
7. # NEITHER THIS PRODUCT NOR ME IS AFFILIATED WITH COBALT IN ANY
WAY!
8. #
9. # This program is public domain and may be used freely.
10. #
11. # Installation instructions:
12. #
13. # 1. Place this file in root's home folder, e.g. by using the
command "cp".
14. # 2. Type "date +"%Y-%m-%d %H:%M:%S"> LoQ_Checker.conf" while you
are in
15. # root's home folder.
16. # 3. Type "chmod 700 LoQ_Check*".
17. # 4. Then edit the "From:" and "To:" lines to correspond to your
system.
18. # I prefer using "pico -w LoQ_Check" for that. You also have to
set
19. # the correct recipient of the e-mail messages. Just change the
20. # value "root" after "sendmail" to whatever you want (should be
an
21. # existing user, though).
22. # 5. That's it! ;-) Everytime you want to check the logs, log on
via
23. # telnet as root (SSH may also be working), go to root's home
folder,
24. # and type "LoQ_Check". Then you'll get a message with all new
and/or
25. # changed log files since the last start of LoQ_Check. NOTE: On
most
26. # machines, you cannot log on as directly as root. Refer to
your manual
27. # for instructions. Unless you are not 100% sure what you are
doing,
28. # please DO NOT DO IT! Root access via telnet is a security
hole!
29. echo ""
30. echo "I GIVE ABSOLUTELY NO WARRANTY FOR THIS PRODUCT! USE AT YOUR
OWN RISK!"
31. echo "NEITHER THIS PRODUCT NOR ME IS AFFILIATED WITH COBALT IN ANY
WAY!"
32. echo ""
33. echo "Do you accept these conditions? Press [ENTER] if yes,
[STRG]-[C] if not."
34. read
35. echo "[`date +"%Y-%m-%d %H:%M:%S"`] LoQ_Checker: Program started."
36. echo "[`date +"%Y-%m-%d %H:%M:%S"`] LoQ_Checker: Preparing message
template."
37. ( echo "From: LoQ Checker <root@xxxxxxxxxxxxxxxxxxxxxxxxxxx>"
38. echo "To: LoQ Checker <root@xxxxxxxxxxxxxxxxxxxxxxxxxxx>"
39. echo -n "Subject: " && date +"%Y-%m-%d %H:%M:%S"
40. echo ""
41. echo "This is an automated generated message. Below are the log
files that"
42. echo "have been changed since the last start of LoQ Checker, which
has been"
43. echo "on `cat LoQ_Checker.conf`. It is recommended that you
download these"
44. echo "files, e.g. via your FTP admin account, and analyse them
with a tool"
45. echo "like WebSuxess [www.exody.net]. If you don't see any files
under this"
46. echo "text, there have been no changes since the last start."
47. echo ""
48. for i in web ftp mail ; do
49. find /usr/bin -name $i.log.1.gz -cnewer LoQ_Checker.conf
50. done ) | sendmail root
51. echo "[`date +"%Y-%m-%d %H:%M:%S"`] LoQ_Checker: Searched for
web/ftp/mail.log.1.gz files."
52. echo "[`date +"%Y-%m-%d %H:%M:%S"`] LoQ_Checker: Modifying
LoQ_Checker.conf."
53. date +"%Y-%m-%d %H:%M:%S"> LoQ_Checker.conf
54. echo "[`date +"%Y-%m-%d %H:%M:%S"`] LoQ_Checker: Program
finished."
55. echo ""
=== Script ends here ====================