Peter Kuennemann wrote:

dan wrote:
put this basic script in your cron to run once daily

    df -h|grep /thedirectory|awk '{print $5" used on the "$6"
    mountpoint, "$4" available"}'|mail youusernamei get this output
    mailed to me

Hey, that's great :-) ... it's going into crontab right away!

Don't you have something like logwatch on your system? RedHat/Fedora/ CentOS has logwatch by default and I believe Debian has a similar package (forgot the name). logwatch tells you about diskspace, amongst other problems or unusual things it finds on your system.

I recommend going even further and implementing a proper monitoring solution (munin is pretty nice and very easy to setup, though Nagios/ ZABBIX/ZenOSS is even more flexible).

    38% used on the /shared mountpoint, 174G available


its simple but effective.  this is an old version, i have since moved
to a more complex script to only mail me over 80%

i will put this on the wiki
http://backuppc.wiki.sourceforge.net
You guy's are really responsive, thanks a lot.
Btw. I like the idea of a backuppc wiki very much !

I don't really know if I like the idea of these general sysadmin issues on the BackupPC-specific wiki. Maybe, if there was a page/ section clearly marked as such, but I surely hope people are not going to add everything they know/learn about system administration on the BackupPC wiki. Let's try and keep it on topic. Of course it is important to know when your BackupPC array runs out of space, but this is true for every partition/system, so it doesn't have a lot to do with BackupPC in my opinion.

Nils Breunese.


Attachment: PGP.sig
Description: Dit deel van het bericht is digitaal ondertekend

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to