1) on passe 90% pour le pubftp, on a le temps de s'en soucier vu les graphes
munin 2) corrections de quelques bugs darcs-hash:20060308120203-4ec08-8b6a4c1561727d43070128c396475a48ddad3df2.gz
This commit is contained in:
parent
1544cf5925
commit
d97d7c67dc
1 changed files with 3 additions and 3 deletions
|
@ -118,10 +118,10 @@ def file_monitrc(hostname = host) :
|
||||||
|
|
||||||
# place sur les disques
|
# place sur les disques
|
||||||
if (hostname,line[1]) in [('sila','/var/spool/squid1'),('sila','/var/spool/squid2')] :
|
if (hostname,line[1]) in [('sila','/var/spool/squid1'),('sila','/var/spool/squid2')] :
|
||||||
continue
|
pass
|
||||||
elif (hostname,line[1]) in [('egon','/pubftp')] :
|
elif (hostname,line[1]) in [('egon','/pubftp')] :
|
||||||
config += ' if space usage > 95% then alert\n'
|
config += ' if space usage > 95% then alert\n'
|
||||||
elif (hostname,line[1]) in [('sila','/var/log/squid')] :
|
elif (hostname,line[1]) in [('sila','/var/log/squid'),('sila','/pubftp')] :
|
||||||
config += ' if space usage > 90% then alert\n'
|
config += ' if space usage > 90% then alert\n'
|
||||||
else :
|
else :
|
||||||
config += ' if space usage > 80% then alert\n'
|
config += ' if space usage > 80% then alert\n'
|
||||||
|
@ -379,7 +379,7 @@ def file_monitrc(hostname = host) :
|
||||||
config += 'check process privoxy with pidfile /var/run/privoxy.pid\n'
|
config += 'check process privoxy with pidfile /var/run/privoxy.pid\n'
|
||||||
config += ' start program = "/etc/init.d/privoxy start"\n'
|
config += ' start program = "/etc/init.d/privoxy start"\n'
|
||||||
config += ' stop program = "/etc/init.d/privoxy stop"\n'
|
config += ' stop program = "/etc/init.d/privoxy stop"\n'
|
||||||
config += ' if failed host localhost port 8117 timeout %s then restart\n' % timeout
|
config += ' if failed host localhost port 8117 %s then restart\n' % timeout
|
||||||
config += ' if 5 restarts within 5 cycles then timeout\n'
|
config += ' if 5 restarts within 5 cycles then timeout\n'
|
||||||
config += '\n'
|
config += '\n'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue