Monitoring Tool

Posted on 2005-05-06
Last Modified: 2010-03-18

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!
Question by:manojoswal
    LVL 95

    Accepted Solution

    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:

    Bg Sister Network Monitor


    Author Comment

    Anything else besides that? I really need a script instead of an full app.
    LVL 1

    Expert Comment

    Use the firewall with pass/log statements for the desired ports with output to syslog.
    LVL 10

    Expert Comment

    LVL 18

    Assisted Solution


    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;
        echo "$name was unsuccessful on `date`" >>/var/log/monitoring



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now