diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 911fccd..ce0fee1 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -239,10 +239,14 @@ for line in metadata.Probes["fstab_local"].splitlines(): # on ajoute les lignes de configuration générale comment("partition %s" % mntpoint) - print 'check device fs%s with path %s' % (mntpoint, fs) - print ' if failed permission 660 then alert' - print ' if failed uid root then alert' + # on vérifie le filesystem directement pour les volumes lvm + if fs.startswith('/dev/mapper'): + print 'check filesystem fs%s with path %s' % (mntpoint, mntpoint) + else: + print 'check device fs%s with path %s' % (mntpoint, fs) + print ' if failed permission 660 then alert' + print ' if failed uid root then alert' # place sur les disques alert_level = {