LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lan Samba Server. Want it to notify me when disk is running low via email? (https://www.linuxquestions.org/questions/linux-software-2/lan-samba-server-want-it-to-notify-me-when-disk-is-running-low-via-email-927653/)

Moggertron 02-04-2012 07:58 PM

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.

acid_kewpie 02-05-2012 05:08 AM

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.

Moggertron 02-05-2012 06:43 AM

Thanks Chris. I'll work on that and see what I come up with.


All times are GMT -5. The time now is 11:52 PM.