[monit/fs] vérification des perms sur new version
Ignore-this: 34399a4baa86ec438246dcc85c801993 darcs-hash:20121219180819-28565-aede42a0d26dc861f7b7e62dc85461adafa57b5b.gz
This commit is contained in:
parent
ef09239537
commit
691fa52408
1 changed files with 6 additions and 1 deletions
|
@ -265,12 +265,17 @@ for line in metadata.Probes["fstab_local"].splitlines():
|
||||||
# on ajoute les lignes de configuration générale
|
# on ajoute les lignes de configuration générale
|
||||||
comment("partition %s" % mntpoint)
|
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
|
# on vérifie le filesystem directement pour les volumes lvm
|
||||||
if fs.startswith('/dev/mapper'):
|
if fs.startswith('/dev/mapper'):
|
||||||
print 'check filesystem fs%s with path %s' % (mntpoint, mntpoint)
|
print 'check filesystem fs%s with path %s' % (mntpoint, mntpoint)
|
||||||
else:
|
else:
|
||||||
print 'check device fs%s with path %s' % (mntpoint, fs)
|
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'
|
print ' if failed uid root then alert'
|
||||||
|
|
||||||
# place sur les disques
|
# place sur les disques
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue