nectaris -> ragnarok

darcs-hash:20060205003258-d1718-74486509c1cd5ccff5480da8cf5cce872496b087.gz
This commit is contained in:
bernat 2006-02-05 01:32:58 +01:00
parent d593a7111a
commit b12f1b14b6
5 changed files with 14 additions and 14 deletions

View file

@ -9,7 +9,7 @@ import commands
host = commands.getoutput("hostname").split('.')[0]
# est ce que c'est un systeme bsd
if host in ['nectaris'] :
if host in ['ragnarok'] :
bsd = True
else :
bsd = False
@ -171,8 +171,8 @@ def file_monitrc(hostname = host) :
config += ' if 3 restarts within 5 cycles then timeout\n'
config += '\n'
# apache sur nectaris
if hostname in ['nectaris'] :
# apache sur ragnarok
if hostname in ['ragnarok'] :
config += '# apache\n'
config += 'check process apache with pidfile /var/www/logs/httpd.pid\n'
config += ' start program = "/usr/sbin/apachectl start"\n'
@ -205,7 +205,7 @@ def file_monitrc(hostname = host) :
config += '\n'
# bind
if hostname in ['nectaris'] and False :
if hostname in ['ragnarok'] and False :
config += '# bind\n'
config += 'check process bind with pidfile /var/run/named.pid\n'
config += ' start program = "???"\n'
@ -247,7 +247,7 @@ def file_monitrc(hostname = host) :
config += '\n'
# dhcp
if hostname in ['nectaris'] :
if hostname in ['ragnarok'] :
pass
# filtrage des logs :
@ -289,7 +289,7 @@ def file_monitrc(hostname = host) :
config += '\n'
# isakmpd
if hostname in ['nectaris'] :
if hostname in ['ragnarok'] :
config += '# isakmpd\n'
config += 'check process isakmpd with pidfile /var/run/isakmpd.pid\n'
config += ' start program = "/sbin/isakmpd -d"\n'
@ -394,7 +394,7 @@ def file_monitrc(hostname = host) :
config += '\n'
# rsync
if hostname in ['nectaris'] and False :
if hostname in ['ragnarok'] and False :
config += '# rsyncd\n'
config += 'check process rsyncd with pidfile /var/run/rsyncd.pid\n'
config += ' start program = "???"\n'