LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2012, 07:58 PM   #1
Moggertron
LQ Newbie
 
Registered: Feb 2011
Location: Western Australia
Distribution: Precise Pangolin 12.04 LTS
Posts: 6

Rep: Reputation: 0
Lan Samba Server. Want it to notify me when disk is running low via email?


Hi

I have stumbled my way through setting up a basic Samba file server with Ubuntu Server 11.04. I would like it to notify me when disk space is getting tight. I have found scripts online that I can adapt to suit my needs. The issue I have is how to notify myself when space is an issue.

I already log on to it via ssh and can run commands to manually check what's going on but I would like to automate the process. The examples of scripts I have read include emailing the alert to the email admin person.

I tried sending myself an email via "mail" at the command line and it just returned a send fail type message.

Any ideas or tips on how I can email myself or notify myself?

Oh and it's only across my home lan. I don't need/want to find out remotely.

Last edited by Moggertron; 02-04-2012 at 08:06 PM.
 
Old 02-05-2012, 05:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
set up a smarthost in postfix (presuming you are still using postfix on ubuntu) http://embraceubuntu.com/2005/09/07/...st-in-postfix/ which would usually be a relay provided by your ISP, ask them about it, or search around. Then once postfix is restarted, the mail command should work, allowing you to send email to your own personal email account. From that point on, it sounds as if the monitoring scripts you have found will already be sufficient.
 
Old 02-05-2012, 06:43 AM   #3
Moggertron
LQ Newbie
 
Registered: Feb 2011
Location: Western Australia
Distribution: Precise Pangolin 12.04 LTS
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Chris. I'll work on that and see what I come up with.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Email server running Postfix will not accept email... trekgirl Linux - Server 12 03-04-2009 01:43 AM
Debian: Low LAN speed and slightly confused server jo4 Debian 4 04-17-2008 12:00 PM
Setting up simple file/print server to notify me of log activity across the LAN adamsjw2 Linux - Networking 1 04-10-2006 03:59 PM
Using SUSE 10 as a low volume web/email/file server VinnySem SUSE / openSUSE 2 12-09-2005 09:52 AM
low disk space email warnings pyroman59 Linux - Software 3 10-19-2005 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration