On Sun, Jun 24, 2012 at 12:49 PM, Chris Knadle <chris.kna...@coredump.us> wrote:
> On Saturday, June 23, 2012 23:49:54, lina wrote:
>> Kinda of funny,
>>
>> Dselect reported me that my /var has saturated.  Indeed, 100%.
>>
>> My question is that how to set to let me know earlier when the var reached
>> 98%.  Kinda of dangerous huh?
>
> This is a common problem.  If this is a box you're running KDE on I'd suggest
> the freespacenotifier package.  If this is a server (or doesn't run KDE) then

It runs with xfce4.

> I'd suggest configuring the box such that you'll get email output from cron,
> and then make a cronjob that outputs text only when the free space left on
> filesystems reaches the desired "warning" threshold.

I started to initiate a script,

$ while [ df -h | grep "/dev/sda11 " | awk '{print $5}' > 90% ]; do
sleep 1000 ; done mail l...@email.com
bash: [: missing `]'
bash: 90%: No such file or directory

not work.

Can someone recommend some build-in script which integrate the cron,
so I can take it as template and learn from it. I don't know which one
is the best fit, which also autorun everytime after reboot.

>
> I'm about to set up the same thing because there's a box I help administer
> that also regularly runs into this problem.  :-/
>
>
>  -- Chris

Thanks for all,
>
> --
> Chris Knadle
> chris.kna...@coredump.us
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/201206240049.36230.chris.kna...@coredump.us
>


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAG9cJmnNzOQBAP_oJ6m0BJQ5Aztkt6ez+RvpdFNX=1t5fgr...@mail.gmail.com

Reply via email to