monit: ajuste/corrige niveaux warning
This commit is contained in:
parent
4a6b3a73cf
commit
06977979cb
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue