Re: checking filesystem free space
Lutz Mader <[email protected]>
| Newsgroups | gmane.comp.monitoring.monit.general |
|---|---|
| Message-ID | <[email protected]> |
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 -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general