Find the answer to your Linux question:
Results 1 to 3 of 3
Is there any way for a Linux box to send and email when a service like vsftp has fail/stop to the administrator, how can this be done. I am using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! ls354's Avatar
    Join Date
    May 2006
    Location
    Cloud 9
    Posts
    97

    How To


    Is there any way for a Linux box to send and email when a service like vsftp has fail/stop to the administrator, how can this be done. I am using a FC7.

    Thanks for your time

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    There is software that is written for this, but you can do it in a primitive fashion with a while loop like that relies on pgrep or service command, and sleeps. Once the while loop is broken, send a mail out, maybe try to restart the service. Really basic scripting.

    Probably better to get something that is a little more sophisticated, probably hundreds of tools designed for this. Check freshmeat.net.

  3. #3
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    mon is a good tool
    Main Page - Mon Wiki

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •