Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Performance and logs alerts

Performance and logs alerts 11 years 8 months ago #7704

  • aminos
  • aminos's Avatar
  • Offline
  • Distinguished Member
  • Posts: 107
  • Karma: 0
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
The administrator has disabled public write access.

Re: Performance and logs alerts 11 years 8 months ago #7705

  • cyberoidx
  • cyberoidx's Avatar
  • Offline
  • Frequent Member
  • Posts: 49
  • Karma: 0
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?
The administrator has disabled public write access.

Re: Performance and logs alerts 11 years 8 months ago #7712

  • sahirh
  • sahirh's Avatar
  • Offline
  • Honored Member
  • Posts: 1700
  • Karma: 0
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
The administrator has disabled public write access.

Thanks 11 years 8 months ago #7720

  • aminos
  • aminos's Avatar
  • Offline
  • Distinguished Member
  • Posts: 107
  • Karma: 0
Hi guys,

i'm using W2k not linux, anywaysthanks for ur responses :lol:
The administrator has disabled public write access.

Script 11 years 8 months ago #7722

  • TheBishop
  • TheBishop's Avatar
  • Offline
  • Moderator
  • Posts: 1719
  • Thank you received: 8
  • Karma: 5
We can do windows too - let us have a look at your script
The administrator has disabled public write access.

Well 11 years 8 months ago #7725

  • aminos
  • aminos's Avatar
  • Offline
  • Distinguished Member
  • Posts: 107
  • Karma: 0
Well
my script is quit simple it sends a email whenever someone log to my FTp :
Set objEmail = CreateObject("CDO.Message")

objEmail.From = "This email address is being protected from spambots. You need JavaScript enabled to view it."
objEmail.To = "This email address is being protected from spambots. You need JavaScript enabled to view it."
objEmail.Subject = " ftp Server"
objEmail.Textbody = "Someone is here "
objEmail.Send

so what do think it a vbscript
The administrator has disabled public write access.
Time to create page: 0.083 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup