Monit du filtrage
darcs-hash:20051015094203-6d78a-71b0db7b55eb05a9fd6e54b98dc1afa61fb5cab4.gz
This commit is contained in:
parent
8c0b3d1148
commit
e7d9971f0f
1 changed files with 20 additions and 0 deletions
|
@ -249,7 +249,27 @@ def file_monitrc(hostname = host) :
|
||||||
# dhcp
|
# dhcp
|
||||||
if hostname in ['nectaris'] :
|
if hostname in ['nectaris'] :
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# filtrage des logs :
|
||||||
|
# netacct
|
||||||
|
if hostname in ['komaz'] :
|
||||||
|
config += '# filtrage_netacct\n'
|
||||||
|
config += 'check process filtrage_netacct with pidfile /var/run/filtrage_netacct.pid\n'
|
||||||
|
config += ' start program = "/etc/init.d/filtrage_netacct start"\n'
|
||||||
|
config += ' stop program = "/etc/init.d/filtrage_netacct stop"\n'
|
||||||
|
config += ' if 5 restarts within 5 cycles then timeout\n'
|
||||||
|
config += '\n'
|
||||||
|
# filtrage des logs :
|
||||||
|
# firewall
|
||||||
|
if hostname in ['komaz'] :
|
||||||
|
config += '# filtrage_firewall\n'
|
||||||
|
config += 'check process filtrage_firewall with pidfile /var/run/filtrage_firewall.pid\n'
|
||||||
|
config += ' start program = "/etc/init.d/filtrage_firewall start"\n'
|
||||||
|
config += ' stop program = "/etc/init.d/filtrage_firewall stop"\n'
|
||||||
|
config += ' if 5 restarts within 5 cycles then timeout\n'
|
||||||
|
config += '\n'
|
||||||
|
|
||||||
|
|
||||||
# freeradius
|
# freeradius
|
||||||
if hostname in ['zamok','pegase'] :
|
if hostname in ['zamok','pegase'] :
|
||||||
config += '# freeradius\n'
|
config += '# freeradius\n'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue