|
From: | Philippe Muller |
Subject: | Re: [monit] How to check a device by its label ? |
Date: | Wed, 28 Apr 2010 19:13:51 +0200 |
It was fixed in monit 5.0 ... changelog excerpt:--8<--* Support use of symbolic links in filesystem check. Thanks toAleksander Kamenik for suggestion. Example:check filesystem rootfs path/dev/disk/by-uuid/4ef973f7-67d1-4bb0-8223-cb1c692b72e4if space usage > 95% then alertif inode usage > 95% then alert--8<--you can get monit version using 'monit -V'On Apr 28, 2010, at 6:45 PM, Philippe Muller wrote:Except... It doesn't work.1 - I don't understand why udev doesn't create all label symlinks--# e2label /dev/sda3opt# ls /dev/disk/by-label/slash ssd2 - Monit doesn't like symlinks ?!monit[2865]: 'ssd' unable to read device /dev/disk/by-label/ssd stateI guess it's easier to check volumes by their real device name!Philippe Muller
On Wed, Apr 28, 2010 at 6:02 PM, Philippe Muller <address@hidden> wrote:Hi Martin,Thanks to you, I justs discovered some great default udev rules.By the way, udev also manages another directory on my debian systems : /dev/disk/by-labelThanks!Philippe Muller
On Wed, Apr 28, 2010 at 5:44 PM, Martin Pala <address@hidden> wrote:Hi,
labels are not supported currently but you can use UUID of the filesystem like this:
check filesystem with path /dev/disk/by-uuid/67544096-06a6-4f68-bed1-b03398641fb7
... there are also alternative names in /dev/disk/by-id/ and /dev/disk/by-path/ or you can use the mountpoint instead of device name.
Regards,
Martin
On Wed, Apr 28, 2010 at 10:55:30AM +0200, Philippe Muller wrote:
> Hi Monit !
>
> Instead of checking my devices by their name (/dev/sda1), I'd like to check
> them by their label (the one defined by the -L switch of mkfs.ext3 /
> mkfs.xfs).
> Is it possible? How?
>
> Thanks.
>
> Philippe Muller
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |