#32 closed defect (invalid)
rc.conf: remote logging naar loghost ((test of image-r6873)
Reported by: | huub | Owned by: | rick |
---|---|---|---|
Priority: | major | Milestone: | |
Keywords: | Cc: | ||
Resource needed to fix: |
Description
In rc.conf (generieke conf file voor alle nodes identiek) is de loghost==localhost (127.0.0.1).
Daar moet dus de nodenaam ingevuld worden en daarmee is rc.conf niet meer generiek. $HOST gebruiken werkt niet, omdat hostname later in de bootcyclus, namelijk in rc.node.local, wordt gedefinieerd.
Change History (5)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
In het handboek (11.3 Core Configuration) lees ik:
"A number of strategies may be applied in clustered applications to separate site-wide configuration from system-specific configuration in order to keep administration overhead down. The recommended approach is to place site-wide configuration into another file, such as /etc/rc.conf.site, and then include this file into /etc/rc.conf, which will contain only system-specific information.
As rc.conf is read by sh(1) it is trivial to achieve this. For example:
*
rc.conf:
. /etc/rc.conf.site
.....
etc
Volgens het handboek zou je het dus om moeten draaien:
een rc.conf.site (of 'rc.conf.wleiden') die voor alle nodes identiek is
en
een rc.conf die specifiek is voor een node. Daarin kan dan ook de config van syslogd node-specifiek vermeld worden.
Het lijkt me een mooie oplossing en sowieso niet verkeerd om het handboek te volgen.
comment:3 by , 16 years ago
Milestone: | → 0.1 |
---|
comment:4 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Loghost is remote host which needs to be specified at /etc/syslog.conf. Argument at syslogd is the binding ip, which always needs to be 127.0.0.1 to keep it a bit secure
loghost defenitie uit generieke rc.conf halen en plaatsen in rc.node.local met $MASTER_IP of $HOST...