On 30 Jul 2009, at 11:58, Andrew Hall wrote:
Hi there. Our master Opsview server has its MySQL data directory symlinked from /var/lib/mysql to a mounted filesystem under /mnt because /var is a relatively small partition. The check_disk plugin is reporting that this /var partition is 85% full and the output of the df command shows this too - but upon running du this clearly isn't the case. I can only assume that by default the df and check_disk commands are following these symlinks (although oddly even after choosing to follow symlinks with the du command it still doesn't tally up) so I'm wondering how I can stop this ? I don't see any flags to check_disk which I could use. Any thoughts? [u...@host]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 4.9G 3.9G 728M 85% /var [u...@host]# cd /var [u...@host]# du -sh . 419M . [u...@host]# du -shL . 4.6G .
I think i need to understand the problem better.From the above /var is 85% which seems reasonable. Are you therefore trying to monitor when the mysql area fills up? If so you should also have a disk check set up for the area under /mnt where the mysql data files reside - check_disk (& df) look at the individual mount points and what is on it, not what is sub-mounted or symlinked off elsewhere as they should be counted under their own entries.
Duncs -- Duncan Ferguson Senior Developer
<<inline: image001.gif>>
Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ | UK Phone: +44 (0) 845 057 7887 Mobile: +44 (0) 7968 148 748 Skype: duncan_j_ferguson Email: [email protected] www.opsera.comOpsera Limited is registered in the UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, Surrey, GU21 4RB.
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
