[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more user friendly filesystem space messages and checks
From: |
Weedy |
Subject: |
Re: more user friendly filesystem space messages and checks |
Date: |
Wed, 4 Feb 2015 00:15:07 -0500 |
I have 5.10 installed and I still get this.
I would like to receive the remaining free space in GiB or MiB if low enough.
check filesystem home with path /dev/md2
if space usage gt 5035 GB for 5 times within 15 cycles then alert
if space usage gt 5039 GB then alert
Resource limit matched Service home
Date: Tue, 03 Feb 2015 18:46:44
Action: alert
Description: space usage 1321079524 blocks matches resource
limit [space usage>1320941372 blocks]
On Wed, Oct 29, 2014 at 3:27 AM, Martin Pala <address@hidden> wrote:
> Hello,
>
> the space usage messages (and any other "byte" unit based values) were
> modified in Monit 5.9 to automatically scale the unit ... please upgrade your
> Monit.
>
> Regarding the second request ... you can use the percent-based space usage
> check instead of absolute value => it doesn't require looking at disk size.
> For example:
>
> if space usage > 95% then alert
>
>
> Regards,
> Martin
>
>
>> On 29 Oct 2014, at 07:16, Do <address@hidden> wrote:
>>
>> Hello,
>>
>> Now Monit send messages like this
>>
>>> Subject: monit alert -- Resource limit matched root
>>> Resource limit matched Service root
>>>
>>> Date: Wed, 29 Oct 2014 08:55:54
>>> Action: alert
>>> Host: db
>>> Description: space usage 42075215 blocks matches resource limit
>>> [space usage>26214355 blocks]
>>
>>> From this, normal human can not understand at a glance how much resources
>>> is matched: is it 1024 or 4096 blocks filesystem? I didn't set up check in
>>> 'blocks', I set them in GB.
>>
>> So, I propose (feature request) to change message format to add used space
>> size in GB, and free space in GB.
>>
>> I usually add several checks for filesystem space so when space is filling I
>> get several messages. Example, for 45G disk:
>>
>> check filesystem root path /
>> if space usage > 35 GB then alert
>> if space usage > 40 GB then alert
>> if space usage > 43 GB then alert
>> if space usage > 44 GB then alert
>>
>> But when there is 'blocks' I can not understand at glance how much space is
>> filled and free, and how quickly admin need to react on the problem. You
>> know, spae cleaning is not always easy task that can be done instantly,
>> users may need to be notified, etc.
>>
>> Additional request, why is 'space' controlled with 'usage' check and no
>> 'free' check? To set check now, I need to view partition size (to see it's
>> 45G or 450G). (Also, when partition size changed need not forget to change
>> monit rules.)
>>
>> Without this restriction I could set up my style of checks w/o even looking
>> at disk size. Proposed example,
>>
>> check filesystem root path /
>> if space free < 10 GB then alert
>> if space free < 5 GB then alert
>> if space free < 2 GB then alert
>> if space free < 1 GB then alert
>>
>> Thanks,
>> Don.
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
- Re: more user friendly filesystem space messages and checks,
Weedy <=