From 06977979cbd0e4154b7925cd68d86046565f9c8d Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Tue, 10 Nov 2015 22:36:45 +0100 Subject: [PATCH] monit: ajuste/corrige niveaux warning --- Python/etc/monit/services | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 02aed69..f7ed620 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -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