• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Monitoring Tool

Hello,

I want to monitor my servers for some basic ports like http, ssh, mysql and so on. All I want is a good reliable script which can check these ports every few minutes and store the output in a log file.

Plus, I also want the script to send me a SMS/email if any of these services goes down.

Any recommendations?


Thanks in advance!
0
manojoswal
Asked:
manojoswal
2 Solutions
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
If you want to take the time to set them up, you can try apps such as Nagios and BigBrother and BigSister.

Big Borther Network Monitor:
http://www.bb4.com

Bg Sister Network Monitor
http://bigsister.graeff.com

Nagios
http://www.nagios.org
0
 
manojoswalAuthor Commented:
Anything else besides that? I really need a script instead of an full app.
0
 
it_stopsCommented:
Use the firewall with pass/log statements for the desired ports with output to syslog.
0
 
idmiskCommented:
0
 
decoleurCommented:
manojoswal-

I really like nagios for this but if that is overkill you could set up a script that uses nmap to evaluate if nmap responds that a port is open

for example if you want to see if ssh was open you would

if nmap -p 22 $name | grep -q open;
  else
    echo "$name was unsuccessful on `date`" >>/var/log/monitoring
  fi

HTH

-Timur
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now