[monit/services] On vérifie le filesystem pour les volumes lvm
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617259 darcs-hash:20110310033456-ddb99-7bb1248bc22a6dc2999bc2fa64e90f0fb37fc965.gz
This commit is contained in:
parent
cbd8f5a744
commit
8f5f5f3b5b
1 changed files with 7 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue