Skip to main content

Performance and logs alerts

More
19 years 8 months ago #7704 by aminos
hi

i want to know if someone accessed my ftp, so i write a script that sends an email and i configured an alert that execute the script if the counter FTP service\current connections is over 0 with sample
data every 5 decondes, it works but the problem is that i get the email every 5 secondes and me i want just to get it once :cry:
so the increase theinterval to 5 minutes but i had another problem
i got the message 5 minutes after someone logs in !!!
so can someone help me to fix that issue
thanks for your help
More
19 years 8 months ago #7705 by cyberoidx
Care to post the script here......?

Its mostly a crontab i guess.... or is it something else?

Surya Sharma
www.Technodrome.info
AR3 Y0U T3CH ENOUGH FOR IT?
More
19 years 8 months ago #7712 by sahirh
Write a wrapper for the FTP server.. or perhaps TCP wrappers can do this directly I'm not too sure..

Why not just tail -f it or something similar.

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 8 months ago #7720 by aminos
Replied by aminos on topic Thanks
Hi guys,

i'm using W2k not linux, anywaysthanks for ur responses :lol:
More
19 years 8 months ago #7722 by TheBishop
Replied by TheBishop on topic Script
We can do windows too - let us have a look at your script
More
19 years 8 months ago #7725 by aminos
Replied by aminos on topic Well
Well
my script is quit simple it sends a email whenever someone log to my FTp :
Set objEmail = CreateObject("CDO.Message")

objEmail.From = "xxxxx@xxxx.xx"
objEmail.To = "yyyyy@yyy.yy"
objEmail.Subject = " ftp Server"
objEmail.Textbody = "Someone is here "
objEmail.Send

so what do think it a vbscript
Time to create page: 0.135 seconds