monit-dev
[Top][All Lists]
Advanced

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

Re: file/directory/device services


From: Jan-Henrik Haukeland
Subject: Re: file/directory/device services
Date: Wed, 06 Aug 2003 13:59:34 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Civil Service, linux)

Martin Pala <address@hidden> writes:

> df reports blocks free for non-superuser and uses 1k blocks, monit
> uses 1m blocks.
>
> df to monit key:
>
> 1.) total blocks:
> 1k-blocks=25197220 => 25197220/1024 = 24606.7 MB (equal to monit report)
>
> 2.) Available blocks (for non-superuser):
> 1k-blocks=17318780 => 17318780/1024 = 16912.9 MB (equal to monit report)
>
>
> Non-superuser free percentage is 68.73%: 4329703/62993.05 ==
> 16912.9/246.067 == 17318780/251972.2 = 68.73
>
> I used presumption that the usage is the usage of non-superuser
> available space:
>
> 100% - 68.73% = 31.27% (this is non-superuser available space usage)
>
> the real (total) usage is:
>
> 100% - 73.81% = 26.19% (this is total space usage - only root is
> allowed to use the rest)
>
> I can fix it to report and utilize total usage, however for the user
> must be aware and set the monitoring limit to reflect superuser
> reserved blocks => though the filesystem could have free reserved
> blocks, non-superuser could fail to write because of space usage.
>
> Though this problem/conflict, there is still percentage difference
> from df, i don't know the reason - it seems that monit is reporting
> the percentage well and there is some strange reason in df for this
> output (if you'll look above on the percentage, you can see that the
> monit result is corect).
>
>
> What do you think, shall i change it?

If it does not take to much effort, I think you should change it, also
because most users will run monit as root. You choose, if you do not
change it, the explanation above should make it into the man file (if
it's not there already, I haven't checked so closely :)

-- 
Jan-Henrik Haukeland




reply via email to

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