monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking filesystem free space


From: Lutz Mader
Subject: Re: checking filesystem free space
Date: Tue, 02 Oct 2018 13:56:17 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Hello Maurizio Marini,

> Hello
> I would check against free space, not against used one.
> EG, consider this scenario;
> df -h | grep opt
> /dev/mapper/centos-opt   313G  290G  7.9G  98% /opt
> 
> for this server monit  is reporting 92% used, but I have only 2% free.
> I would receive an alarm when free space is under a certain  treshold.
> Under 5% it should send alarm., for example.
> How can I get it?
> Best regards

For some hints and tips, see
https://mmonit.com/monit/documentation/monit.html#SPACE-USAGE-TEST

Something like this works well
  if space free < 5% for 5 times within 15 cycles then alert
or
  if space usage > 80% for 5 times within 15 cycles then alert

With regards,
Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]