monit-general
[Top][All Lists]
Advanced

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

Re: space usage monitoring problem


From: Martin Pala
Subject: Re: space usage monitoring problem
Date: Mon, 25 Oct 2004 21:51:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5

This is strange - the validation code works with each service independently.

I used following configuration to test this problem (monit configuration file):

--8<--
...
check device rootfs path /dev/hda5
   if failed permission 660 then alert
   if failed uid root then alert
   if failed gid disk then alert
   if space usage > 10 % then alert
   if inode usage > 10 % then alert

check device vfatfs path /dev/hda6
   if failed permission 660 then alert
   if failed uid root then alert
   if failed gid disk then alert
   if space usage > 10 % then alert
   if inode usage > 10 % then alert
--8<--

Both my filesystems are uses more then 10% of space. Monit sent alerts correctly (monit log):


--8<--
[CEST Oct 25 21:43:07] 'vfatfs' file permission check passed [current permission=660]
[CEST Oct 25 21:43:07] 'vfatfs' device uid check passed [current uid=0]
[CEST Oct 25 21:43:07] 'vfatfs' device gid check passed [current gid=6]
[CEST Oct 25 21:43:07] 'vfatfs' filesystem doesn't support inodes
[CEST Oct 25 21:43:07] 'vfatfs' space usage 77% matches resource limit [space usage>10%] [CEST Oct 25 21:43:07] Resource limit matched notification is sent to address@hidden [CEST Oct 25 21:43:08] 'rootfs' file permission check passed [current permission=660]
[CEST Oct 25 21:43:08] 'rootfs' device uid check passed [current uid=0]
[CEST Oct 25 21:43:08] 'rootfs' device gid check passed [current gid=6]
[CEST Oct 25 21:43:08] 'rootfs' inode usage check passed [current inode usage=2.8%] [CEST Oct 25 21:43:08] 'rootfs' space usage 16% matches resource limit [space usage>10%] [CEST Oct 25 21:43:08] Resource limit matched notification is sent to address@hidden
--8<--

Please try to run monit in debug mode (se you will see the above messages) and send us output.

Thanks,
Martin


address@hidden wrote:
Hi,

First of all thanks for the program. I successfully installed the latest (4.4) 
version and
just discovered the problem described bellow.

There is a part of my configuration file:
****************************************************************************
check device media with path /dev/hdg5 if space usage > 15% then alert
        group local
mode passive check device data with path /dev/hde9 if space usage > 20% then alert group local mode passive ****************************************************************************

... and here is a part of the "Monit Service Manager"
****************************************************************************
media   accessible              79.5% [88904.8 MB]      0.0% [1599 objects]
data    Resource limit matched  54.1% [55008.7 MB]      0.7% [740931 objects]
****************************************************************************
The drives free space is measured correctly, *BUT* there should be two alerts 
for *BOTH*
devices. I've checked as well the previous ( 4.3 ) version with the same 
result! Would be
nice it this problem will be corrected.

Thank you in advance.





reply via email to

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