[monit/fs] vérification des perms sur new version

Ignore-this: 34399a4baa86ec438246dcc85c801993

darcs-hash:20121219180819-28565-aede42a0d26dc861f7b7e62dc85461adafa57b5b.gz
This commit is contained in:
Daniel STAN 2012-12-19 19:08:19 +01:00
parent ef09239537
commit 691fa52408

View file

@ -265,12 +265,17 @@ for line in metadata.Probes["fstab_local"].splitlines():
# on ajoute les lignes de configuration générale
comment("partition %s" % mntpoint)
# Permission attendue
perm = '660'
if has('crans-wheezy'):
perm = '1' + perm
# 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 permission %s then alert' % perm
print ' if failed uid root then alert'
# place sur les disques