Hot Downloads

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me

TOPIC: Performance and logs alerts

Performance and logs alerts 13 years 4 months ago #7704

  • aminos
  • aminos's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 107
  • Thank you received: 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

Re: Performance and logs alerts 13 years 4 months ago #7705

Care to post the script here......?

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

Re: Performance and logs alerts 13 years 4 months ago #7712

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.

Thanks 13 years 4 months ago #7720

  • aminos
  • aminos's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 107
  • Thank you received: 0
Hi guys,

i'm using W2k not linux, anywaysthanks for ur responses :lol:

Script 13 years 4 months ago #7722

We can do windows too - let us have a look at your script

Well 13 years 4 months ago #7725

  • aminos
  • aminos's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 107
  • Thank you received: 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
Time to create page: 0.163 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