disk usage space percentage reported incorrect
Scenario 1)
#Below entry in monit.conf check device log with path /dev/mapper/rootvg-LV08 if space > 2 megabyte then alert
Disk status output Filesystem 'log' status Resource limit matched monitoring status Monitored permission 660 uid 0 gid 6 filesystem flags 0x1000 block size 4.0 kB blocks total 12901535 [49.2 GB] blocks free for non superuser 12071040 [46.0 GB] [93.6%] blocks free total 12726400 [48.5 GB] [98.6%] inodes total 3276800 inodes free 3276658 [100.0%] data collected Sun, 28 Sep 2014 19:30:38
Actual output on CLI /dev/mapper/rootvg-LV08 50G 685M 47G 2% /log
Actual Output on GUI Filesystem Status Space usage Inodes usage log Resource limit matched 6.4% [684.1 MB] 0.0% [142 objects]
Email Alert Content recieved
FTSM alert log @ Sun, 28 Sep 2014 19:28:36 on prdindxapp04: space usage 175135 blocks matches resource limit [space usage>512 blocks]
================================================================== Scenario 2) #Entry in monit.conf check device log with path /dev/mapper/rootvg-LV08 if space > 5% then alert
Disk status output Filesystem 'log' status Resource limit matched monitoring status Monitored permission 660 uid 0 gid 6 filesystem flags 0x1000 block size 4.0 kB blocks total 12901535 [49.2 GB] blocks free for non superuser 12071040 [46.0 GB] [93.6%] blocks free total 12726400 [48.5 GB] [98.6%] inodes total 3276800 inodes free 3276658 [100.0%] data collected Sun, 28 Sep 2014 19:30:38
Actual output on CLI /dev/mapper/rootvg-LV08 50G 685M 47G 2% /log
Actual Output on GUI
Filesystem Status Space usage Inodes usage log Resource limit matched 6.4% [684.1 MB] 0.0% [142 objects]
Email Alert Content received
FTSM alert log @ Sun, 28 Sep 2014 19:42:19 on prdindxapp04: space usage 6.4% matches resource limit [space usage>5.0%]
Comments (3)
-
repo owner -
repo owner - changed status to invalid
not bug
-
repo owner - removed version
Removing version: 5.9 (automated comment)
- Log in to comment
Monit reports 93.6% free for non-super user (subtracts the reserved space) and 98.6% free for super-user vs. your command-line (command not specified) reports 2% space used. If you compare the non-super user space usage (1.4%) vs. your command-line 2% there is small difference, but it almost matches (the command you used maybe rounded 1.4% use up to 2% or the data were not collected at the same time).
Monit space usage check includes the space reserved for non-super ... in this case only 93.6% is available (i.e. 6.4% used). If you don't include the reserve and programs which are not running as root will try to write to the filesystem the program will hit the limit earlier then 100% is reached and the application won't be able to write anymore.