monit: ajuste/corrige niveaux warning

This commit is contained in:
Daniel STAN 2015-11-10 22:36:45 +01:00
parent 4a6b3a73cf
commit 06977979cb

View file

@ -399,11 +399,13 @@ for line in metadata.Probes["fstab_local"].splitlines():
('sable','/var/spool/squid1') : None,
('sable','/var/spool/squid2') : None,
('sable','/var/log/squid') : 92,
('charybde','/pubftp') : 80,
('charybde','/pubftp') : 95,
('news','/var') : 90
}.get((hostname, mntpoint), -1)
if alert_level == -1:
if mntpoint in ('/usr', '/var/lib/mailman', '/localhome' , '/home-adh') or has('domu'):
if mntpoint in ('/usr', '/var/lib/mailman', '/localhome', '/var/lib/postgresql', ) or has('domu'):
alert_level = 90
elif mntpoint.startswith('/home-adh'):
alert_level = 90
else:
alert_level = 80